use of org.apache.phoenix.hbase.index.covered.CoveredColumns in project phoenix by apache.
the class TestCoveredColumns method testCovering.
@Test
public void testCovering() {
ColumnReference ref = new ColumnReference(fam, qual);
CoveredColumns columns = new CoveredColumns();
assertEquals("Should have only found a single column to cover", 1, columns.findNonCoveredColumns(Arrays.asList(ref)).size());
columns.addColumn(ref);
assertEquals("Shouldn't have any columns to cover", 0, columns.findNonCoveredColumns(Arrays.asList(ref)).size());
}
Aggregations