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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface org.apache.hadoop.thirdparty.protobuf.MessageLite.Builder
clear
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.Builder
getDescriptorForType
in interface org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder
getDescriptorForType
in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>
public FsImageProto.SnapshotSection getDefaultInstanceForType()
getDefaultInstanceForType
in interface org.apache.hadoop.thirdparty.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder
public FsImageProto.SnapshotSection build()
build
in interface org.apache.hadoop.thirdparty.protobuf.Message.Builder
build
in interface org.apache.hadoop.thirdparty.protobuf.MessageLite.Builder
public FsImageProto.SnapshotSection buildPartial()
buildPartial
in interface org.apache.hadoop.thirdparty.protobuf.Message.Builder
buildPartial
in interface org.apache.hadoop.thirdparty.protobuf.MessageLite.Builder
public FsImageProto.SnapshotSection.Builder clone()
clone
in interface org.apache.hadoop.thirdparty.protobuf.Message.Builder
clone
in interface org.apache.hadoop.thirdparty.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface org.apache.hadoop.thirdparty.protobuf.MessageLite.Builder
mergeFrom
in class org.apache.hadoop.thirdparty.protobuf.AbstractMessage.Builder<FsImageProto.SnapshotSection.Builder>
IOException
public boolean hasSnapshotCounter()
optional uint32 snapshotCounter = 1;
hasSnapshotCounter
in interface FsImageProto.SnapshotSectionOrBuilder
public int getSnapshotCounter()
optional uint32 snapshotCounter = 1;
getSnapshotCounter
in interface FsImageProto.SnapshotSectionOrBuilder
public 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.SnapshotSectionOrBuilder
public int getSnapshottableDirCount()
repeated uint64 snapshottableDir = 2 [packed = true];
getSnapshottableDirCount
in interface FsImageProto.SnapshotSectionOrBuilder
public long getSnapshottableDir(int index)
repeated uint64 snapshottableDir = 2 [packed = true];
getSnapshottableDir
in interface FsImageProto.SnapshotSectionOrBuilder
public 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.SnapshotSectionOrBuilder
public int getNumSnapshots()
total number of snapshots
optional uint32 numSnapshots = 3;
getNumSnapshots
in interface FsImageProto.SnapshotSectionOrBuilder
public 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.SnapshotSection.Builder>
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.