public 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 and Description |
|---|---|
FsImageProto.SnapshotSection.Builder |
addAllSnapshottableDir(Iterable<? extends Long> values)
repeated uint64 snapshottableDir = 2 [packed = true]; |
FsImageProto.SnapshotSection.Builder |
addRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
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]; |
List<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(org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) |
FsImageProto.SnapshotSection.Builder |
mergeFrom(FsImageProto.SnapshotSection other) |
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,
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,
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, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic 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, 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, 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, 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 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>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;public FsImageProto.SnapshotSection.Builder clearSnapshotCounter()
optional uint32 snapshotCounter = 1;public List<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.SnapshotSectionOrBuilderpublic FsImageProto.SnapshotSection.Builder setSnapshottableDir(int index, long value)
repeated uint64 snapshottableDir = 2 [packed = true];public FsImageProto.SnapshotSection.Builder addSnapshottableDir(long value)
repeated uint64 snapshottableDir = 2 [packed = true];public FsImageProto.SnapshotSection.Builder addAllSnapshottableDir(Iterable<? extends Long> values)
repeated uint64 snapshottableDir = 2 [packed = true];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;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–2023 Apache Software Foundation. All rights reserved.