Class DatanodeStoreSchemaTwoImpl

All Implemented Interfaces:
AutoCloseable, DatanodeStore, DBStoreManager, DeleteTransactionStore<Long>, org.apache.ratis.util.UncheckedAutoCloseable

public class DatanodeStoreSchemaTwoImpl extends DatanodeStoreWithIncrementalChunkList implements DeleteTransactionStore<Long>
Constructs a datanode store in accordance with schema version 2, which uses three column families/tables: 1. A block data table. 2. A metadata table. 3. A Delete Transaction Table.
  • Constructor Details

    • DatanodeStoreSchemaTwoImpl

      public DatanodeStoreSchemaTwoImpl(org.apache.hadoop.hdds.conf.ConfigurationSource config, String dbPath, boolean openReadOnly) throws IOException
      Constructs the datanode store and starts the DB Services.
      Parameters:
      config - - Ozone Configuration.
      Throws:
      IOException - - on Failure.
  • Method Details

    • getDeleteTransactionTable

      public org.apache.hadoop.hdds.utils.db.Table<Long,org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.DeletedBlocksTransaction> getDeleteTransactionTable()
      Specified by:
      getDeleteTransactionTable in interface DeleteTransactionStore<Long>