@Test(enabled = true)
public void testCreation() throws Exception {
BasicConfigurator.configure();
final SegmentGeneratorConfig config =
SegmentTestUtils.getSegmentGenSpecWithSchemAndProjectedColumns(avroFile, indexDir, "daysSinceEpoch",
TimeUnit.DAYS, "testTable");
config.setSegmentNamePostfix("1");
config.setTimeColumnName("daysSinceEpoch");
// Set the star tree index config
StarTreeIndexSpec starTreeIndexSpec = new StarTreeIndexSpec();
// starTreeIndexSpec.setSplitExcludes(Arrays.asList("D1", "daysSinceEpoch"));
starTreeIndexSpec.setSplitExcludes(Arrays.asList("daysSinceEpoch"));
starTreeIndexSpec.setMaxLeafRecords(4);
config.getSchema().setStarTreeIndexSpec(starTreeIndexSpec);
final SegmentIndexCreationDriver driver = SegmentCreationDriverFactory.get(null);
driver.init(config);
driver.build();
}
TestStarTreeSegmentCreator.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:Pinot
作者:
评论列表
文章目录