Search in sources :

Example 6 with BlockletIndex

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);
    }
}
Also used : BlockletIndex(org.apache.carbondata.format.BlockletIndex) Test(org.junit.Test)

Aggregations

BlockletIndex (org.apache.carbondata.format.BlockletIndex)6 BlockletBTreeIndex (org.apache.carbondata.format.BlockletBTreeIndex)4 BlockletMinMaxIndex (org.apache.carbondata.format.BlockletMinMaxIndex)4 FileFooter3 (org.apache.carbondata.format.FileFooter3)1 SegmentInfo (org.apache.carbondata.format.SegmentInfo)1 Test (org.junit.Test)1