Class

pegasus.spark.cc.utils

LongExternalSorter

Related Doc: package utils

Permalink

class LongExternalSorter extends AnyRef

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

Instance Constructors

  1. new LongExternalSorter(basePaths: Array[String])

    Permalink

Type Members

  1. class LocalPaths extends AnyRef

    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. val BUFFER_SIZE: Int

    Permalink
  5. val KEY_SHIFT: Int

    Permalink
  6. def acquireNextBuffer(it: Iterator[Long]): Int

    Permalink

    Fill the buffer with next long values.

    Fill the buffer with next long values.

    it

    long iterator

    returns

    the number of values read

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. val buffer: Array[Long]

    Permalink
  9. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def getBufferIterator(limit: Int): Iterator[Long]

    Permalink

    Iterator for the buffer.

    Iterator for the buffer.

    limit

    to read

    returns

    long iterator from the buffer

  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getDirectReaderIterator(path: String): Iterator[Long]

    Permalink

    Iterator for a sorted file.

    Iterator for a sorted file. !IMPORTANT this operation delete the input file after it reads all values.

    path

    of a sorted file

    returns

    long iterator for the sorted file

  16. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  18. val localPath: LocalPaths

    Permalink
  19. def localSort(it: Iterator[Long]): Queue[Iterator[Long]]

    Permalink

    This operation reads long values from a given iterator, writes to the buffer, and sorts it.

    This operation reads long values from a given iterator, writes to the buffer, and sorts it. If the input exceeds the size of the buffer, this operation spill the sorted buffer out and continues until it reads all long values.

    it

    a long iterator

    returns

    a series of sorted iterators which are parts of the input iterator

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

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

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

    Permalink
    Definition Classes
    AnyRef
  23. def sort(it: Iterator[Long]): Iterator[Long]

    Permalink

    Sort a given long iterator.

    Sort a given long iterator. It consumes the given iterator and return a new one.

    it

    long iterator to be sorted

    returns

    sorted long iterator

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. var usedBufferSize: Int

    Permalink
  27. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped