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