Documentation ¶
Index ¶
- Constants
- Variables
- type Builder
- type Iter
- type Table
- func (t *Table) Close() error
- func (t *Table) DataSize() uint64
- func (t *Table) Get(key []byte) (value []byte, extra []byte, e error)
- func (t *Table) GetInfo(key []byte) (length uint, extra []byte, e error)
- func (t *Table) GetPartial(key []byte, off uint, p []byte) errordeprecated
- func (t *Table) GetReader(key []byte) (*ValueReader, error)
- func (t *Table) Has(key []byte) bool
- func (t *Table) KeyIter() *Iterdeprecated
- func (t *Table) Keys() (keys [][]byte)
- func (t *Table) LowerKey(key []byte) (k []byte, e []byte, n uint)
- func (t *Table) NumKeys() int
- func (t *Table) Stats() TableStats
- func (t *Table) UpperKey(key []byte) (k []byte, e []byte, n uint)
- type TableStats
- type ValueReader
- type ValueWriter
Constants ¶
View Source
const ( MaxKeyLength = 256 MaxValueLength = 1024 * 1024 * 1024 // 1GiB )
Variables ¶
View Source
var ErrNotFound = errors.New("Not found")
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder(w io.Writer, vf ValueWriter) *Builder
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
func (*Table) LowerKey ¶
Gets the key (and extra and value length) in the table that is less than or equal to the given key. Will return nil if no such key exists.
func (*Table) Stats ¶
func (t *Table) Stats() TableStats
type TableStats ¶
type ValueReader ¶
type ValueReader struct {
// contains filtered or unexported fields
}
func (*ValueReader) Extra ¶
func (r *ValueReader) Extra() []byte
func (*ValueReader) Size ¶
func (r *ValueReader) Size() int64
Returns int64 to match various other Size() methods (i.e. FileInfo.Size())
Click to show internal directories.
Click to hide internal directories.