Trait/Object

com.intenthq.pucket

Pucket

Related Docs: object Pucket | package pucket

Permalink

trait Pucket[T] extends AnyRef

Trait for describing a bucket of data on a filesystem

T

The data type the pucket will contain

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Pucket
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def descriptor: PucketDescriptor[T]

    Permalink

    Descriptor object with information about the pucket.

    Descriptor object with information about the pucket. See com.intenthq.pucket.PucketDescriptor

  2. abstract def fs: FileSystem

    Permalink

    Hadoop filesystem instance

  3. abstract def newInstance(newPath: Path): Pucket[T]

    Permalink

    Used when obtaining a new pucket as a subdir of an existing one

    Used when obtaining a new pucket as a subdir of an existing one

    Attributes
    protected
  4. abstract def path: Path

    Permalink

    Fully qualified hadoop path to the pucket

  5. abstract def reader(filter: Option[Filter]): \/[Throwable, Reader[T]]

    Permalink

    Reader for the pucket.

    Reader for the pucket. See com.intenthq.pucket.reader.Reader

    returns

    a new Reader for reading data from the pucket

  6. abstract def writer: \/[Throwable, Writer[T, Throwable]]

    Permalink

    Writer implementation for the pucket.

    Writer implementation for the pucket. See com.intenthq.pucket.writer.Writer

Concrete 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 absorb(pucket: Pucket[T]): \/[Throwable, Unit]

    Permalink

    Absorb another pucket of the same type into this one

    Absorb another pucket of the same type into this one

    Will only absorb if the pucket it is absorbing is on a different path and the descriptor is the same

    pucket

    the pucket to be absorbed

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def blockSize: Int

    Permalink

    Default Parquet block size

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val conf: Configuration

    Permalink

    Hadoop configuration

  9. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def file: Path

    Permalink

    Generate a filename

    Generate a filename

    returns

    a relative hadoop path to a new randomly generated filename

  12. def filename: Path

    Permalink

    Generate a fully qualified filename under the pucket

    Generate a fully qualified filename under the pucket

    returns

    a fully qualified hadoop path to a new randomly generated filename under pucket

  13. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. val id: Int

    Permalink

    An identifier for the pucket for use in writer cache

    An identifier for the pucket for use in writer cache

    returns

    a string identifier

  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def listFiles: \/[Throwable, Seq[Path]]

    Permalink

    List all the parquet files in the pucket

    List all the parquet files in the pucket

    returns

    a list of fully qualified paths to parquet files

  19. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  22. def partition(data: T): Path

    Permalink

    Use the partitioner specified in the descriptor to get a new pucket on a calculated path

    Use the partitioner specified in the descriptor to get a new pucket on a calculated path

    data

    the object to inspect for partitioning

    returns

    a new path which is a subpath under the pucket, otherwise the current path

  23. def reader: \/[Throwable, Reader[T]]

    Permalink

    Reader for the pucket.

    Reader for the pucket. See com.intenthq.pucket.reader.Reader

  24. def subPucket(subPath: Path): \/[Throwable, Pucket[T]]

    Permalink

    Create a directory as a subpath of the pucket and create a new pucket instance at the new path

    Create a directory as a subpath of the pucket and create a new pucket instance at the new path

    returns

    a new pucket at the sub path specified or an error if the path creation fails

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

    Permalink
    Definition Classes
    AnyRef
  26. def targetFile(pucket: Pucket[T], otherPath: Path): Path

    Permalink

    Target location for a given path under the current pucket

    Target location for a given path under the current pucket

    returns

    a fully qualified path under the current pucket, maintaining a partitioning scheme

  27. def toString(): String

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped