Class FsImageProto.SnapshotSection.Builder
java.lang.Object
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder
org.apache.hadoop.thirdparty.protobuf.AbstractMessage.Builder<BuilderT>
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>
org.apache.hadoop.hdfs.server.namenode.FsImageProto.SnapshotSection.Builder
- All Implemented Interfaces:
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.MessageOrBuilder
- Enclosing class:
- FsImageProto.SnapshotSection
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllSnapshottableDir(Iterable<? extends Long> values) repeated uint64 snapshottableDir = 2 [packed = true];addRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, Object value) addSnapshottableDir(long value) repeated uint64 snapshottableDir = 2 [packed = true];build()clear()clearField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) total number of snapshotsclearOneof(org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) optional uint32 snapshotCounter = 1;repeated uint64 snapshottableDir = 2 [packed = true];clone()static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptororg.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptorinttotal number of snapshotsintoptional uint32 snapshotCounter = 1;longgetSnapshottableDir(int index) repeated uint64 snapshottableDir = 2 [packed = true];intrepeated uint64 snapshottableDir = 2 [packed = true];repeated uint64 snapshottableDir = 2 [packed = true];booleantotal number of snapshotsbooleanoptional uint32 snapshotCounter = 1;protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(org.apache.hadoop.thirdparty.protobuf.CodedInputStream input, org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) mergeUnknownFields(org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) setNumSnapshots(int value) total number of snapshotssetRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSnapshotCounter(int value) optional uint32 snapshotCounter = 1;setSnapshottableDir(int index, long value) repeated uint64 snapshottableDir = 2 [packed = true];setUnknownFields(org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) Methods inherited from class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder
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, setUnknownFieldsProto3Methods inherited from class org.apache.hadoop.thirdparty.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hadoop.thirdparty.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface org.apache.hadoop.thirdparty.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>
-
clear
- Specified by:
clearin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Specified by:
clearin interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLite.Builder- Overrides:
clearin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>
-
getDescriptorForType
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfaceorg.apache.hadoop.thirdparty.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.apache.hadoop.thirdparty.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Specified by:
buildin interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Specified by:
buildPartialin interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Specified by:
clonein interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLite.Builder- Overrides:
clonein classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>
-
setField
public FsImageProto.SnapshotSection.Builder setField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
setFieldin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>
-
clearField
public FsImageProto.SnapshotSection.Builder clearField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
clearFieldin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>
-
clearOneof
public FsImageProto.SnapshotSection.Builder clearOneof(org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
clearOneofin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>
-
setRepeatedField
public FsImageProto.SnapshotSection.Builder setRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>
-
addRepeatedField
public FsImageProto.SnapshotSection.Builder addRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>
-
mergeFrom
public FsImageProto.SnapshotSection.Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) - Specified by:
mergeFromin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
mergeFromin classorg.apache.hadoop.thirdparty.protobuf.AbstractMessage.Builder<FsImageProto.SnapshotSection.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>
-
mergeFrom
public FsImageProto.SnapshotSection.Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.CodedInputStream input, org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Specified by:
mergeFromin interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLite.Builder- Overrides:
mergeFromin classorg.apache.hadoop.thirdparty.protobuf.AbstractMessage.Builder<FsImageProto.SnapshotSection.Builder>- Throws:
IOException
-
hasSnapshotCounter
public boolean hasSnapshotCounter()optional uint32 snapshotCounter = 1;- Specified by:
hasSnapshotCounterin interfaceFsImageProto.SnapshotSectionOrBuilder- Returns:
- Whether the snapshotCounter field is set.
-
getSnapshotCounter
public int getSnapshotCounter()optional uint32 snapshotCounter = 1;- Specified by:
getSnapshotCounterin interfaceFsImageProto.SnapshotSectionOrBuilder- Returns:
- The snapshotCounter.
-
setSnapshotCounter
optional uint32 snapshotCounter = 1;- Parameters:
value- The snapshotCounter to set.- Returns:
- This builder for chaining.
-
clearSnapshotCounter
optional uint32 snapshotCounter = 1;- Returns:
- This builder for chaining.
-
getSnapshottableDirList
repeated uint64 snapshottableDir = 2 [packed = true];- Specified by:
getSnapshottableDirListin interfaceFsImageProto.SnapshotSectionOrBuilder- Returns:
- A list containing the snapshottableDir.
-
getSnapshottableDirCount
public int getSnapshottableDirCount()repeated uint64 snapshottableDir = 2 [packed = true];- Specified by:
getSnapshottableDirCountin interfaceFsImageProto.SnapshotSectionOrBuilder- Returns:
- The count of snapshottableDir.
-
getSnapshottableDir
public long getSnapshottableDir(int index) repeated uint64 snapshottableDir = 2 [packed = true];- Specified by:
getSnapshottableDirin interfaceFsImageProto.SnapshotSectionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The snapshottableDir at the given index.
-
setSnapshottableDir
repeated uint64 snapshottableDir = 2 [packed = true];- Parameters:
index- The index to set the value at.value- The snapshottableDir to set.- Returns:
- This builder for chaining.
-
addSnapshottableDir
repeated uint64 snapshottableDir = 2 [packed = true];- Parameters:
value- The snapshottableDir to add.- Returns:
- This builder for chaining.
-
addAllSnapshottableDir
repeated uint64 snapshottableDir = 2 [packed = true];- Parameters:
values- The snapshottableDir to add.- Returns:
- This builder for chaining.
-
clearSnapshottableDir
repeated uint64 snapshottableDir = 2 [packed = true];- Returns:
- This builder for chaining.
-
hasNumSnapshots
public boolean hasNumSnapshots()total number of snapshots
optional uint32 numSnapshots = 3;- Specified by:
hasNumSnapshotsin interfaceFsImageProto.SnapshotSectionOrBuilder- Returns:
- Whether the numSnapshots field is set.
-
getNumSnapshots
public int getNumSnapshots()total number of snapshots
optional uint32 numSnapshots = 3;- Specified by:
getNumSnapshotsin interfaceFsImageProto.SnapshotSectionOrBuilder- Returns:
- The numSnapshots.
-
setNumSnapshots
total number of snapshots
optional uint32 numSnapshots = 3;- Parameters:
value- The numSnapshots to set.- Returns:
- This builder for chaining.
-
clearNumSnapshots
total number of snapshots
optional uint32 numSnapshots = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final FsImageProto.SnapshotSection.Builder setUnknownFields(org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>
-
mergeUnknownFields
public final FsImageProto.SnapshotSection.Builder mergeUnknownFields(org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>
-