SegmentProperties { public int[] getEachDimColumnValueSize() { return eachDimColumnValueSize; } SegmentProperties(List<ColumnSchema> columnsInTable, int[] columnCardinality); int[] getDimensionColumnsValueSize(); KeyGenerator getDimensionKeyGenerator(); List<CarbonDimension> getDimensions(); List<CarbonDimension> getComplexDimensions(); List<CarbonMeasure> getMeasures(); int[] getDimColumnsCardinality(); int[] getComplexDimColumnCardinality(); Map<Integer, Integer> getDimensionOrdinalToBlockMapping(); Map<Integer, Integer> getMeasuresOrdinalToBlockMapping(); int[] getEachDimColumnValueSize(); int[] getEachComplexDimColumnValueSize(); ColumnarSplitter getFixedLengthKeySplitter(); Map<Integer, KeyGenerator> getColumnGroupAndItsKeygenartor(); int getNumberOfNoDictionaryDimension(); int[][] getColumnGroups(); ColumnGroupModel getColumnGroupModel(); int getColumnGroupMdKeyOrdinal(int colGrpId, int ordinal); int getNoOfColumnsInColumnGroup(int colGrpId); Set<Integer> getDimensionOrdinalForBlock(int blockIndex);  }
@Test public void testEachColumnValueSizeHasProperValue() { int[] size = { 1, -1, 2, -1, 3 }; int[] eachDimColumnValueSize = blockMetadataInfos.getEachDimColumnValueSize(); boolean isEqual = false; for (int i = 0; i < size.length; i++) { isEqual = size[i] == eachDimColumnValueSize[i]; if (!isEqual) { assertTrue(false); } } assertTrue(true); }