use of org.apache.phoenix.hbase.index.covered.IndexUpdate in project phoenix by apache.
the class PhoenixTxIndexMutationGenerator method generatePuts.
private boolean generatePuts(PhoenixIndexMetaData indexMetaData, Collection<Pair<Mutation, byte[]>> indexUpdates, TxTableState state) throws IOException {
state.applyMutation();
Iterable<IndexUpdate> puts = codec.getIndexUpserts(state, indexMetaData);
boolean validPut = false;
for (IndexUpdate put : puts) {
if (put.isValid()) {
indexUpdates.add(new Pair<Mutation, byte[]>(put.getUpdate(), put.getTableName()));
validPut = true;
}
}
return validPut;
}
Aggregations