Search in sources :

Example 1 with TestHashComponentsStreamMetadataTable

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());
}
Also used : StreamMetadata(com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata) TestHashComponentsStreamMetadataRow(com.palantir.atlasdb.schema.stream.generated.TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow) TestHashComponentsStreamMetadataTable(com.palantir.atlasdb.schema.stream.generated.TestHashComponentsStreamMetadataTable)

Aggregations

StreamMetadata (com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata)1 TestHashComponentsStreamMetadataTable (com.palantir.atlasdb.schema.stream.generated.TestHashComponentsStreamMetadataTable)1 TestHashComponentsStreamMetadataRow (com.palantir.atlasdb.schema.stream.generated.TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow)1