object BlockParser
- Alphabetic
- By Inheritance
- BlockParser
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val COMPRESSION_BLOCK_TYPE_NONE: Int
- val COMPRESSION_BLOCK_TYPE_SNAPPY: Int
- val INDEX_TYPE_KEY: Array[Byte]
- val INDEX_TYPE_TWO_LEVEL: Int
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val blockTrailerLen: Int
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
entryIterator(in: BlockReadable): Iterator[Entry]
- returns
Iterator over all SSTable entries
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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!)
- val footerLength: Int
- val footerMagic: Seq[Byte]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def parseDataBlock(block: IndexedBytes): DataBlockIterator
- def readBlockHandle(bytes: Iterator[Byte]): BlockHandle
- def readBytes(bytes: Iterator[Byte], size: Long): Seq[Byte]
- def readEnd(bytes: Iterator[Byte]): Unit
-
def
readFixedInt(bytes: Iterator[Byte]): Int
Return an int32 with (fixed-width, 4 byte) little-endian encoding from bytes.
- def readFooter(bytes: Iterator[Byte]): IndexBlockHandles
- def readInt32(bytes: Iterator[Byte]): Int
- def readMagic(bytes: Iterator[Byte]): Unit
- def readProperties(file: BlockReadable, footer: IndexBlockHandles): Map[Seq[Byte], Array[Byte]]
- def readSignedVarLong(bytes: Iterator[Byte]): Long
- def readUnsignedVarLong(bytes: Iterator[Byte]): Long
-
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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def update(checksum: Checksum, buf: ByteBuffer, offset: Int, length: Int): Unit
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()