Interface SegmentMetadataReadTransaction
- All Superinterfaces:
AutoCloseable,Closeable,DatasourceSegmentMetadataReader
- All Known Subinterfaces:
SegmentMetadataTransaction
Represents a single transaction involving read of segment metadata into
the metadata store. A transaction is associated with a single instance of a
Handle and is meant to be short-lived.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Completes the transaction by either committing it or rolling it back.org.skife.jdbi.v2.HandleMethods inherited from interface org.apache.druid.metadata.segment.DatasourceSegmentMetadataReader
findExistingSegmentIds, findHighestUnusedSegmentId, findPendingSegmentIds, findPendingSegmentIdsWithExactInterval, findPendingSegments, findPendingSegmentsOverlapping, findPendingSegmentsWithExactInterval, findSegment, findSegments, findSegmentsWithSchema, findUnusedSegments, findUsedSegment, findUsedSegmentIdsOverlapping, findUsedSegments, findUsedSegmentsOverlappingAnyOf, findUsedSegmentsPlusOverlappingAnyOf
-
Method Details
-
getHandle
org.skife.jdbi.v2.Handle getHandle()- Returns:
- The JDBI handle used in this transaction
-
noCacheSql
SqlSegmentsMetadataQuery noCacheSql()- Returns:
- SQL tool to read or update the metadata store directly.
-
close
void close()Completes the transaction by either committing it or rolling it back.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-