Class/Object

fm.lazyseq

SortedLazySeqBuilder

Related Docs: object SortedLazySeqBuilder | package lazyseq

Permalink

final class SortedLazySeqBuilder[V, K] extends BuilderBase[V]

Keeps an in-memory buffer gets sorted once a size threshold is passed and written to a temp file. This is repeated until result() is called. Data is then read back from the temp files in sorted order.

This should be thread-safe

Linear Supertypes
BuilderBase[V], Logging, Builder[V, LazySeq[V]], Growable[V], Clearable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SortedLazySeqBuilder
  2. BuilderBase
  3. Logging
  4. Builder
  5. Growable
  6. Clearable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SortedLazySeqBuilder(key: (V) ⇒ K, unique: Boolean = false, bufferSizeLimitMB: Int = ..., bufferRecordLimit: Int = ..., sortAndSaveThreads: Int = ..., sortAndSaveQueueSize: Int = ...)(implicit serializer: Serializer[V], ord: Ordering[K])

    Permalink

Type Members

  1. final class ReadSortedRecords extends LazySeq[V] with Closeable

    Permalink

    A reusable reader that performs a merge sort on the sorted files

    A reusable reader that performs a merge sort on the sorted files

    Note: We use RandomAccessFile to hold onto the FileDescriptor of the temp file and open FileInputStreams based on the FileDescriptor. This allows us to delete the unlink the temp file from the file system while retaining a reference to it here so we can still read it. Then when the FileDescriptor gets garbage collected OR the JVM shuts down the file will be automatically deleted.

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++=(xs: TraversableOnce[V]): SortedLazySeqBuilder.this.type

    Permalink
    Definition Classes
    BuilderBase → Growable
  4. def +=(v: V): SortedLazySeqBuilder.this.type

    Permalink
    Definition Classes
    BuilderBase → Builder → Growable
  5. def +=(elem1: V, elem2: V, elems: V*): SortedLazySeqBuilder.this.type

    Permalink
    Definition Classes
    Growable
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. def addOneImpl(v: V): SortedLazySeqBuilder.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    SortedLazySeqBuilderBuilderBase
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clear(): Unit

    Permalink
    Definition Classes
    SortedLazySeqBuilder → Builder → Growable → Clearable
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  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. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  18. def mapResult[NewTo](f: (LazySeq[V]) ⇒ NewTo): Builder[V, NewTo]

    Permalink
    Definition Classes
    Builder
  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 result(): LazySeq[V]

    Permalink
    Definition Classes
    SortedLazySeqBuilder → Builder
  23. def sizeHint(coll: TraversableLike[_, _], delta: Int): Unit

    Permalink
    Definition Classes
    Builder
  24. def sizeHint(coll: TraversableLike[_, _]): Unit

    Permalink
    Definition Classes
    Builder
  25. def sizeHint(size: Int): Unit

    Permalink
    Definition Classes
    Builder
  26. def sizeHintBounded(size: Int, boundingColl: TraversableLike[_, _]): Unit

    Permalink
    Definition Classes
    Builder
  27. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from BuilderBase[V]

Inherited from Logging

Inherited from Builder[V, LazySeq[V]]

Inherited from Growable[V]

Inherited from Clearable

Inherited from AnyRef

Inherited from Any

Ungrouped