Documentation ¶
Index ¶
Constants ¶
View Source
const (
LengthTypeSize = 2
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockBuilder ¶
type BlockBuilder struct {
// contains filtered or unexported fields
}
func NewBlockBuilder ¶
func NewBlockBuilder(maxBlockSize int) *BlockBuilder
func (*BlockBuilder) Add ¶
func (builder *BlockBuilder) Add(key, value []byte) bool
func (*BlockBuilder) BuildBlock ¶
func (builder *BlockBuilder) BuildBlock() *Block
func (*BlockBuilder) Empty ¶
func (builder *BlockBuilder) Empty() bool
func (*BlockBuilder) EstimateEncodedSize ¶
func (builder *BlockBuilder) EstimateEncodedSize() int
blcok size is (entries byte buffer) * (sizeof(int16) * number of offset) * (sizeof(int16))
func (*BlockBuilder) MaxBlockSize ¶
func (builder *BlockBuilder) MaxBlockSize() int
type BlockMeta ¶
type BlockMeta struct {
// contains filtered or unexported fields
}
func NewBlockMeta ¶
Click to show internal directories.
Click to hide internal directories.