java.lang.Cloneable, FsImageProto.SnapshotSectionOrBuilder, org.apache.hadoop.thirdparty.protobuf.Message.Builder, org.apache.hadoop.thirdparty.protobuf.MessageLite.Builder, org.apache.hadoop.thirdparty.protobuf.MessageLiteOrBuilder, org.apache.hadoop.thirdparty.protobuf.MessageOrBuilderpublic static final class FsImageProto.SnapshotSection.Builder extends org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder> implements FsImageProto.SnapshotSectionOrBuilder
This section records the information about snapshot NAME: SNAPSHOTProtobuf type
hadoop.hdfs.fsimage.SnapshotSection| Modifier and Type | Method | Description |
|---|---|---|
FsImageProto.SnapshotSection.Builder |
addAllSnapshottableDir(java.lang.Iterable<? extends java.lang.Long> values) |
repeated uint64 snapshottableDir = 2 [packed = true]; |
FsImageProto.SnapshotSection.Builder |
addRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
|
FsImageProto.SnapshotSection.Builder |
addSnapshottableDir(long value) |
repeated uint64 snapshottableDir = 2 [packed = true]; |
FsImageProto.SnapshotSection |
build() |
|
FsImageProto.SnapshotSection |
buildPartial() |
|
FsImageProto.SnapshotSection.Builder |
clear() |
|
FsImageProto.SnapshotSection.Builder |
clearField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) |
|
FsImageProto.SnapshotSection.Builder |
clearNumSnapshots() |
total number of snapshots
|
FsImageProto.SnapshotSection.Builder |
clearOneof(org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) |
|
FsImageProto.SnapshotSection.Builder |
clearSnapshotCounter() |
optional uint32 snapshotCounter = 1; |
FsImageProto.SnapshotSection.Builder |
clearSnapshottableDir() |
repeated uint64 snapshottableDir = 2 [packed = true]; |
FsImageProto.SnapshotSection.Builder |
clone() |
|
FsImageProto.SnapshotSection |
getDefaultInstanceForType() |
|
static org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor |
getDescriptor() |
|
org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
|
int |
getNumSnapshots() |
total number of snapshots
|
int |
getSnapshotCounter() |
optional uint32 snapshotCounter = 1; |
long |
getSnapshottableDir(int index) |
repeated uint64 snapshottableDir = 2 [packed = true]; |
int |
getSnapshottableDirCount() |
repeated uint64 snapshottableDir = 2 [packed = true]; |
java.util.List<java.lang.Long> |
getSnapshottableDirList() |
repeated uint64 snapshottableDir = 2 [packed = true]; |
boolean |
hasNumSnapshots() |
total number of snapshots
|
boolean |
hasSnapshotCounter() |
optional uint32 snapshotCounter = 1; |
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
|
boolean |
isInitialized() |
|
FsImageProto.SnapshotSection.Builder |
mergeFrom(FsImageProto.SnapshotSection other) |
|
FsImageProto.SnapshotSection.Builder |
mergeFrom(org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) |
|
FsImageProto.SnapshotSection.Builder |
mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) |
|
FsImageProto.SnapshotSection.Builder |
mergeUnknownFields(org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) |
|
FsImageProto.SnapshotSection.Builder |
setField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
|
FsImageProto.SnapshotSection.Builder |
setNumSnapshots(int value) |
total number of snapshots
|
FsImageProto.SnapshotSection.Builder |
setRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
|
FsImageProto.SnapshotSection.Builder |
setSnapshotCounter(int value) |
optional uint32 snapshotCounter = 1; |
FsImageProto.SnapshotSection.Builder |
setSnapshottableDir(int index,
long value) |
repeated uint64 snapshottableDir = 2 [packed = true]; |
FsImageProto.SnapshotSection.Builder |
setUnknownFields(org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitmergeDelimitedFrom, mergeDelimitedFrompublic static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor getDescriptor()
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>public FsImageProto.SnapshotSection.Builder clear()
clear in interface org.apache.hadoop.thirdparty.protobuf.Message.Builderclear in interface org.apache.hadoop.thirdparty.protobuf.MessageLite.Builderclear in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface org.apache.hadoop.thirdparty.protobuf.Message.BuildergetDescriptorForType in interface org.apache.hadoop.thirdparty.protobuf.MessageOrBuildergetDescriptorForType in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>public FsImageProto.SnapshotSection getDefaultInstanceForType()
getDefaultInstanceForType in interface org.apache.hadoop.thirdparty.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface org.apache.hadoop.thirdparty.protobuf.MessageOrBuilderpublic FsImageProto.SnapshotSection build()
build in interface org.apache.hadoop.thirdparty.protobuf.Message.Builderbuild in interface org.apache.hadoop.thirdparty.protobuf.MessageLite.Builderpublic FsImageProto.SnapshotSection buildPartial()
buildPartial in interface org.apache.hadoop.thirdparty.protobuf.Message.BuilderbuildPartial in interface org.apache.hadoop.thirdparty.protobuf.MessageLite.Builderpublic FsImageProto.SnapshotSection.Builder clone()
clone in interface org.apache.hadoop.thirdparty.protobuf.Message.Builderclone in interface org.apache.hadoop.thirdparty.protobuf.MessageLite.Builderclone in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>public FsImageProto.SnapshotSection.Builder setField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface org.apache.hadoop.thirdparty.protobuf.Message.BuildersetField in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>public FsImageProto.SnapshotSection.Builder clearField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field)
clearField in interface org.apache.hadoop.thirdparty.protobuf.Message.BuilderclearField in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>public FsImageProto.SnapshotSection.Builder clearOneof(org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface org.apache.hadoop.thirdparty.protobuf.Message.BuilderclearOneof in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>public FsImageProto.SnapshotSection.Builder setRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface org.apache.hadoop.thirdparty.protobuf.Message.BuildersetRepeatedField in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>public FsImageProto.SnapshotSection.Builder addRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface org.apache.hadoop.thirdparty.protobuf.Message.BuilderaddRepeatedField in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>public FsImageProto.SnapshotSection.Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other)
mergeFrom in interface org.apache.hadoop.thirdparty.protobuf.Message.BuildermergeFrom in class org.apache.hadoop.thirdparty.protobuf.AbstractMessage.Builder<FsImageProto.SnapshotSection.Builder>public FsImageProto.SnapshotSection.Builder mergeFrom(FsImageProto.SnapshotSection other)
public final boolean isInitialized()
isInitialized in interface org.apache.hadoop.thirdparty.protobuf.MessageLiteOrBuilderisInitialized in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>public FsImageProto.SnapshotSection.Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.CodedInputStream input, org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface org.apache.hadoop.thirdparty.protobuf.Message.BuildermergeFrom in interface org.apache.hadoop.thirdparty.protobuf.MessageLite.BuildermergeFrom in class org.apache.hadoop.thirdparty.protobuf.AbstractMessage.Builder<FsImageProto.SnapshotSection.Builder>java.io.IOExceptionpublic boolean hasSnapshotCounter()
optional uint32 snapshotCounter = 1;hasSnapshotCounter in interface FsImageProto.SnapshotSectionOrBuilderpublic int getSnapshotCounter()
optional uint32 snapshotCounter = 1;getSnapshotCounter in interface FsImageProto.SnapshotSectionOrBuilderpublic FsImageProto.SnapshotSection.Builder setSnapshotCounter(int value)
optional uint32 snapshotCounter = 1;value - The snapshotCounter to set.public FsImageProto.SnapshotSection.Builder clearSnapshotCounter()
optional uint32 snapshotCounter = 1;public java.util.List<java.lang.Long> getSnapshottableDirList()
repeated uint64 snapshottableDir = 2 [packed = true];getSnapshottableDirList in interface FsImageProto.SnapshotSectionOrBuilderpublic int getSnapshottableDirCount()
repeated uint64 snapshottableDir = 2 [packed = true];getSnapshottableDirCount in interface FsImageProto.SnapshotSectionOrBuilderpublic long getSnapshottableDir(int index)
repeated uint64 snapshottableDir = 2 [packed = true];getSnapshottableDir in interface FsImageProto.SnapshotSectionOrBuilderindex - The index of the element to return.public FsImageProto.SnapshotSection.Builder setSnapshottableDir(int index, long value)
repeated uint64 snapshottableDir = 2 [packed = true];index - The index to set the value at.value - The snapshottableDir to set.public FsImageProto.SnapshotSection.Builder addSnapshottableDir(long value)
repeated uint64 snapshottableDir = 2 [packed = true];value - The snapshottableDir to add.public FsImageProto.SnapshotSection.Builder addAllSnapshottableDir(java.lang.Iterable<? extends java.lang.Long> values)
repeated uint64 snapshottableDir = 2 [packed = true];values - The snapshottableDir to add.public FsImageProto.SnapshotSection.Builder clearSnapshottableDir()
repeated uint64 snapshottableDir = 2 [packed = true];public boolean hasNumSnapshots()
total number of snapshots
optional uint32 numSnapshots = 3;hasNumSnapshots in interface FsImageProto.SnapshotSectionOrBuilderpublic int getNumSnapshots()
total number of snapshots
optional uint32 numSnapshots = 3;getNumSnapshots in interface FsImageProto.SnapshotSectionOrBuilderpublic FsImageProto.SnapshotSection.Builder setNumSnapshots(int value)
total number of snapshots
optional uint32 numSnapshots = 3;value - The numSnapshots to set.public FsImageProto.SnapshotSection.Builder clearNumSnapshots()
total number of snapshots
optional uint32 numSnapshots = 3;public final FsImageProto.SnapshotSection.Builder setUnknownFields(org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface org.apache.hadoop.thirdparty.protobuf.Message.BuildersetUnknownFields in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>public final FsImageProto.SnapshotSection.Builder mergeUnknownFields(org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface org.apache.hadoop.thirdparty.protobuf.Message.BuildermergeUnknownFields in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>Copyright © 2008–2025 Apache Software Foundation. All rights reserved.