Class WitnessedContainerMetadataStoreImpl
java.lang.Object
org.apache.hadoop.ozone.container.metadata.AbstractRDBStore<WitnessedContainerDBDefinition>
org.apache.hadoop.ozone.container.metadata.WitnessedContainerMetadataStoreImpl
- All Implemented Interfaces:
AutoCloseable,DBStoreManager,WitnessedContainerMetadataStore,org.apache.ratis.util.UncheckedAutoCloseable
public final class WitnessedContainerMetadataStoreImpl
extends AbstractRDBStore<WitnessedContainerDBDefinition>
implements WitnessedContainerMetadataStore
Class for interacting with database in the master volume of a datanode.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classthis will hold old version tables required during upgrade, and these are initialized based on version only. -
Method Summary
Modifier and TypeMethodDescriptionget(org.apache.hadoop.hdds.conf.ConfigurationSource conf) org.apache.hadoop.hdds.utils.db.Table<org.apache.hadoop.hdds.scm.container.ContainerID, ContainerCreateInfo> A Table that keeps the containerIds in a datanode.protected org.apache.hadoop.hdds.utils.db.DBStoreinitDBStore(org.apache.hadoop.hdds.utils.db.DBStoreBuilder dbStoreBuilder, org.apache.hadoop.hdds.utils.db.managed.ManagedDBOptions options, org.apache.hadoop.hdds.conf.ConfigurationSource config) Methods 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.DBStoreManager
compactDB, compactionIfNeeded, flushDB, flushLog, getBatchHandler, getStore, isClosed, stopMethods inherited from interface org.apache.ratis.util.UncheckedAutoCloseable
close
-
Method Details
-
get
public static WitnessedContainerMetadataStore get(org.apache.hadoop.hdds.conf.ConfigurationSource conf) throws IOException - Throws:
IOException
-
initDBStore
protected org.apache.hadoop.hdds.utils.db.DBStore initDBStore(org.apache.hadoop.hdds.utils.db.DBStoreBuilder dbStoreBuilder, org.apache.hadoop.hdds.utils.db.managed.ManagedDBOptions options, org.apache.hadoop.hdds.conf.ConfigurationSource config) throws org.apache.hadoop.hdds.utils.db.RocksDatabaseException, org.apache.hadoop.hdds.utils.db.CodecException - Specified by:
initDBStorein classAbstractRDBStore<WitnessedContainerDBDefinition>- Throws:
org.apache.hadoop.hdds.utils.db.RocksDatabaseExceptionorg.apache.hadoop.hdds.utils.db.CodecException
-
getContainerCreateInfoTable
public org.apache.hadoop.hdds.utils.db.Table<org.apache.hadoop.hdds.scm.container.ContainerID,ContainerCreateInfo> getContainerCreateInfoTable()Description copied from interface:WitnessedContainerMetadataStoreA Table that keeps the containerIds in a datanode.- Specified by:
getContainerCreateInfoTablein interfaceWitnessedContainerMetadataStore- Returns:
- Table
-
getPreviousVersionTables
-