Search in sources :

Example 1 with StreamTestStreamMetadataTable

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

Aggregations

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