use of com.palantir.atlasdb.table.description.generated.SchemaApiTestTable in project atlasdb by palantir.
the class SchemaApiTestImpl method getMultipleRowsFirstColumn.
@Override
protected Map<String, Long> getMultipleRowsFirstColumn(Transaction transaction, List<String> rowKeys) {
SchemaApiTestTable table = tableFactory.getSchemaApiTestTable(transaction);
ColumnSelection firstColSelection = SchemaApiTestTable.getColumnSelection(SchemaApiTestTable.SchemaApiTestNamedColumn.COLUMN1);
List<SchemaApiTestRowResult> result = table.getRows(rowKeys.stream().map(SchemaApiTestRow::of).collect(Collectors.toList()), firstColSelection);
return result.stream().collect(Collectors.toMap(entry -> entry.getRowName().getComponent1(), SchemaApiTestTable.SchemaApiTestRowResult::getColumn1));
}
use of com.palantir.atlasdb.table.description.generated.SchemaApiTestTable in project atlasdb by palantir.
the class SchemaApiTestImpl method putSingleRowFirstColumn.
@Override
protected void putSingleRowFirstColumn(Transaction transaction, String rowKey, long value) {
SchemaApiTestTable table = tableFactory.getSchemaApiTestTable(transaction);
table.putColumn1(SchemaApiTestRow.of(rowKey), value);
}
Aggregations