use of com.palantir.atlasdb.table.description.ColumnValueDescription in project atlasdb by palantir.
the class TableMetadataDeserializer method deserializeNamedCols.
private ColumnMetadataDescription deserializeNamedCols(JsonNode node) {
Collection<NamedColumnDescription> cols = Lists.newArrayList();
for (JsonNode colNode : node.get("columns")) {
String name = colNode.get("name").asText();
String longName = colNode.get("long_name").asText();
ColumnValueDescription val = deserializeValue(colNode.get("value"));
cols.add(new NamedColumnDescription(name, longName, val));
}
return new ColumnMetadataDescription(cols);
}
use of com.palantir.atlasdb.table.description.ColumnValueDescription in project atlasdb by palantir.
the class TableMetadataDeserializer method deserializeDynamicCol.
private ColumnMetadataDescription deserializeDynamicCol(JsonNode node) {
NameMetadataDescription col = deserializeRowish(node.get("column"));
ColumnValueDescription val = deserializeValue(node.get("value"));
DynamicColumnDescription dynamicCol = new DynamicColumnDescription(col, val);
return new ColumnMetadataDescription(dynamicCol);
}
Aggregations