use of org.apache.carbondata.core.scan.processor.RawBlockletColumnChunks in project carbondata by apache.
the class FilterUtilTest method testCreateBitSetGroupWithColumnChunk.
@Test
public void testCreateBitSetGroupWithColumnChunk() {
BlockletDataRefNode blockletDataRefNode = new MockUp<BlockletDataRefNode>() {
@Mock
public int numberOfPages() {
return 2;
}
@Mock
public int getPageRowCount(int pageNumber) {
if (pageNumber == 0) {
return 94;
} else {
return 6;
}
}
}.getMockInstance();
RawBlockletColumnChunks rawBlockletColumnChunks = new MockUp<RawBlockletColumnChunks>() {
@Mock
public DataRefNode getDataBlock() {
return blockletDataRefNode;
}
}.getMockInstance();
BitSetGroup bitSetGroupWithColumnChunk = FilterUtil.createBitSetGroupWithColumnChunk(rawBlockletColumnChunks, true);
assertTrue(bitSetGroupWithColumnChunk.getNumberOfPages() == 2);
}
Aggregations