o

io.treeverse.jpebble

BlockParser

object BlockParser

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

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. val COMPRESSION_BLOCK_TYPE_NONE: Int
  5. val COMPRESSION_BLOCK_TYPE_SNAPPY: Int
  6. val INDEX_TYPE_KEY: Array[Byte]
  7. val INDEX_TYPE_TWO_LEVEL: Int
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. val blockTrailerLen: Int
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  11. def entryIterator(in: BlockReadable): Iterator[Entry]

    returns

    Iterator over all SSTable entries

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def fixupCRC(crc: Int): Int

    Mix bits of CRC32C to match its use in RocksDB SSTables.

    Mix bits of CRC32C to match its use in RocksDB SSTables. (That format includes CRCs inside checksummed data, meaning further CRCs of that block can fail to detect anything; defining this mixing protects that protocol. We need to follow the format regardless of whether or not using CRCs like this is justified!)

  16. val footerLength: Int
  17. val footerMagic: Seq[Byte]
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def parseDataBlock(block: IndexedBytes): DataBlockIterator
  25. def readBlockHandle(bytes: Iterator[Byte]): BlockHandle
  26. def readBytes(bytes: Iterator[Byte], size: Long): Seq[Byte]
  27. def readEnd(bytes: Iterator[Byte]): Unit
  28. def readFixedInt(bytes: Iterator[Byte]): Int

    Return an int32 with (fixed-width, 4 byte) little-endian encoding from bytes.

  29. def readFooter(bytes: Iterator[Byte]): IndexBlockHandles
  30. def readInt32(bytes: Iterator[Byte]): Int
  31. def readMagic(bytes: Iterator[Byte]): Unit
  32. def readProperties(file: BlockReadable, footer: IndexBlockHandles): Map[Seq[Byte], Array[Byte]]
  33. def readSignedVarLong(bytes: Iterator[Byte]): Long
  34. def readUnsignedVarLong(bytes: Iterator[Byte]): Long
  35. def startBlockParse(block: IndexedBytes): IndexedBytes

    Verify the block checksum and return the sequence of its contents.

    Verify the block checksum and return the sequence of its contents. block should be the entire contents of a BlockHandle plus blockTrailerLen (5) bytes.

    Uses a ByteBuffer so we can use whatever efficient CRC32C implementation is available on the JVM.

    TODO(ariels): decompression.

  36. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. def update(checksum: Checksum, buf: ByteBuffer, offset: Int, length: Int): Unit
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped