Preconditions.checkState(mPut != null, "calls to put() must be between calls to begin() and "
+ "commit(), checkAndCommit(), or rollback()");
final State state = mState.get();
Preconditions.checkState(state == State.OPEN,
"Cannot put cell to an AtomicKijiPutter instance in state %s.", state);
final WriterLayoutCapsule capsule = getWriterLayoutCapsule();
final KijiColumnName kijiColumnName = KijiColumnName.create(family, qualifier);
final HBaseColumnName columnName =
capsule.getColumnNameTranslator().toHBaseColumnName(kijiColumnName);
final KijiCellEncoder cellEncoder =
capsule.getCellEncoderProvider().getEncoder(family, qualifier);
final byte[] encoded = cellEncoder.encode(value);
mHopper.add(new KeyValue(
mId, columnName.getFamily(), columnName.getQualifier(), timestamp, encoded));
}