@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()); } }
Collection<? extends ColumnReference> indexedColumns, boolean ignoreNewerMutations, boolean isStateForDeletes, IndexMetaData indexMetaData) throws IOException { Collection<? extends ColumnReference> toCover = this.columnSet.findNonCoveredColumns(indexedColumns); this.columnSet.addColumn(ref);
public LocalTableState(LocalHBaseState table, Mutation update) { this.table = table; this.update = update; this.memstore = new IndexMemStore(); this.scannerBuilder = new ScannerBuilder(memstore, update); this.columnSet = new CoveredColumns(); }
Collection<? extends ColumnReference> indexedColumns, boolean ignoreNewerMutations, boolean isStateForDeletes, IndexMetaData indexMetaData) throws IOException { Collection<? extends ColumnReference> toCover = this.columnSet.findNonCoveredColumns(indexedColumns); this.columnSet.addColumn(ref);
public LocalTableState(LocalHBaseState table, Mutation update) { this.table = table; this.update = update; this.memstore = new IndexMemStore(); this.scannerBuilder = new ScannerBuilder(memstore, update); this.columnSet = new CoveredColumns(); }
Collection<? extends ColumnReference> indexedColumns, boolean ignoreNewerMutations, boolean isStateForDeletes, IndexMetaData indexMetaData) throws IOException { Collection<? extends ColumnReference> toCover = this.columnSet.findNonCoveredColumns(indexedColumns); this.columnSet.addColumn(ref);
public LocalTableState(LocalHBaseState table, Mutation update) { this.table = table; this.update = update; this.memstore = new IndexMemStore(); this.scannerBuilder = new ScannerBuilder(memstore, update); this.columnSet = new CoveredColumns(); }