use of com.nearinfinity.honeycomb.hbase.rowkey.IndexRowKeyBuilder in project honeycomb by altamiracorp.
the class MutationFactory method doToIndices.
private void doToIndices(long tableId, final Row row, final Collection<IndexSchema> indices, final IndexAction action) {
for (IndexSchema index : indices) {
long indexId = store.getIndexId(tableId, index.getIndexName());
TableSchema schema = store.getSchema(tableId);
IndexRowKeyBuilder builder = IndexRowKeyBuilder.newBuilder(tableId, indexId).withUUID(row.getUUID()).withRow(row, index.getIndexName(), schema);
action.execute(builder);
}
}
Aggregations