Packages

c

io.github.setl.storage

ZipArchiver

class ZipArchiver extends Compressor with Archiver with Logging

Linear Supertypes
Logging, Archiver, Compressor, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZipArchiver
  2. Logging
  3. Archiver
  4. Compressor
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ZipArchiver()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addConnector(connector: FileConnector, name: Option[String] = None): ZipArchiver.this.type

    Add the connector's data to the consolidator.

    Add the connector's data to the consolidator. For a directory with the following structure:

    base_path
       |-- dir_1
       |     |-- file1
       |-- dir_2
             |-- file2

    After calling addConnector(connector, Some("new_name")), the structure in the compressed zip file will be:

    outputPath.zip  // outputPath.zip is given during the instantiation of FileConsolidator
       |--new_name
            |-- dir_1
            |     |-- file1
            |-- dir_2
                  |-- file2
    connector

    FileConnector that will be used to load data

    name

    name of the directory in the zip output. default is the name of the base directory of the connector

    Definition Classes
    ZipArchiverArchiver
  5. def addFile(file: Path, name: Option[String] = None): ZipArchiver.this.type
    Definition Classes
    ZipArchiverArchiver
  6. def addRepository(repository: SparkRepository[_], name: Option[String] = None): ZipArchiver.this.type

    Add the connector's data to the consolidator.

    Add the connector's data to the consolidator. For a directory with the following structure:

    base_path
       |-- dir_1
       |     |-- file1
       |-- dir_2
             |-- file2

    After calling addConnector(connector, Some("new_name")), the structure in the compressed zip file will be:

    outputPath.zip  // outputPath.zip is given during the instantiation of FileConsolidator
       |--new_name
            |-- dir_1
            |     |-- file1
            |-- dir_2
                  |-- file2
    repository

    Repository that will be used to load data

    name

    name of the directory in the zip output. default is the name of the base directory of the connector

    Definition Classes
    ZipArchiverArchiver
    Annotations
    @throws( ... )
  7. def archive(outputPath: Path): ZipArchiver.this.type

    Zip all the input entries to the given path

    Zip all the input entries to the given path

    outputPath

    path of the output

    Definition Classes
    ZipArchiverArchiver
    Annotations
    @throws( ... ) @throws( ... )
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. def compress(input: String): Array[Byte]

    Compress an input string into a byte array

    Compress an input string into a byte array

    Definition Classes
    ZipArchiverCompressor
  11. def decompress(bytes: Array[Byte]): String

    Decompress a byte array into an input string

    Decompress a byte array into an input string

    Definition Classes
    ZipArchiverCompressor
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  19. def logDebug(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  20. def logError(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  21. def logInfo(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  22. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  23. def logTrace(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  24. def logWarning(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. def setFileSystem(fs: FileSystem): ZipArchiver.this.type
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Logging

Inherited from Archiver

Inherited from Compressor

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped