docarray.array.storage.annlite.helper module#

class docarray.array.storage.annlite.helper.OffsetMapping(name='offset2ids', data_path=None, in_memory=True)[source]#

Bases: Table

close()[source]#
create_table()[source]#
drop()[source]#
clear()[source]#

Drop the table and create a new one

property size#
extend_doc_ids(doc_ids, commit=True)[source]#
get_id_by_offset(offset)[source]#
get_ids_by_offsets(offsets)[source]#
Return type:

List[str]

get_offsets_by_ids(ids)[source]#
Return type:

List[int]

get_offset_by_id(doc_id)[source]#
get_all_ids()[source]#
del_at_offset(offset, commit=True)[source]#
del_at_offsets(offsets, commit=True)[source]#
insert_at_offset(offset, doc_id, commit=True)[source]#
set_at_offset(offset, doc_id, commit=True)[source]#
shift_offset(shift_from, shift_step=1, direction='left', commit=True)[source]#
commit()#
drop_table()#
dump(data_file)#
execute(sql, commit=True)#
execute_many(sql, parameters, commit=True)#
load(data_file)#
property name#
property schema#

SQL schema for this database