Class/Object

com.intenthq.pucket.writer

IncrementalPartitionedWriter

Related Docs: object IncrementalPartitionedWriter | package writer

Permalink

case class IncrementalPartitionedWriter[T] extends Writer[T, (Long, Throwable)] with PartitionedWriterFunctions[T, (Long, Throwable), IncrementalPartitionedWriter[T]] with Product with Serializable

Incremental partitioned parquet writer Provides incremental writing for partitioned puckets Any error will return with the minimum checkpoint of the current set of writers

Linear Supertypes
Serializable, Serializable, Product, Equals, PartitionedWriterFunctions[T, (Long, Throwable), IncrementalPartitionedWriter[T]], Writer[T, (Long, Throwable)], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IncrementalPartitionedWriter
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. PartitionedWriterFunctions
  7. Writer
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Error = (Long, Throwable)

    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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def checkPoint: Long

    Permalink
    Definition Classes
    Writer
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def close: \/[Error, Unit]

    Permalink

    Close the writer

    Close the writer

    returns

    an error if the close fails or unit

    Definition Classes
    IncrementalPartitionedWriterWriter
  8. def combineExceptions(last: Throwable, current: Throwable): Throwable

    Permalink
    Attributes
    protected
    Definition Classes
    Writer
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Any
  13. val maxWrites: Long

    Permalink
  14. def minCheckpoint: Long

    Permalink

    Used to find the lowest checkpoint for which data is confirmed to be written

    Used to find the lowest checkpoint for which data is confirmed to be written

    returns

    the lowest checkpoint

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

    Permalink
    Definition Classes
    AnyRef
  16. def newInstance(writers: Writers[T, Error]): IncrementalPartitionedWriter[T]

    Permalink

    Create a new instance of the partitioned writer

    Create a new instance of the partitioned writer

    writers

    new writer cache state to be included in the new instance

    returns

    a new instance of a partitioned writer with the new state

    Definition Classes
    IncrementalPartitionedWriterPartitionedWriterFunctions
  17. def newWriter(partition: Path, checkPoint: Long): \/[Error, Writer[T, Error]]

    Permalink

    Obtain a new writer for a partition

    Obtain a new writer for a partition

    partition

    the pucket instance for the partition

    checkPoint

    the current checkpoint

    returns

    a new writer for the partition or an error

    Definition Classes
    IncrementalPartitionedWriterPartitionedWriterFunctions
  18. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  20. val pucket: Pucket[T]

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

    Permalink
    Definition Classes
    AnyRef
  22. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def write(data: T, checkPoint: Long): \/[(Long, Throwable), IncrementalPartitionedWriter[T]]

    Permalink

    Write data to a partition Finds a writer in the cache or creates a new one then submits the writer back to the cache

    Write data to a partition Finds a writer in the cache or creates a new one then submits the writer back to the cache

    data

    the data to be written

    checkPoint

    the current checkpoint to be passed to the underlying writer

    returns

    a new instance of the partitioned writer complete with new state

    Definition Classes
    PartitionedWriterFunctions
  26. def writerCache(partitionId: Path, writer: Writer[T, (Long, Throwable)]): \/[(Long, Throwable), Writers[T, (Long, Throwable)]]

    Permalink

    <invalid inheritdoc annotation>

    <invalid inheritdoc annotation>

    Definition Classes
    PartitionedWriterFunctions
  27. def writerCache(partitionId: String, writer: Writer[T, (Long, Throwable)]): \/[(Long, Throwable), Writers[T, (Long, Throwable)]]

    Permalink

    Add a new writer to the cache Will update an existing writer if one for the same partition already exists in cache.

    Add a new writer to the cache Will update an existing writer if one for the same partition already exists in cache.

    If a new writer needs to be cached and the cache is full, the oldest one in the cache will be closed and evicted.

    partitionId

    pucket identifier to use as a key in the cache

    writer

    the writer instance to be cached

    Definition Classes
    PartitionedWriterFunctions
  28. val writerCacheSize: Int

    Permalink
  29. val writers: Writers[T, (Long, Throwable)]

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from PartitionedWriterFunctions[T, (Long, Throwable), IncrementalPartitionedWriter[T]]

Inherited from Writer[T, (Long, Throwable)]

Inherited from AnyRef

Inherited from Any

Ungrouped