Documentation
¶
Overview ¶
Package vqueue manages the vector cache layer for reducing FFI overhead for fast Agent processing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue interface {
PushInsert(uuid string, vector []float32, timestamp int64) error
PushDelete(uuid string, timestamp int64) error
PopInsert(uuid string) (vector []float32, timestamp int64, ok bool)
PopDelete(uuid string) (timestamp int64, ok bool)
GetVector(uuid string) (vec []float32, timestamp int64, exists bool)
Range(ctx context.Context, f func(uuid string, vector []float32, ts int64) bool)
GetVectorWithTimestamp(uuid string) (vec []float32, its, dts int64, exists bool)
RangePopInsert(ctx context.Context, now int64, f func(uuid string, vector []float32, timestamp int64) bool)
RangePopDelete(ctx context.Context, now int64, f func(uuid string) bool)
IVExists(uuid string) (timestamp int64, ok bool)
DVExists(uuid string) (timestamp int64, ok bool)
IVQLen() int
DVQLen() int
}
Queue represents vector queue cache interface.
Click to show internal directories.
Click to hide internal directories.