Packages

c

sparkz.util.serialization

VLQByteBufferReader

class VLQByteBufferReader extends VLQReader

Not thread safe

Linear Supertypes
VLQReader, Reader, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VLQByteBufferReader
  2. VLQReader
  3. Reader
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new VLQByteBufferReader(buf: ByteBuffer)

Type Members

  1. type CH = ByteBuffer

    Type of encoded data

    Type of encoded data

    Definition Classes
    VLQByteBufferReaderReader

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. def consumed: Int

    Returns the number of decoded elements

    Returns the number of decoded elements

    returns

    The number of decoded elements

    Definition Classes
    VLQByteBufferReaderReader
    Annotations
    @inline()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def getBits(size: Int): Array[Boolean]

    Decode array of boolean values

    Decode array of boolean values

    size

    expected size of decoded array

    returns

    decoded array of boolean values

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
  10. def getBoolean(): Boolean

    Decode boolean

    Decode boolean

    returns

    boolean

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
  11. def getByte(): Byte

    Decode signed byte

    Decode signed byte

    returns

    Byte

    Definition Classes
    VLQByteBufferReaderReader
    Annotations
    @inline()
  12. def getBytes(size: Int): Array[Byte]

    Decode array of byte values

    Decode array of byte values

    size

    expected size of decoded array

    Definition Classes
    VLQByteBufferReaderReader
    Annotations
    @inline()
  13. def getChunk(size: Int): ByteBuffer

    Returns encoded data at current position

    Returns encoded data at current position

    Definition Classes
    VLQByteBufferReaderReader
    Annotations
    @inline()
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def getInt(): Int

    Decode signed Int previously encoded with VLQWriter.putInt using VLQ with ZigZag.

    Decode signed Int previously encoded with VLQWriter.putInt using VLQ with ZigZag.

    returns

    signed Int

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
    Note

    Uses ZigZag encoding. Should be used to decode only a value that was previously encoded with VLQByteBufferWriter.putInt.

    See also

    https://en.wikipedia.org/wiki/Variable-length_quantity

  16. def getLong(): Long

    Decode signed Long previously encoded with VLQWriter.putLong using VLQ with ZigZag.

    Decode signed Long previously encoded with VLQWriter.putLong using VLQ with ZigZag.

    returns

    signed Long

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
    Note

    Uses ZigZag encoding. Should be used to decode only a value that was previously encoded with VLQWriter.putLong.

    See also

    https://en.wikipedia.org/wiki/Variable-length_quantity

  17. def getOption[T](getValue: => T): Option[T]

    Decode optional value

    Decode optional value

    getValue

    function to decode value, if optional value is nonempty

    returns

    optional value

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
  18. def getShort(): Short

    Decode signed Short previously encoded with VLQWriter.putShort using VLQ and then ZigZag.

    Decode signed Short previously encoded with VLQWriter.putShort using VLQ and then ZigZag.

    returns

    signed Short

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
    Note

    Uses VLQ and then ZigZag encoding. Should be used to decode only a value that was previously encoded with VLQByteBufferWriter.putShort.

    See also

    https://en.wikipedia.org/wiki/Variable-length_quantity

  19. def getShortString(): String

    Decode String is shorter than 256 bytes

    Decode String is shorter than 256 bytes

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
  20. def getUByte(): Int

    Decode positive Byte

    Decode positive Byte

    returns

    signed Int

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
  21. def getUInt(): Long

    Decode Int previously encoded with VLQWriter.putUInt using VLQ.

    Decode Int previously encoded with VLQWriter.putUInt using VLQ.

    returns

    Long

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
    See also

    https://en.wikipedia.org/wiki/Variable-length_quantity

  22. def getULong(): Long

    Decode Long previously encoded with VLQWriter.putULong using VLQ.

    Decode Long previously encoded with VLQWriter.putULong using VLQ.

    returns

    Long

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
    See also

    https://en.wikipedia.org/wiki/Variable-length_quantity

  23. def getUShort(): Int

    Decode Short previously encoded with VLQWriter.putUShort using VLQ.

    Decode Short previously encoded with VLQWriter.putUShort using VLQ.

    returns

    Int

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
    Exceptions thrown

    AssertionError for deserialized values not in unsigned Short range

    See also

    https://en.wikipedia.org/wiki/Variable-length_quantity

  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def mark(): VLQByteBufferReader.this.type

    Sets the mark to current position

    Sets the mark to current position

    Definition Classes
    VLQByteBufferReaderReader
    Annotations
    @inline()
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def newReader(chunk: ByteBuffer): Aux[ByteBuffer]

    Creates new instance of this Reader

    Creates new instance of this Reader

    chunk

    encoded data

    Definition Classes
    VLQByteBufferReaderReader
    Annotations
    @inline()
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  31. def peekByte(): Byte

    Get a byte at current position without advancing the position.

    Get a byte at current position without advancing the position.

    returns

    byte at current position

    Definition Classes
    VLQByteBufferReaderReader
    Annotations
    @inline()
  32. def position: Int

    Returns current position

    Returns current position

    returns

    position

    Definition Classes
    VLQByteBufferReaderReader
    Annotations
    @inline()
  33. def position_=(p: Int): Unit

    Sets position

    Sets position

    p

    position

    Definition Classes
    VLQByteBufferReaderReader
    Annotations
    @inline()
  34. def remaining: Int

    Returns the number of elements between the current position and the end of Reader

    Returns the number of elements between the current position and the end of Reader

    returns

    The number of elements remaining in th Reader

    Definition Classes
    VLQByteBufferReaderReader
    Annotations
    @inline()
  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from VLQReader

Inherited from Reader

Inherited from AnyRef

Inherited from Any

Ungrouped