Documentation ¶
Index ¶
- Variables
- type Allocator
- type Dataset
- func (this *Dataset) BatchInsert(ctx context.Context, items []*pb.BatchItem) (map[uuid.UUID]error, error)
- func (this *Dataset) BatchRemove(ctx context.Context, items []*pb.BatchItem) (map[uuid.UUID]error, error)
- func (this *Dataset) BatchUpdate(ctx context.Context, items []*pb.BatchItem) (map[uuid.UUID]error, error)
- func (this *Dataset) BytesSize(ctx context.Context) (uint64, error)
- func (this *Dataset) Insert(ctx context.Context, id uuid.UUID, value math.Vector, metadata index.Metadata) error
- func (this *Dataset) Len(ctx context.Context) (uint64, error)
- func (this *Dataset) Meta() *pb.Dataset
- func (this *Dataset) PartitionBatchInsert(ctx context.Context, partitionId uuid.UUID, items []*pb.BatchItem) (map[uuid.UUID]error, error)
- func (this *Dataset) PartitionBatchRemove(ctx context.Context, partitionId uuid.UUID, items []*pb.BatchItem) (map[uuid.UUID]error, error)
- func (this *Dataset) PartitionBatchUpdate(ctx context.Context, partitionId uuid.UUID, items []*pb.BatchItem) (map[uuid.UUID]error, error)
- func (this *Dataset) PartitionInfo(ctx context.Context, partitionId uuid.UUID) (uint64, uint64, error)
- func (this *Dataset) Remove(ctx context.Context, id uuid.UUID) error
- func (this *Dataset) Search(ctx context.Context, query math.Vector, k uint) (index.SearchResult, error)
- func (this *Dataset) SearchPartitions(ctx context.Context, partitionIds []uuid.UUID, query math.Vector, k uint) (index.SearchResult, error)
- func (this *Dataset) SizeInfo(ctx context.Context) (uint64, uint64, error)
- func (this *Dataset) Update(ctx context.Context, id uuid.UUID, value math.Vector, metadata index.Metadata) error
- type DatasetManager
- func (this *DatasetManager) Close()
- func (this *DatasetManager) Create(ctx context.Context, dataset *pb.Dataset) (*Dataset, error)
- func (this *DatasetManager) Delete(ctx context.Context, id uuid.UUID) error
- func (this *DatasetManager) Get(id uuid.UUID) (*Dataset, error)
- func (this *DatasetManager) List(ctx context.Context, withSize bool) ([]*pb.Dataset, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DimensionMissmatchErr error = errors.New("Value dimension does not match dataset dimension") PartitionNotFoundErr error = errors.New("Partition not found") PartitionNotOnNodeErr error = errors.New("Partition is not loaded on the node") BatchRequestTooLargerErr error = errors.New("Batch request too large") )
View Source
var ( DatasetNotFoundErr error = errors.New("Dataset not found") DatasetAlreadyExistsErr error = errors.New("Dataset already exists") )
View Source
var (
RaftNotLoadedOnNodeErr error = errors.New("Raft is not loaded on this node")
)
Functions ¶
This section is empty.
Types ¶
type Allocator ¶
type Allocator struct {
// contains filtered or unexported fields
}
func NewAllocator ¶
type Dataset ¶
type Dataset struct {
// contains filtered or unexported fields
}
func (*Dataset) BatchInsert ¶
func (*Dataset) BatchRemove ¶
func (*Dataset) BatchUpdate ¶
func (*Dataset) PartitionBatchInsert ¶
func (*Dataset) PartitionBatchRemove ¶
func (*Dataset) PartitionBatchUpdate ¶
func (*Dataset) PartitionInfo ¶
func (*Dataset) SearchPartitions ¶
type DatasetManager ¶
type DatasetManager struct {
// contains filtered or unexported fields
}
func NewDatasetManager ¶
func (*DatasetManager) Close ¶
func (this *DatasetManager) Close()
Click to show internal directories.
Click to hide internal directories.