Class/Object

eu.shiftforward.apso.io

S3FileDescriptor

Related Docs: object S3FileDescriptor | package io

Permalink

case class S3FileDescriptor(bucket: S3Bucket, elements: List[String], summary: Option[S3ObjectSummary] = None) extends FileDescriptor with RemoteFileDescriptor with Logging with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, Logging, RemoteFileDescriptor, FileDescriptor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. S3FileDescriptor
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Logging
  7. RemoteFileDescriptor
  8. FileDescriptor
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new S3FileDescriptor(bucket: S3Bucket, elements: List[String], summary: Option[S3ObjectSummary] = None)

    Permalink

Type Members

  1. type Self = S3FileDescriptor

    Permalink
    Definition Classes
    S3FileDescriptorRemoteFileDescriptor

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def /(name: String): FileDescriptor

    Permalink

    Adds a new child node to the filesystem path.

    Adds a new child node to the filesystem path.

    name

    the node name.

    returns

    the new file descriptor with the updated path

    Definition Classes
    FileDescriptor
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val bucket: S3Bucket

    Permalink
  7. val bucketName: String

    Permalink
  8. def cd(pathString: String): S3FileDescriptor

    Permalink

    Changes the path of the file descriptor using unix's cd syntax related to the current directory.

    Changes the path of the file descriptor using unix's cd syntax related to the current directory. Ex: Go back to directories: ../.. Go to child directories: foo/bar Go to sibling directory: ../foo Absolute path changes are not supported.

    pathString

    the cd command

    returns

    the new file descriptor with the updated path

    Definition Classes
    S3FileDescriptorFileDescriptor
  9. def child(name: String): Self

    Permalink
    Definition Classes
    RemoteFileDescriptor
  10. def children(names: String*): Self

    Permalink
    Definition Classes
    RemoteFileDescriptor
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def delete(): Boolean

    Permalink

    Deletes the file associated with the file descriptor

    Deletes the file associated with the file descriptor

    returns

    true if the delete was successful, false otherwise.

    Definition Classes
    S3FileDescriptorFileDescriptor
  13. def download(localTarget: LocalFileDescriptor, safeDownloading: Boolean): Boolean

    Permalink

    Downloads the file to the given local destination.

    Downloads the file to the given local destination. Both the source and the destination must point to a file.

    localTarget

    the local destination to which this file should be downloaded. The path must be absolute path to the final file.

    safeDownloading

    downloads the file to filename + ".tmp" and renames it to the original name if the download was successful.

    returns

    true if the download was successful, false otherwise.

    Definition Classes
    S3FileDescriptorFileDescriptor
  14. def duplicate(elements: List[String]): S3FileDescriptor

    Permalink
    Attributes
    protected
    Definition Classes
    S3FileDescriptorRemoteFileDescriptor
  15. val elements: List[String]

    Permalink
    Attributes
    protected
    Definition Classes
    S3FileDescriptorRemoteFileDescriptor
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def exists: Boolean

    Permalink

    Returns true if the file pointed by the file descriptor exists

    Returns true if the file pointed by the file descriptor exists

    returns

    true if the file pointed by the file descriptor exists

    Definition Classes
    S3FileDescriptorFileDescriptor
  18. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. def isDirectory: Boolean

    Permalink

    Returns true if the fd points to a directory

    Returns true if the fd points to a directory

    returns

    true if the fd points to a directory

    Definition Classes
    S3FileDescriptorFileDescriptor
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def lines(): Iterator[String]

    Permalink

    Returns an iterator with the lines of this file.

    Returns an iterator with the lines of this file.

    returns

    an iterator with the lines of this file.

    Definition Classes
    FileDescriptor
  23. def list: Iterator[S3FileDescriptor]

    Permalink

    Lists the files in the current file descriptor directory

    Lists the files in the current file descriptor directory

    returns

    a iterator of file descriptors

    Definition Classes
    S3FileDescriptorFileDescriptor
  24. def listAllFilesWithPrefix(prefix: String): Iterator[S3FileDescriptor]

    Permalink

    Lists all files down the file hierarchy tree that whose relative path match the given prefix

    Lists all files down the file hierarchy tree that whose relative path match the given prefix

    prefix

    the prefix to match given each file relative path to the current directory

    returns

    a iterator of file descriptors

    Definition Classes
    S3FileDescriptorFileDescriptor
  25. lazy val log: Logger

    Permalink

    The Logger object.

    The Logger object. This logger will have the same name as the concrete class into which this trait is mixed-in.

    Definition Classes
    Logging
  26. def mkdirs(): Boolean

    Permalink

    Creates intermediary directories

    Creates intermediary directories

    returns

    true if the creation of successful, false otherwise.

    Definition Classes
    S3FileDescriptorFileDescriptor
  27. lazy val name: String

    Permalink
    Definition Classes
    RemoteFileDescriptor
  28. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  31. def parent(n: Int = 1): Self

    Permalink
    Definition Classes
    RemoteFileDescriptor
  32. lazy val path: String

    Permalink
    Definition Classes
    RemoteFileDescriptor
  33. val root: String

    Permalink
    Attributes
    protected
    Definition Classes
    S3FileDescriptorRemoteFileDescriptor
  34. def sibling(f: (String) ⇒ String): S3FileDescriptor

    Permalink

    Returns a new file descriptor pointing to a sibling of the current file descriptor

    Returns a new file descriptor pointing to a sibling of the current file descriptor

    f

    a function that returns a new name from the current name of the file descriptor

    returns

    a new file descriptor pointing to a sibling of the current file descriptor

    Definition Classes
    S3FileDescriptorFileDescriptor
  35. def sibling(name: String): FileDescriptor

    Permalink

    Returns a new file descriptor pointing to a sibling of the current file descriptor

    Returns a new file descriptor pointing to a sibling of the current file descriptor

    name

    the file name of the new file descriptor

    returns

    a new file descriptor pointing to a sibling of the current file descriptor

    Definition Classes
    FileDescriptor
  36. def size: Long

    Permalink

    The size of the file associated with the file descriptor.

    The size of the file associated with the file descriptor.

    Definition Classes
    S3FileDescriptorFileDescriptor
  37. def stream(offset: Long = 0L): InputStream

    Permalink

    Returns an input stream for the contents of this file.

    Returns an input stream for the contents of this file.

    offset

    bytes to skip before reading the file.

    returns

    an input stream for the contents of this file.

    Definition Classes
    S3FileDescriptorFileDescriptor
  38. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    S3FileDescriptor → AnyRef → Any
  40. def upload(inputStream: InputStream, length: Option[Long]): Boolean

    Permalink

    Uploads an input stream to this file's location.

    Uploads an input stream to this file's location. The target must point to a file.

    inputStream

    the input stream that should be uploaded.

    length

    the input stream length (leaving this as None can have performance implications)

    returns

    true if the upload was successful, false otherwise.

    Definition Classes
    S3FileDescriptorFileDescriptor
  41. def upload(localTarget: LocalFileDescriptor): Boolean

    Permalink

    Uploads a local file to this file's location.

    Uploads a local file to this file's location. Both the source and the target must point to a file.

    localTarget

    the local file that should be uploaded. The path must be absolute path to the final file.

    returns

    true if the upload was successful, false otherwise.

    Definition Classes
    S3FileDescriptorFileDescriptor
  42. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Logging

Inherited from RemoteFileDescriptor

Inherited from FileDescriptor

Inherited from AnyRef

Inherited from Any

Ungrouped