use of com.palantir.atlasdb.schema.stream.generated.StreamTestStreamMetadataTable in project atlasdb by palantir.
the class StreamTest method getMetadata.
private StreamPersistence.StreamMetadata getMetadata(StreamTestTableFactory tableFactory, Transaction tx, Long streamId) {
StreamTestStreamMetadataTable table = tableFactory.getStreamTestStreamMetadataTable(tx);
Set<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow> smRows = Sets.newHashSet();
smRows.add(StreamTestStreamMetadataTable.StreamTestStreamMetadataRow.of(streamId));
Map<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamPersistence.StreamMetadata> metadatas = table.getMetadatas(smRows);
return Iterables.getOnlyElement(metadatas.values());
}
Aggregations