use of org.apache.accumulo.core.data.thrift.TMutation in project accumulo by apache.
the class Mutation method toThrift.
private TMutation toThrift(boolean serialize) {
if (serialize) {
this.serialize();
}
ByteBuffer data = serializedSnapshot();
TMutation tmutation = new TMutation(ByteBuffer.wrap(row), data, ByteBufferUtil.toByteBuffers(values), entries);
if (!this.replicationSources.isEmpty()) {
tmutation.setSources(new ArrayList<>(replicationSources));
}
return tmutation;
}
Aggregations