Package org.apache.druid.metadata
Interface MetadataStorageConnector
public interface MetadataStorageConnector
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault booleancompareAndSwap(List<MetadataCASUpdate> updates) Atomic compare-and-swap variant of insertOrUpdate().voidvoidvoidvoidThis table storesCompactionStateobjects.voidvoidvoidSegmentSchema table is created only when CentralizedDatasourceSchema feature is enabled.voidvoidvoidvoidvoiddeleteAllRecords(String tableName) default voidexportTable(String tableName, String outputPath) insertOrUpdate(String tableName, String keyColumn, String valueColumn, String key, byte[] value) byte[]Returns the value of the valueColumn when there is only one row matched to the given key.
-
Field Details
-
CONFIG_TABLE_KEY_COLUMN
- See Also:
-
CONFIG_TABLE_VALUE_COLUMN
- See Also:
-
-
Method Details
-
insertOrUpdate
-
lookup
Returns the value of the valueColumn when there is only one row matched to the given key. This method returns null if there is no such row and throws an error if there are more than one rows. -
compareAndSwap
Atomic compare-and-swap variant of insertOrUpdate().- Parameters:
updates- Set of updates to be made. If compare checks succeed for all updates, perform all updates. If any compare check fails, reject all updates.- Returns:
- true if updates were made, false otherwise
- Throws:
Exception
-
exportTable
-
createDataSourceTable
void createDataSourceTable() -
createPendingSegmentsTable
void createPendingSegmentsTable() -
createSegmentTable
void createSegmentTable() -
createUpgradeSegmentsTable
void createUpgradeSegmentsTable() -
createRulesTable
void createRulesTable() -
createConfigTable
void createConfigTable() -
createTaskTables
void createTaskTables() -
createAuditTable
void createAuditTable() -
createSupervisorsTable
void createSupervisorsTable() -
deleteAllRecords
-
createSegmentSchemasTable
void createSegmentSchemasTable()SegmentSchema table is created only when CentralizedDatasourceSchema feature is enabled. -
createIndexingStatesTable
void createIndexingStatesTable()This table storesCompactionStateobjects.Multiple segments can refer to the same compaction state via its unique fingerprint
-