Packages

case class GorillaSuperBlock(channel: SliceableByteChannel) extends Product with Serializable

The GorillaSuperBlock class lazily wraps a channel that it reads from. This facilitates the reading of the binary format. The block does not perform any reading on the channel unless a method explicitly requires it.

channel

to read from upon method invocation

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GorillaSuperBlock
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GorillaSuperBlock(channel: SliceableByteChannel)

    channel

    to read from upon method invocation

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. val channel: SliceableByteChannel
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. def productElementNames: Iterator[String]
    Definition Classes
    Product
  15. def readAll: Seq[TSEntry[GorillaBlock]]

    Read all of the information of this GorillaSuperBlock and lazily return all contained GorillaBlocks.

    Read all of the information of this GorillaSuperBlock and lazily return all contained GorillaBlocks. This uses the more granular methods of this object internally.

    returns

    a sequence of gorilla blocks

    Exceptions thrown

    TException if the metadata cannot be decoded

  16. def readAllBlocks(metadata: TSuperBlockMetadata, metaLength: Int): Seq[TSEntry[GorillaBlock]]

    Lazily read (but don't decompress) all GorillaBlocks from this GorillaSuperBlock to memory.

    Lazily read (but don't decompress) all GorillaBlocks from this GorillaSuperBlock to memory.

    metadata

    of the SuperBlock that has information needed for deserialization

    metaLength

    the length of the thrift metadata block in the footer

    returns

    a sequence of gorilla encoded blocks of a timeseries

    Note

    This assumes that the binary data has the correct version/format.

  17. def readBlock(metadata: TSuperBlockMetadata, offset: Long, length: Int): GorillaBlock

    Read (but don't decompress) a GorillaBlock from the GorillaSuperBlock.

    Read (but don't decompress) a GorillaBlock from the GorillaSuperBlock.

    metadata

    of the SuperBlock that has information needed for deserialization

    offset

    the start of the block as given by the index in the footer

    length

    the length of the block in bytes

    returns

    a gorilla encoded block of a timeseries

    Note

    This assumes that the binary data has the correct version/format.

  18. def readIndex(metaLength: Int): SortedMap[Long, Long]

    Read and decompress the index of the GorillaSuperBlock (see format above).

    Read and decompress the index of the GorillaSuperBlock (see format above).

    metaLength

    the length of the thrift metadata block in the footer

    returns

    the index as a sorted map of (timestamp -> byte-offset) tuples

    Note

    This assumes that the binary data has the correct version/format.

  19. def readMetadata: (TSuperBlockMetadata, Int)

    Read the metadata of the GorillaSuperBlock.

    Read the metadata of the GorillaSuperBlock. This also checks whether the underlying binary data has the correct version and format.

    returns

    the metadata as specified by the thrift definition and its length

    Exceptions thrown

    TException if the metadata cannot be decoded

  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped