struct Store::KVAction

Defined in:

store/kv_action.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(bucket : String, store : KVStore) #

[View source]

Class Method Detail

def self.decode_u32(encoded : Bytes) #

[View source]
def self.decode_u32_array(encoded : Bytes) #

[View source]
def self.decode_u32_set(encoded : Bytes) #

[View source]
def self.encode_u32(decoded : UInt32) : Bytes #

[View source]
def self.encode_u32_array(decoded : Array(UInt32)) : Bytes #

[View source]
def self.encode_u32_set(decoded : Set(UInt32)) : Bytes #

[View source]

Instance Method Detail

def add_term_to_iids?(term_hashed : TermHash, iid : UInt32, index : UInt8 = 0) #

[View source]
def batch_erase_bucket #

[View source]
def batch_flush_bucket(iid : UInt32, oid : String) #

[View source]
def bucket : String #

[View source]
def bucket=(bucket : String) #

[View source]
def delete_iid_to_attrs(iid : UInt32) #

[View source]
def delete_iid_to_oid(iid : UInt32) #

[View source]
def delete_iid_to_terms(iid : UInt32) #

[View source]
def delete_oid_to_iid(oid : String) #

[View source]
def delete_term_to_iids(term_hashed : TermHash, index : UInt8 = 0) #

[View source]
def get_iid_to_attrs(iid : UInt32) #

IID-to-Attrs mapper

[IDX=5] ((iid)) ~> [((attr))]


[View source]
def get_iid_to_oid(iid : UInt32) #

IID-to-OID mapper

[IDX=3] ((iid)) ~> ((oid))


[View source]
def get_iid_to_terms(iid : UInt32) #

IID-to-Terms mapper

[IDX=4] ((iid)) ~> [((term))]


[View source]
def get_meta_to_value(meta : MetaKey) #

Meta-to-Value mapper

[IDX=0] ((meta)) ~> ((value))


[View source]
def get_oid_to_iid(oid : String, &) #

OID-to-IID mapper

[IDX=2] ((oid)) ~> ((iid))


[View source]
def get_oid_to_iid(oid : String) #

[View source]
def get_term_to_iids(term_hashed : TermHash, index : UInt8 = 0) #

Term-to-IIDs mapper

[IDX=1] ((term)) ~> [((iid))]


[View source]
def iterate_term_to_iids(term_hashed : TermHash, start_index : UInt8 = 0, length = MAX_TERM_INDEX_SIZE, &) #

[View source]
def set_iid_to_attrs(iid : UInt32, attrs : Array(UInt32)) #

[View source]
def set_iid_to_oid(iid : UInt32, oid : String) #

[View source]
def set_iid_to_terms(iid : UInt32, terms_hashed : Set(UInt32)) #

[View source]
def set_meta_to_value(meta : MetaKey, value : UInt32) #

[View source]
def set_oid_to_iid(oid : String, iid : UInt32) #

[View source]
def set_term_to_iids(term_hashed : TermHash, iids : Set(UInt32), index : UInt8 = 0) #

[View source]
def store : KVStore #

[View source]
def store=(store : KVStore) #

[View source]