Uses of Class
org.apache.hadoop.ozone.container.keyvalue.KeyValueContainerData
Packages that use KeyValueContainerData
Package
Description
This package contains classes handling container level checksums.
Classes dedicated to handle container commands.
This package contains classes for KeyValue container type.
This package contains utility classes for KeyValue container type.
This package contains classes that define the structure of the datanode's database,
and allow reading and writing to it.
Classes to replicate container data between datanodes.
-
Uses of KeyValueContainerData in org.apache.hadoop.ozone.container.checksum
Methods in org.apache.hadoop.ozone.container.checksum with parameters of type KeyValueContainerDataModifier and TypeMethodDescriptionorg.apache.ratis.thirdparty.com.google.protobuf.ByteStringContainerChecksumTreeManager.getContainerChecksumInfo(KeyValueContainerData data) Reads the container checksum info file from the disk as bytes. -
Uses of KeyValueContainerData in org.apache.hadoop.ozone.container.common.statemachine.commandhandler
Methods in org.apache.hadoop.ozone.container.common.statemachine.commandhandler with parameters of type KeyValueContainerDataModifier and TypeMethodDescriptionvoidDeleteBlocksCommandHandler.SchemaHandler.handle(KeyValueContainerData containerData, org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.DeletedBlocksTransaction tx) static booleanDeleteBlocksCommandHandler.isDuplicateTransaction(long containerId, KeyValueContainerData containerData, org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.DeletedBlocksTransaction delTX, BlockDeletingServiceMetrics metrics) -
Uses of KeyValueContainerData in org.apache.hadoop.ozone.container.keyvalue
Methods in org.apache.hadoop.ozone.container.keyvalue that return KeyValueContainerDataMethods in org.apache.hadoop.ozone.container.keyvalue with parameters of type KeyValueContainerDataModifier and TypeMethodDescriptionstatic PathTarContainerPacker.getDbPath(Path baseDir, KeyValueContainerData containerData) static PathTarContainerPacker.getDbPath(KeyValueContainerData containerData) voidKeyValueContainer.importContainerData(KeyValueContainerData originalContainerData) Method parameters in org.apache.hadoop.ozone.container.keyvalue with type arguments of type KeyValueContainerDataModifier and TypeMethodDescriptionvoidKeyValueContainer.exportContainerData(OutputStream destination, ContainerPacker<KeyValueContainerData> packer) voidKeyValueContainer.importContainerData(InputStream input, ContainerPacker<KeyValueContainerData> packer) voidTarContainerPacker.pack(Container<KeyValueContainerData> container, OutputStream output) Given a containerData include all the required container data/metadata in a tar file.byte[]TarContainerPacker.unpackContainerData(Container<KeyValueContainerData> container, InputStream input, Path tmpDir, Path destContainerDir) Given an input stream (tar file) extract the data to the specified directories.Constructors in org.apache.hadoop.ozone.container.keyvalue with parameters of type KeyValueContainerDataModifierConstructorDescriptionKeyValueContainer(KeyValueContainerData containerData, org.apache.hadoop.hdds.conf.ConfigurationSource ozoneConfig) -
Uses of KeyValueContainerData in org.apache.hadoop.ozone.container.keyvalue.helpers
Methods in org.apache.hadoop.ozone.container.keyvalue.helpers with parameters of type KeyValueContainerDataModifier and TypeMethodDescriptionstatic voidBlockUtils.dumpKVContainerDataToFiles(KeyValueContainerData containerData, org.apache.hadoop.hdds.conf.ConfigurationSource conf) Dump container KV metadata to external files.static FileKeyValueContainerLocationUtil.getContainerDBFile(KeyValueContainerData containerData) Return containerDB File.static DBHandleBlockUtils.getDB(KeyValueContainerData containerData, org.apache.hadoop.hdds.conf.ConfigurationSource conf) Get a DB handler for a given container.static PathKeyValueContainerUtil.getTmpDirectoryPath(KeyValueContainerData keyValueContainerData, HddsVolume hddsVolume) static DatanodeStoreBlockUtils.getUncachedDatanodeStore(KeyValueContainerData containerData, org.apache.hadoop.hdds.conf.ConfigurationSource conf, boolean readOnly) Obtain a DB handler for a given container.static voidBlockUtils.loadKVContainerDataFromFiles(KeyValueContainerData containerData, org.apache.hadoop.hdds.conf.ConfigurationSource conf) Load container KV metadata from external files.static voidKeyValueContainerUtil.moveToDeletedContainerDir(KeyValueContainerData keyValueContainerData, HddsVolume hddsVolume) Moves container directory to a new location under "volume/hdds/cluster-id/tmp/deleted-containers" and updates metadata and chunks path.static booleanKeyValueContainerUtil.noBlocksInContainer(DatanodeStore store, KeyValueContainerData containerData, boolean bCheckChunksFilePath) Returns if there are no blocks in the container.static voidKeyValueContainerUtil.parseKVContainerData(KeyValueContainerData kvContainerData, org.apache.hadoop.hdds.conf.ConfigurationSource config) Parse KeyValueContainerData and verify checksum.static voidKeyValueContainerUtil.parseKVContainerData(KeyValueContainerData kvContainerData, org.apache.hadoop.hdds.conf.ConfigurationSource config, boolean skipVerifyChecksum) static voidKeyValueContainerUtil.removeContainer(KeyValueContainerData containerData, org.apache.hadoop.hdds.conf.ConfigurationSource conf) remove Container 1. remove db, 2. move to tmp directory.static voidKeyValueContainerUtil.removeContainerDB(KeyValueContainerData containerData, org.apache.hadoop.hdds.conf.ConfigurationSource conf) remove Container db, the Level DB file.static voidBlockUtils.removeContainerFromDB(KeyValueContainerData containerData, org.apache.hadoop.hdds.conf.ConfigurationSource conf) Remove container KV metadata from per-disk db store.static voidBlockUtils.removeDB(KeyValueContainerData container, org.apache.hadoop.hdds.conf.ConfigurationSource conf) Remove a DB handler from cache. -
Uses of KeyValueContainerData in org.apache.hadoop.ozone.container.metadata
Methods in org.apache.hadoop.ozone.container.metadata with parameters of type KeyValueContainerDataModifier and TypeMethodDescriptiondefault voidDatanodeStore.putBlockByID(org.apache.hadoop.hdds.utils.db.BatchOperation batch, boolean incremental, long localID, org.apache.hadoop.ozone.container.common.helpers.BlockData data, KeyValueContainerData containerData, boolean endOfBlock) voidDatanodeStoreWithIncrementalChunkList.putBlockByID(org.apache.hadoop.hdds.utils.db.BatchOperation batch, boolean incremental, long localID, org.apache.hadoop.ozone.container.common.helpers.BlockData data, KeyValueContainerData containerData, boolean endOfBlock) -
Uses of KeyValueContainerData in org.apache.hadoop.ozone.container.replication
Methods in org.apache.hadoop.ozone.container.replication that return KeyValueContainerDataModifier and TypeMethodDescriptionprotected KeyValueContainerDataContainerImporter.getKeyValueContainerData(byte[] containerDescriptorYaml)