private void checkTableConfigWithStarTreeConfig(TableConfig tableConfig, TableConfig tableConfigToCompare) throws Exception { // Check that the segment assignment configuration does exist. Assert.assertEquals(tableConfigToCompare.getTableName(), tableConfig.getTableName()); Assert.assertNotNull(tableConfigToCompare.getIndexingConfig().getStarTreeIndexSpec()); // Check that the configurations are correct. StarTreeIndexSpec starTreeIndexSpec = tableConfigToCompare.getIndexingConfig().getStarTreeIndexSpec(); Set<String> dims = new HashSet<>(); dims.add("dims"); Assert.assertEquals(starTreeIndexSpec.getDimensionsSplitOrder(), Collections.singletonList("dim")); Assert.assertEquals(starTreeIndexSpec.getMaxLeafRecords(), 5); Assert.assertEquals(starTreeIndexSpec.getSkipMaterializationCardinalityThreshold(), 1); Assert.assertEquals(starTreeIndexSpec.getSkipMaterializationForDimensions(), dims); Assert.assertEquals(starTreeIndexSpec.getSkipStarNodeCreationForDimensions(), dims); starTreeIndexSpec = StarTreeIndexSpec.fromJsonString(starTreeIndexSpec.toJsonString()); Assert.assertEquals(starTreeIndexSpec.getDimensionsSplitOrder(), Collections.singletonList("dim")); Assert.assertEquals(starTreeIndexSpec.getMaxLeafRecords(), 5); Assert.assertEquals(starTreeIndexSpec.getSkipMaterializationCardinalityThreshold(), 1); Assert.assertEquals(starTreeIndexSpec.getSkipMaterializationForDimensions(), dims); Assert.assertEquals(starTreeIndexSpec.getSkipStarNodeCreationForDimensions(), dims); }
assertEquals(actualStarTreeSpec.getMaxLeafRecords(), expectedMaxLeafRecords); assertEquals(actualStarTreeSpec.getSkipMaterializationCardinalityThreshold(), expectedSkipMaterializationThreshold); assertEquals(actualStarTreeSpec.getSkipMaterializationForDimensions(), expectedSkipMaterializationDimensions); assertEquals(actualStarTreeSpec.getSkipStarNodeCreationForDimensions(), expectedSkipStarNodeCreationForDimension);
starTreeIndexSpec.getSkipStarNodeCreationForDimensions()); properties.setProperty(STAR_TREE_SKIP_MATERIALIZATION_CARDINALITY, starTreeIndexSpec.getSkipMaterializationCardinalityThreshold()); properties.setProperty(STAR_TREE_SKIP_MATERIALIZATION_FOR_DIMENSIONS, starTreeIndexSpec.getSkipMaterializationForDimensions());
starTreeBuilderConfig.setSkipMaterializationDimensions(starTreeIndexSpec.getSkipMaterializationForDimensions()); starTreeBuilderConfig .setSkipMaterializationCardinalityThreshold(starTreeIndexSpec.getSkipMaterializationCardinalityThreshold()); starTreeBuilderConfig.setMaxNumLeafRecords(starTreeIndexSpec.getMaxLeafRecords()); starTreeBuilderConfig.setExcludeSkipMaterializationDimensionsForStarTreeIndex(