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(ctx context.Context, jobID int64) error
- func (kc *Catalog) DropImportTask(ctx context.Context, 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(ctx context.Context, 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) DropStatsTask(ctx context.Context, taskID 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(ctx context.Context) ([]*datapb.ImportJob, error)
- func (kc *Catalog) ListImportTasks(ctx context.Context) ([]*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(ctx context.Context) ([]*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) ListStatsTasks(ctx context.Context) ([]*indexpb.StatsTask, 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(ctx context.Context, job *datapb.ImportJob) error
- func (kc *Catalog) SaveImportTask(ctx context.Context, task *datapb.ImportTaskV2) error
- func (kc *Catalog) SavePartitionStatsInfo(ctx context.Context, coll *datapb.PartitionStatsInfo) error
- func (kc *Catalog) SavePreImportTask(ctx context.Context, task *datapb.PreImportTask) error
- func (kc *Catalog) SaveStatsTask(ctx context.Context, task *indexpb.StatsTask) 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" SegmentBM25logPathPrefix = MetaPrefix + "/bm25log" 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" StatsTaskPrefix = MetaPrefix + "/stats-task" 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, []*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) DropStatsTask ¶
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) ListImportJobs ¶
func (*Catalog) ListImportTasks ¶
func (*Catalog) ListIndexes ¶
func (*Catalog) ListPartitionStatsInfos ¶
func (*Catalog) ListPreImportTasks ¶
func (*Catalog) ListSegmentIndexes ¶
func (*Catalog) ListSegments ¶
func (*Catalog) ListStatsTasks ¶
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) SaveImportJob ¶
func (*Catalog) SaveImportTask ¶
func (*Catalog) SavePartitionStatsInfo ¶
func (*Catalog) SavePreImportTask ¶
func (*Catalog) SaveStatsTask ¶
Click to show internal directories.
Click to hide internal directories.