Class StarTreeIndexCombiner
- java.lang.Object
-
- org.apache.pinot.segment.local.startree.v2.builder.StarTreeIndexCombiner
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class StarTreeIndexCombiner extends Object implements Closeable
TheStarTreeIndexCombinerclass combines multiple star-tree indexes into a single index file.
-
-
Constructor Summary
Constructors Constructor Description StarTreeIndexCombiner(File indexFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Map<StarTreeIndexMapUtils.IndexKey,StarTreeIndexMapUtils.IndexValue>combine(StarTreeV2BuilderConfig builderConfig, File starTreeIndexDir)Combines the index files inside the given directory into the single index file, then cleans the directory.
-
-
-
Constructor Detail
-
StarTreeIndexCombiner
public StarTreeIndexCombiner(File indexFile) throws IOException
- Throws:
IOException
-
-
Method Detail
-
combine
public Map<StarTreeIndexMapUtils.IndexKey,StarTreeIndexMapUtils.IndexValue> combine(StarTreeV2BuilderConfig builderConfig, File starTreeIndexDir) throws IOException
Combines the index files inside the given directory into the single index file, then cleans the directory.- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-