Search in sources :

Example 1 with CoveredColumns

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());
}
Also used : CoveredColumns(org.apache.phoenix.hbase.index.covered.CoveredColumns) ColumnReference(org.apache.phoenix.hbase.index.covered.update.ColumnReference) Test(org.junit.Test)

Aggregations

CoveredColumns (org.apache.phoenix.hbase.index.covered.CoveredColumns)1 ColumnReference (org.apache.phoenix.hbase.index.covered.update.ColumnReference)1 Test (org.junit.Test)1