Class DatanodeStoreSchemaOneImpl
java.lang.Object
org.apache.hadoop.ozone.container.metadata.AbstractRDBStore<AbstractDatanodeDBDefinition>
org.apache.hadoop.ozone.container.metadata.AbstractDatanodeStore
org.apache.hadoop.ozone.container.metadata.DatanodeStoreSchemaOneImpl
- All Implemented Interfaces:
AutoCloseable,DatanodeStore,DBStoreManager,org.apache.ratis.util.UncheckedAutoCloseable
Constructs a datanode store in accordance with schema version 1, which
places all data in the default column family.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.ozone.container.metadata.AbstractDatanodeStore
AbstractDatanodeStore.KeyValueBlockIterator, AbstractDatanodeStore.KeyValueBlockLocalIdIterator -
Field Summary
Fields inherited from class org.apache.hadoop.ozone.container.metadata.AbstractDatanodeStore
LOGFields inherited from interface org.apache.hadoop.ozone.container.metadata.DatanodeStore
NO_SUCH_BLOCK_ERR_MSG -
Constructor Summary
ConstructorsConstructorDescriptionDatanodeStoreSchemaOneImpl(org.apache.hadoop.hdds.conf.ConfigurationSource config, String dbPath, boolean openReadOnly) Constructs the metadata store and starts the DB Services. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hdds.utils.db.Table<String, org.apache.hadoop.ozone.container.common.helpers.ChunkInfoList> A Table that keeps IDs of blocks deleted from the block data table.Methods inherited from class org.apache.hadoop.ozone.container.metadata.AbstractDatanodeStore
getBlockDataTable, getBlockDataTableWithIterator, getBlockIterator, getBlockIterator, getFinalizeBlockIterator, getFinalizeBlocksTable, getFinalizeBlocksTableWithIterator, getLastChunkInfoTable, getMetadataTable, initDBStoreMethods inherited from class org.apache.hadoop.ozone.container.metadata.AbstractRDBStore
close, compactDB, flushDB, flushLog, getBatchHandler, getDbDef, getDbProfile, getStore, isClosed, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.ozone.container.metadata.DatanodeStore
getBlockByID, getCompleteBlockData, putBlockByIDMethods inherited from interface org.apache.hadoop.ozone.container.metadata.DBStoreManager
compactDB, compactionIfNeeded, flushDB, flushLog, getBatchHandler, getStore, isClosed, stopMethods inherited from interface org.apache.ratis.util.UncheckedAutoCloseable
close
-
Constructor Details
-
DatanodeStoreSchemaOneImpl
public DatanodeStoreSchemaOneImpl(org.apache.hadoop.hdds.conf.ConfigurationSource config, String dbPath, boolean openReadOnly) throws IOException Constructs the metadata store and starts the DB Services.- Parameters:
config- - Ozone Configuration.- Throws:
IOException- - on Failure.
-
-
Method Details
-
getDeletedBlocksTable
public org.apache.hadoop.hdds.utils.db.Table<String,org.apache.hadoop.ozone.container.common.helpers.ChunkInfoList> getDeletedBlocksTable()Description copied from interface:DatanodeStoreA Table that keeps IDs of blocks deleted from the block data table.- Specified by:
getDeletedBlocksTablein interfaceDatanodeStore- Overrides:
getDeletedBlocksTablein classAbstractDatanodeStore- Returns:
- Table
-