Class

pegasus.spark.cc.utils

PairExternalSorter

Related Doc: package utils

Permalink

class PairExternalSorter extends AnyRef

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

Instance Constructors

  1. new PairExternalSorter(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 INDEX_MASK: Long

    Permalink
  6. val KEY_SHIFT: Int

    Permalink
  7. val MAX_KEY: Long

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

    Permalink

    Fill the buffer with next values.

    Fill the buffer with next values.

    it

    an iterator

    returns

    the number of values read

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  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. def getBufferIterator(limit: Int): Iterator[(Long, Long)]

    Permalink

    Iterator for the buffer.

    Iterator for the buffer.

    limit

    to read

    returns

    an iterator from the buffer

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def getDirectReaderIterator(path: String): Iterator[(Long, 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

    an iterator for the sorted file

  17. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  19. val localPath: LocalPaths

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

    Permalink

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

    This operation reads 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

    an iterator

    returns

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  24. def packedKeyWithIndex(key: Long, idx: Int): Long

    Permalink
  25. val packedKeysBuffer: Array[Long]

    Permalink
  26. def sort(it: Iterator[(Long, Long)]): Iterator[(Long, Long)]

    Permalink

    Sort a given iterator.

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

    it

    iterator to be sorted

    returns

    sorted long iterator

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  29. def unpackKeyAndIndex(packedKey: Long): (Long, Int)

    Permalink
  30. var usedBufferSize: Int

    Permalink
  31. val valuesBuffer: Array[Long]

    Permalink
  32. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped