Documentation ¶
Overview ¶
DB wrapper for USTORE
Index ¶
- func Close(db *UStoreDB)
- func DeleteColumnFamilyHandle(cfh *ColumnFamilyHandle)
- func DeleteIterator(it ustore.Iterator)
- func DeleteWriteBatch(batch *WriteBatch)
- func GetIterator(cfh *ColumnFamilyHandle) (ustore.Iterator, error)
- type ColumnFamilyHandle
- type UStoreDB
- func (db *UStoreDB) CreateColumnFamily(cfname string) (*ColumnFamilyHandle, error)
- func (db *UStoreDB) DeleteCF(cfh *ColumnFamilyHandle, key string) error
- func (db *UStoreDB) DropColumnFamily(cfh *ColumnFamilyHandle) error
- func (db *UStoreDB) ExistCF(cfh *ColumnFamilyHandle, key string) error
- func (db *UStoreDB) GetCF(cfh *ColumnFamilyHandle, key string) (string, error)
- func (db *UStoreDB) GetSize() uint64
- func (db *UStoreDB) PutCF(cfh *ColumnFamilyHandle, key string, value string) error
- func (db *UStoreDB) Write(writebatch *WriteBatch) error
- type WriteBatch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteColumnFamilyHandle ¶
func DeleteColumnFamilyHandle(cfh *ColumnFamilyHandle)
func DeleteIterator ¶
func DeleteWriteBatch ¶
func DeleteWriteBatch(batch *WriteBatch)
func GetIterator ¶
func GetIterator(cfh *ColumnFamilyHandle) (ustore.Iterator, error)
Types ¶
type ColumnFamilyHandle ¶
type ColumnFamilyHandle struct {
// contains filtered or unexported fields
}
column family namespace
func (*ColumnFamilyHandle) GetCFName ¶
func (cfh *ColumnFamilyHandle) GetCFName() string
type UStoreDB ¶
type UStoreDB struct {
// contains filtered or unexported fields
}
func (*UStoreDB) CreateColumnFamily ¶
func (db *UStoreDB) CreateColumnFamily(cfname string) (*ColumnFamilyHandle, error)
func (*UStoreDB) DropColumnFamily ¶
func (db *UStoreDB) DropColumnFamily(cfh *ColumnFamilyHandle) error
func (*UStoreDB) GetCF ¶
func (db *UStoreDB) GetCF(cfh *ColumnFamilyHandle, key string) (string, error)
func (*UStoreDB) PutCF ¶
func (db *UStoreDB) PutCF(cfh *ColumnFamilyHandle, key string, value string) error
func (*UStoreDB) Write ¶
func (db *UStoreDB) Write(writebatch *WriteBatch) error
type WriteBatch ¶
type WriteBatch struct {
// contains filtered or unexported fields
}
wrap write batch, indexed by ColumnFamily name
func NewWriteBatch ¶
func NewWriteBatch() (*WriteBatch, error)
func (*WriteBatch) Clear ¶
func (writebatch *WriteBatch) Clear()
func (*WriteBatch) DeleteCF ¶
func (writebatch *WriteBatch) DeleteCF(cfh *ColumnFamilyHandle, key string)
func (*WriteBatch) PutCF ¶
func (writebatch *WriteBatch) PutCF(cfh *ColumnFamilyHandle, key string, value string) error
Click to show internal directories.
Click to hide internal directories.