Class/Object

fm.lazyseq

SortedLazySeqBuilder

Related Docs: object SortedLazySeqBuilder | package lazyseq

Permalink

final class SortedLazySeqBuilder[V, K] extends BuilderCompat[V, LazySeq[V]] with Logging

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
Logging, BuilderCompat[V, LazySeq[V]], GrowableCompat[V], Builder[V, LazySeq[V]], scala.collection.generic.Growable[V], Clearable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SortedLazySeqBuilder
  2. Logging
  3. BuilderCompat
  4. GrowableCompat
  5. Builder
  6. Growable
  7. Clearable
  8. AnyRef
  9. 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 WithFilterCompat[V, LazySeq] with 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. final def ++=(elems: TraversableOnce[V]): SortedLazySeqBuilder.this.type

    Permalink
    Definition Classes
    GrowableCompat
    Annotations
    @inline()
  4. final def ++=(elems: TraversableOnceOrIterableOnce[V]): SortedLazySeqBuilder.this.type

    Permalink
    Definition Classes
    GrowableCompat → Growable
    Annotations
    @inline()
  5. final def +=(elem: V): SortedLazySeqBuilder.this.type

    Permalink
    Definition Classes
    GrowableCompat → Growable
    Annotations
    @inline()
  6. def +=(elem1: V, elem2: V, elems: V*): SortedLazySeqBuilder.this.type

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. def addAll(xs: TraversableOnceOrIterableOnce[V]): SortedLazySeqBuilder.this.type

    Permalink
    Definition Classes
    SortedLazySeqBuilder → GrowableCompat
  9. def addAll(xs: TraversableOnce[V]): SortedLazySeqBuilder.this.type

    Permalink
    Definition Classes
    SortedLazySeqBuilder → GrowableCompat
  10. def addOne(v: V): SortedLazySeqBuilder.this.type

    Permalink
    Definition Classes
    SortedLazySeqBuilder → GrowableCompat
  11. final def asInstanceOf[T0]: T0

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. lazy val logger: Logger

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

    Permalink
    Definition Classes
    Builder
  21. final def ne(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  24. def result(): LazySeq[V]

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

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

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

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

    Permalink
    Definition Classes
    Builder
  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(arg0: Long, arg1: Int): Unit

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

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

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

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Logging

Inherited from BuilderCompat[V, LazySeq[V]]

Inherited from GrowableCompat[V]

Inherited from Builder[V, LazySeq[V]]

Inherited from scala.collection.generic.Growable[V]

Inherited from Clearable

Inherited from AnyRef

Inherited from Any

Ungrouped