public static final class FsImageProto.SnapshotSection.Builder extends <any> 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(com.google.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(com.google.protobuf.Descriptors.FieldDescriptor field) |
FsImageProto.SnapshotSection.Builder |
clearNumSnapshots()
total number of snapshots
|
FsImageProto.SnapshotSection.Builder |
clearOneof(com.google.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 com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
FsImageProto.SnapshotSection.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
FsImageProto.SnapshotSection.Builder |
mergeFrom(FsImageProto.SnapshotSection other) |
FsImageProto.SnapshotSection.Builder |
mergeFrom(com.google.protobuf.Message other) |
FsImageProto.SnapshotSection.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
FsImageProto.SnapshotSection.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
FsImageProto.SnapshotSection.Builder |
setNumSnapshots(int value)
total number of snapshots
|
FsImageProto.SnapshotSection.Builder |
setRepeatedField(com.google.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(com.google.protobuf.UnknownFieldSet unknownFields) |
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public FsImageProto.SnapshotSection.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.MessageOrBuilderpublic FsImageProto.SnapshotSection getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic FsImageProto.SnapshotSection build()
public FsImageProto.SnapshotSection buildPartial()
public FsImageProto.SnapshotSection.Builder clone()
public FsImageProto.SnapshotSection.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public FsImageProto.SnapshotSection.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public FsImageProto.SnapshotSection.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public FsImageProto.SnapshotSection.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
public FsImageProto.SnapshotSection.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public FsImageProto.SnapshotSection.Builder mergeFrom(com.google.protobuf.Message other)
public FsImageProto.SnapshotSection.Builder mergeFrom(FsImageProto.SnapshotSection other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderpublic FsImageProto.SnapshotSection.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
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(com.google.protobuf.UnknownFieldSet unknownFields)
public final FsImageProto.SnapshotSection.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.