Documentation ¶
Index ¶
- type Config
- type Server
- func (s *Server) CheckCollections(ctx context.Context, req *coordinatorpb.CheckCollectionsRequest) (*coordinatorpb.CheckCollectionsResponse, error)
- func (s *Server) Close() error
- func (s *Server) CreateCollection(ctx context.Context, req *coordinatorpb.CreateCollectionRequest) (*coordinatorpb.CreateCollectionResponse, error)
- func (s *Server) CreateDatabase(ctx context.Context, req *coordinatorpb.CreateDatabaseRequest) (*coordinatorpb.CreateDatabaseResponse, error)
- func (s *Server) CreateSegment(ctx context.Context, req *coordinatorpb.CreateSegmentRequest) (*coordinatorpb.CreateSegmentResponse, error)
- func (s *Server) CreateTenant(ctx context.Context, req *coordinatorpb.CreateTenantRequest) (*coordinatorpb.CreateTenantResponse, error)
- func (s *Server) DeleteCollection(ctx context.Context, req *coordinatorpb.DeleteCollectionRequest) (*coordinatorpb.DeleteCollectionResponse, error)
- func (s *Server) DeleteSegment(ctx context.Context, req *coordinatorpb.DeleteSegmentRequest) (*coordinatorpb.DeleteSegmentResponse, error)
- func (s *Server) FlushCollectionCompaction(ctx context.Context, req *coordinatorpb.FlushCollectionCompactionRequest) (*coordinatorpb.FlushCollectionCompactionResponse, error)
- func (s *Server) GetCollections(ctx context.Context, req *coordinatorpb.GetCollectionsRequest) (*coordinatorpb.GetCollectionsResponse, error)
- func (s *Server) GetDatabase(ctx context.Context, req *coordinatorpb.GetDatabaseRequest) (*coordinatorpb.GetDatabaseResponse, error)
- func (s *Server) GetLastCompactionTimeForTenant(ctx context.Context, req *coordinatorpb.GetLastCompactionTimeForTenantRequest) (*coordinatorpb.GetLastCompactionTimeForTenantResponse, error)
- func (s *Server) GetSegments(ctx context.Context, req *coordinatorpb.GetSegmentsRequest) (*coordinatorpb.GetSegmentsResponse, error)
- func (s *Server) GetTenant(ctx context.Context, req *coordinatorpb.GetTenantRequest) (*coordinatorpb.GetTenantResponse, error)
- func (s *Server) ResetState(context.Context, *emptypb.Empty) (*coordinatorpb.ResetStateResponse, error)
- func (s *Server) SetLastCompactionTimeForTenant(ctx context.Context, req *coordinatorpb.SetLastCompactionTimeForTenantRequest) (*emptypb.Empty, error)
- func (s *Server) UpdateCollection(ctx context.Context, req *coordinatorpb.UpdateCollectionRequest) (*coordinatorpb.UpdateCollectionResponse, error)
- func (s *Server) UpdateSegment(ctx context.Context, req *coordinatorpb.UpdateSegmentRequest) (*coordinatorpb.UpdateSegmentResponse, error)
- type SoftDeleteCleaner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // GrpcConfig config GrpcConfig *grpcutils.GrpcConfig // System catalog provider SystemCatalogProvider string // MetaTable config DBConfig dbcore.DBConfig // Kubernetes config KubernetesNamespace string // Memberlist config ReconcileInterval time.Duration ReconcileCount uint // Query service memberlist config QueryServiceMemberlistName string QueryServicePodLabel string // Watcher config WatchInterval time.Duration // Compaction service memberlist config CompactionServiceMemberlistName string CompactionServicePodLabel string // Config for soft deletes. SoftDeleteEnabled bool SoftDeleteCleanupInterval time.Duration SoftDeleteMaxAge time.Duration SoftDeleteCleanupBatchSize uint // Config for testing Testing bool }
type Server ¶
type Server struct { coordinatorpb.UnimplementedSysDBServer // contains filtered or unexported fields }
Server wraps Coordinator with GRPC services.
When Testing is set to true, the GRPC services will not be intialzed. This is convenient for end-to-end property based testing.
func NewWithGrpcProvider ¶
func (*Server) CheckCollections ¶
func (s *Server) CheckCollections(ctx context.Context, req *coordinatorpb.CheckCollectionsRequest) (*coordinatorpb.CheckCollectionsResponse, error)
func (*Server) CreateCollection ¶
func (s *Server) CreateCollection(ctx context.Context, req *coordinatorpb.CreateCollectionRequest) (*coordinatorpb.CreateCollectionResponse, error)
NOTE: In current implementation, we do not support updating the metadata of an existing collection via this RPC.
The call will fail if the collection already exists. Leaving the comments about cases 0,1,2,3 above for future reference. Refer to these issues for more context: https://github.com/chroma-core/chroma/issues/2390 https://github.com/chroma-core/chroma/pull/2810
func (*Server) CreateDatabase ¶
func (s *Server) CreateDatabase(ctx context.Context, req *coordinatorpb.CreateDatabaseRequest) (*coordinatorpb.CreateDatabaseResponse, error)
func (*Server) CreateSegment ¶
func (s *Server) CreateSegment(ctx context.Context, req *coordinatorpb.CreateSegmentRequest) (*coordinatorpb.CreateSegmentResponse, error)
func (*Server) CreateTenant ¶
func (s *Server) CreateTenant(ctx context.Context, req *coordinatorpb.CreateTenantRequest) (*coordinatorpb.CreateTenantResponse, error)
func (*Server) DeleteCollection ¶
func (s *Server) DeleteCollection(ctx context.Context, req *coordinatorpb.DeleteCollectionRequest) (*coordinatorpb.DeleteCollectionResponse, error)
func (*Server) DeleteSegment ¶
func (s *Server) DeleteSegment(ctx context.Context, req *coordinatorpb.DeleteSegmentRequest) (*coordinatorpb.DeleteSegmentResponse, error)
func (*Server) FlushCollectionCompaction ¶
func (s *Server) FlushCollectionCompaction(ctx context.Context, req *coordinatorpb.FlushCollectionCompactionRequest) (*coordinatorpb.FlushCollectionCompactionResponse, error)
func (*Server) GetCollections ¶
func (s *Server) GetCollections(ctx context.Context, req *coordinatorpb.GetCollectionsRequest) (*coordinatorpb.GetCollectionsResponse, error)
func (*Server) GetDatabase ¶
func (s *Server) GetDatabase(ctx context.Context, req *coordinatorpb.GetDatabaseRequest) (*coordinatorpb.GetDatabaseResponse, error)
func (*Server) GetLastCompactionTimeForTenant ¶
func (s *Server) GetLastCompactionTimeForTenant(ctx context.Context, req *coordinatorpb.GetLastCompactionTimeForTenantRequest) (*coordinatorpb.GetLastCompactionTimeForTenantResponse, error)
func (*Server) GetSegments ¶
func (s *Server) GetSegments(ctx context.Context, req *coordinatorpb.GetSegmentsRequest) (*coordinatorpb.GetSegmentsResponse, error)
func (*Server) GetTenant ¶
func (s *Server) GetTenant(ctx context.Context, req *coordinatorpb.GetTenantRequest) (*coordinatorpb.GetTenantResponse, error)
func (*Server) ResetState ¶
func (s *Server) ResetState(context.Context, *emptypb.Empty) (*coordinatorpb.ResetStateResponse, error)
func (*Server) SetLastCompactionTimeForTenant ¶
func (s *Server) SetLastCompactionTimeForTenant(ctx context.Context, req *coordinatorpb.SetLastCompactionTimeForTenantRequest) (*emptypb.Empty, error)
func (*Server) UpdateCollection ¶
func (s *Server) UpdateCollection(ctx context.Context, req *coordinatorpb.UpdateCollectionRequest) (*coordinatorpb.UpdateCollectionResponse, error)
func (*Server) UpdateSegment ¶
func (s *Server) UpdateSegment(ctx context.Context, req *coordinatorpb.UpdateSegmentRequest) (*coordinatorpb.UpdateSegmentResponse, error)
type SoftDeleteCleaner ¶
type SoftDeleteCleaner struct {
// contains filtered or unexported fields
}
func NewSoftDeleteCleaner ¶
func NewSoftDeleteCleaner(coordinator coordinator.Coordinator, cleanupInterval time.Duration, maxAge time.Duration, limitPerCheck uint) *SoftDeleteCleaner
func (*SoftDeleteCleaner) Start ¶
func (s *SoftDeleteCleaner) Start() error
func (*SoftDeleteCleaner) Stop ¶
func (s *SoftDeleteCleaner) Stop() error
Click to show internal directories.
Click to hide internal directories.