Documentation ¶
Index ¶
- Constants
- func BuildIndexKey(collectionID, indexID int64) string
- func BuildSegmentIndexKey(collectionID, partitionID, segmentID, buildID int64) string
- func CloneSegmentWithExcludeBinlogs(segment *datapb.SegmentInfo) (*datapb.SegmentInfo, []*datapb.FieldBinlog, []*datapb.FieldBinlog, ...)
- func ValidateSegment(segment *datapb.SegmentInfo) error
- type Catalog
- func (kc *Catalog) AddSegment(ctx context.Context, segment *datapb.SegmentInfo) error
- func (kc *Catalog) AlterIndexes(ctx context.Context, indexes []*model.Index) error
- func (kc *Catalog) AlterSegmentIndexes(ctx context.Context, segIdxes []*model.SegmentIndex) error
- func (kc *Catalog) AlterSegments(ctx context.Context, segments []*datapb.SegmentInfo, ...) error
- func (kc *Catalog) ChannelExists(ctx context.Context, channel string) bool
- func (kc *Catalog) CreateIndex(ctx context.Context, index *model.Index) error
- func (kc *Catalog) CreateSegmentIndex(ctx context.Context, segIdx *model.SegmentIndex) error
- func (kc *Catalog) DropAnalyzeTask(ctx context.Context, taskID typeutil.UniqueID) error
- func (kc *Catalog) DropChannel(ctx context.Context, channel string) error
- func (kc *Catalog) DropChannelCheckpoint(ctx context.Context, vChannel string) error
- func (kc *Catalog) DropCompactionTask(ctx context.Context, task *datapb.CompactionTask) error
- func (kc *Catalog) DropCurrentPartitionStatsVersion(ctx context.Context, collID, partID int64, vChannel string) error
- func (kc *Catalog) DropImportJob(jobID int64) error
- func (kc *Catalog) DropImportTask(taskID int64) error
- func (kc *Catalog) DropIndex(ctx context.Context, collID typeutil.UniqueID, dropIdxID typeutil.UniqueID) error
- func (kc *Catalog) DropPartitionStatsInfo(ctx context.Context, info *datapb.PartitionStatsInfo) error
- func (kc *Catalog) DropPreImportTask(taskID int64) error
- func (kc *Catalog) DropSegment(ctx context.Context, segment *datapb.SegmentInfo) error
- func (kc *Catalog) DropSegmentIndex(ctx context.Context, collID, partID, segID, buildID typeutil.UniqueID) error
- func (kc *Catalog) GcConfirm(ctx context.Context, collectionID, partitionID typeutil.UniqueID) bool
- func (kc *Catalog) GetCurrentPartitionStatsVersion(ctx context.Context, collID, partID int64, vChannel string) (int64, error)
- func (kc *Catalog) ListAnalyzeTasks(ctx context.Context) ([]*indexpb.AnalyzeTask, error)
- func (kc *Catalog) ListChannelCheckpoint(ctx context.Context) (map[string]*msgpb.MsgPosition, error)
- func (kc *Catalog) ListCompactionTask(ctx context.Context) ([]*datapb.CompactionTask, error)
- func (kc *Catalog) ListImportJobs() ([]*datapb.ImportJob, error)
- func (kc *Catalog) ListImportTasks() ([]*datapb.ImportTaskV2, error)
- func (kc *Catalog) ListIndexes(ctx context.Context) ([]*model.Index, error)
- func (kc *Catalog) ListPartitionStatsInfos(ctx context.Context) ([]*datapb.PartitionStatsInfo, error)
- func (kc *Catalog) ListPreImportTasks() ([]*datapb.PreImportTask, error)
- func (kc *Catalog) ListSegmentIndexes(ctx context.Context) ([]*model.SegmentIndex, error)
- func (kc *Catalog) ListSegments(ctx context.Context) ([]*datapb.SegmentInfo, error)
- func (kc *Catalog) LoadFromSegmentPath(colID, partID, segID typeutil.UniqueID) (*datapb.SegmentInfo, error)
- func (kc *Catalog) MarkChannelAdded(ctx context.Context, channel string) error
- func (kc *Catalog) MarkChannelDeleted(ctx context.Context, channel string) error
- func (kc *Catalog) SaveAnalyzeTask(ctx context.Context, task *indexpb.AnalyzeTask) error
- func (kc *Catalog) SaveByBatch(kvs map[string]string) error
- func (kc *Catalog) SaveChannelCheckpoint(ctx context.Context, vChannel string, pos *msgpb.MsgPosition) error
- func (kc *Catalog) SaveChannelCheckpoints(ctx context.Context, positions []*msgpb.MsgPosition) error
- func (kc *Catalog) SaveCompactionTask(ctx context.Context, coll *datapb.CompactionTask) error
- func (kc *Catalog) SaveCurrentPartitionStatsVersion(ctx context.Context, collID, partID int64, vChannel string, ...) error
- func (kc *Catalog) SaveDroppedSegmentsInBatch(ctx context.Context, segments []*datapb.SegmentInfo) error
- func (kc *Catalog) SaveImportJob(job *datapb.ImportJob) error
- func (kc *Catalog) SaveImportTask(task *datapb.ImportTaskV2) error
- func (kc *Catalog) SavePartitionStatsInfo(ctx context.Context, coll *datapb.PartitionStatsInfo) error
- func (kc *Catalog) SavePreImportTask(task *datapb.PreImportTask) error
- func (kc *Catalog) ShouldDropChannel(ctx context.Context, channel string) bool
Constants ¶
View Source
const ( MetaPrefix = "datacoord-meta" SegmentPrefix = MetaPrefix + "/s" SegmentBinlogPathPrefix = MetaPrefix + "/binlog" SegmentDeltalogPathPrefix = MetaPrefix + "/deltalog" SegmentStatslogPathPrefix = MetaPrefix + "/statslog" ChannelRemovePrefix = MetaPrefix + "/channel-removal" ChannelCheckpointPrefix = MetaPrefix + "/channel-cp" ImportJobPrefix = MetaPrefix + "/import-job" ImportTaskPrefix = MetaPrefix + "/import-task" PreImportTaskPrefix = MetaPrefix + "/preimport-task" CompactionTaskPrefix = MetaPrefix + "/compaction-task" AnalyzeTaskPrefix = MetaPrefix + "/analyze-task" PartitionStatsInfoPrefix = MetaPrefix + "/partition-stats" PartitionStatsCurrentVersionPrefix = MetaPrefix + "/current-partition-stats-version" NonRemoveFlagTomestone = "non-removed" RemoveFlagTomestone = "removed" )
Variables ¶
This section is empty.
Functions ¶
func BuildIndexKey ¶
func BuildSegmentIndexKey ¶
func CloneSegmentWithExcludeBinlogs ¶
func CloneSegmentWithExcludeBinlogs(segment *datapb.SegmentInfo) (*datapb.SegmentInfo, []*datapb.FieldBinlog, []*datapb.FieldBinlog, []*datapb.FieldBinlog)
func ValidateSegment ¶
func ValidateSegment(segment *datapb.SegmentInfo) error
Types ¶
type Catalog ¶
type Catalog struct { MetaKv kv.MetaKv ChunkManagerRootPath string // contains filtered or unexported fields }
func NewCatalog ¶
func (*Catalog) AddSegment ¶
func (*Catalog) AlterIndexes ¶
func (*Catalog) AlterSegmentIndexes ¶
func (*Catalog) AlterSegments ¶
func (kc *Catalog) AlterSegments(ctx context.Context, segments []*datapb.SegmentInfo, binlogs ...metastore.BinlogsIncrement) error
func (*Catalog) ChannelExists ¶
func (*Catalog) CreateIndex ¶
func (*Catalog) CreateSegmentIndex ¶
func (*Catalog) DropAnalyzeTask ¶
func (*Catalog) DropChannel ¶
DropChannel removes channel remove flag after whole procedure is finished
func (*Catalog) DropChannelCheckpoint ¶
func (*Catalog) DropCompactionTask ¶
func (*Catalog) DropCurrentPartitionStatsVersion ¶
func (*Catalog) DropImportJob ¶
func (*Catalog) DropImportTask ¶
func (*Catalog) DropPartitionStatsInfo ¶
func (*Catalog) DropPreImportTask ¶
func (*Catalog) DropSegment ¶
func (*Catalog) DropSegmentIndex ¶
func (*Catalog) GcConfirm ¶
GcConfirm returns true if related collection/partition is not found. DataCoord will remove all the meta eventually after GC is finished.
func (*Catalog) GetCurrentPartitionStatsVersion ¶
func (*Catalog) ListAnalyzeTasks ¶
func (*Catalog) ListChannelCheckpoint ¶
func (*Catalog) ListCompactionTask ¶
func (*Catalog) ListImportTasks ¶
func (kc *Catalog) ListImportTasks() ([]*datapb.ImportTaskV2, error)
func (*Catalog) ListIndexes ¶
func (*Catalog) ListPartitionStatsInfos ¶
func (*Catalog) ListPreImportTasks ¶
func (kc *Catalog) ListPreImportTasks() ([]*datapb.PreImportTask, error)
func (*Catalog) ListSegmentIndexes ¶
func (*Catalog) ListSegments ¶
func (*Catalog) LoadFromSegmentPath ¶
func (kc *Catalog) LoadFromSegmentPath(colID, partID, segID typeutil.UniqueID) (*datapb.SegmentInfo, error)
LoadFromSegmentPath loads segment info from persistent storage by given segment path. # TESTING ONLY #
func (*Catalog) MarkChannelAdded ¶
func (*Catalog) MarkChannelDeleted ¶
func (*Catalog) SaveAnalyzeTask ¶
func (*Catalog) SaveChannelCheckpoint ¶
func (*Catalog) SaveChannelCheckpoints ¶
func (*Catalog) SaveCompactionTask ¶
func (*Catalog) SaveCurrentPartitionStatsVersion ¶
func (*Catalog) SaveDroppedSegmentsInBatch ¶
func (*Catalog) SaveImportTask ¶
func (kc *Catalog) SaveImportTask(task *datapb.ImportTaskV2) error
func (*Catalog) SavePartitionStatsInfo ¶
func (*Catalog) SavePreImportTask ¶
func (kc *Catalog) SavePreImportTask(task *datapb.PreImportTask) error
Click to show internal directories.
Click to hide internal directories.