public static final class FsImageProto.SnapshotSection.Builder extends com.google.protobuf.GeneratedMessage.Builder<FsImageProto.SnapshotSection.Builder> implements FsImageProto.SnapshotSectionOrBuilder
hadoop.hdfs.fsimage.SnapshotSection
This section records the information about snapshot NAME: SNAPSHOT
| Modifier and Type | Method and Description |
|---|---|
FsImageProto.SnapshotSection.Builder |
addAllSnapshottableDir(Iterable<? extends Long> values)
repeated uint64 snapshottableDir = 2 [packed = true]; |
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 |
clearNumSnapshots()
optional uint32 numSnapshots = 3; |
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()
optional uint32 numSnapshots = 3; |
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()
optional uint32 numSnapshots = 3; |
boolean |
hasSnapshotCounter()
optional uint32 snapshotCounter = 1; |
protected com.google.protobuf.GeneratedMessage.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 |
setNumSnapshots(int value)
optional uint32 numSnapshots = 3; |
FsImageProto.SnapshotSection.Builder |
setSnapshotCounter(int value)
optional uint32 snapshotCounter = 1; |
FsImageProto.SnapshotSection.Builder |
setSnapshottableDir(int index,
long value)
repeated uint64 snapshottableDir = 2 [packed = true]; |
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldsfindInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionaddAll, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FsImageProto.SnapshotSection.Builder>public FsImageProto.SnapshotSection.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<FsImageProto.SnapshotSection.Builder>public FsImageProto.SnapshotSection.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessage.Builder<FsImageProto.SnapshotSection.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FsImageProto.SnapshotSection.Builder>public FsImageProto.SnapshotSection getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic FsImageProto.SnapshotSection build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic FsImageProto.SnapshotSection buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic FsImageProto.SnapshotSection.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FsImageProto.SnapshotSection.Builder>public FsImageProto.SnapshotSection.Builder mergeFrom(FsImageProto.SnapshotSection other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<FsImageProto.SnapshotSection.Builder>public FsImageProto.SnapshotSection.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.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()
optional uint32 numSnapshots = 3;
total number of snapshots
hasNumSnapshots in interface FsImageProto.SnapshotSectionOrBuilderpublic int getNumSnapshots()
optional uint32 numSnapshots = 3;
total number of snapshots
getNumSnapshots in interface FsImageProto.SnapshotSectionOrBuilderpublic FsImageProto.SnapshotSection.Builder setNumSnapshots(int value)
optional uint32 numSnapshots = 3;
total number of snapshots
public FsImageProto.SnapshotSection.Builder clearNumSnapshots()
optional uint32 numSnapshots = 3;
total number of snapshots
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.