Class

io.github.setl.storage

ZipArchiver

Related Doc: package storage

Permalink

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()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addConnector(connector: FileConnector, name: Option[String] = None): ZipArchiver.this.type

    Permalink

    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

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

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def compress(input: String): Array[Byte]

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  19. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  20. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  21. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  22. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  23. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  24. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. def setFileSystem(fs: FileSystem): ZipArchiver.this.type

    Permalink
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Logging

Inherited from Archiver

Inherited from Compressor

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped