private static void commitColumns(Environment env, PrimaryRowColumn prc,
List<Entry<Key, Value>> value, long commitTs, Map<ByteSequence, Mutation> mutations) {
for (Entry<Key, Value> entry : value) {
if (isPrimary(prc, entry.getKey())) {
continue;
}
long lockTs = entry.getKey().getTimestamp() & ColumnConstants.TIMESTAMP_MASK;
if (commitTs < lockTs) {
throw new IllegalStateException("bad commitTs : " + entry.getKey() + " (" + commitTs + "<"
+ lockTs + ")");
}
Mutation mut = getMutation(entry.getKey().getRowData(), mutations);
Column col = SpanUtil.toRowColumn(entry.getKey()).getColumn();
LockValue lv = new LockValue(entry.getValue().get());
ColumnUtil.commitColumn(env, lv.isTrigger(), false, col, lv.isWrite(), lv.isDelete(), lockTs,
commitTs, env.getObservers().keySet(), mut);
}
}