use of org.apache.carbondata.format.BlockletIndex in project carbondata by apache.
the class FileFooterValidator method testFileFooterBlockletIndex.
@Test
public void testFileFooterBlockletIndex() {
assertTrue(fileFooter.getBlocklet_index_list() != null && fileFooter.getBlocklet_index_list().size() > 0);
for (BlockletIndex blockletIndex : fileFooter.getBlocklet_index_list()) {
assertTrue(blockletIndex.getMin_max_index().getMin_values() != null && blockletIndex.getMin_max_index().getMin_values().size() > 0 && blockletIndex.getMin_max_index().getMax_values() != null && blockletIndex.getMin_max_index().getMax_values().size() > 0 && blockletIndex.getMin_max_index().getMin_values().size() == blockletIndex.getMin_max_index().getMax_values().size());
assertTrue(blockletIndex.getB_tree_index().getStart_key() != null && blockletIndex.getB_tree_index().getEnd_key() != null);
}
}
Aggregations