Class RewriteCrossSpaceCompactionSelector

    • Field Detail

      • logicalStorageGroupName

        protected java.lang.String logicalStorageGroupName
      • dataRegionId

        protected java.lang.String dataRegionId
      • timePartition

        protected long timePartition
    • Constructor Detail

      • RewriteCrossSpaceCompactionSelector

        public RewriteCrossSpaceCompactionSelector​(java.lang.String logicalStorageGroupName,
                                                   java.lang.String dataRegionId,
                                                   long timePartition,
                                                   TsFileManager tsFileManager)
    • Method Detail

      • selectCrossSpaceTask

        public java.util.List selectCrossSpaceTask​(java.util.List<TsFileResource> sequenceFileList,
                                                   java.util.List<TsFileResource> unsequenceFileList)
        This method creates a specific file selector according to the file selection strategy of crossSpace compaction, uses the file selector to select all unseqFiles and seqFiles to be compacted under the time partition of the virtual storage group, and creates a compaction task for them. The task is put into the compactionTaskQueue of the CompactionTaskManager.
        Specified by:
        selectCrossSpaceTask in interface ICompactionSelector
        Specified by:
        selectCrossSpaceTask in interface ICrossSpaceSelector
        Returns:
        Returns whether the file was found and submits the merge task