use of com.palantir.atlasdb.api.TableCellVal in project atlasdb by palantir.
the class TransactionRemotingTest method setupMultipleValues.
private void setupMultipleValues() {
TransactionToken txId = service.startTransaction();
service.put(txId, new TableCellVal("sweep.priority", getSweepPriorityTableContents("foo")));
service.put(txId, new TableCellVal("sweep.priority", getSweepPriorityTableContents("bar")));
service.put(txId, new TableCellVal("sweep.priority", getSweepPriorityTableContents("baz")));
service.commit(txId);
}
use of com.palantir.atlasdb.api.TableCellVal in project atlasdb by palantir.
the class TableCellValDeserializer method deserialize.
@Override
public TableCellVal deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException {
JsonNode node = jp.readValueAsTree();
String tableName = node.get("table").textValue();
TableMetadata metadata = metadataCache.getMetadata(tableName);
Map<Cell, byte[]> values = AtlasDeserializers.deserializeCellVals(metadata, node.get("data"));
return new TableCellVal(tableName, values);
}
Aggregations