Class FsImageProto.INodeDirectorySection.DirEntry.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.INodeDirectorySection.DirEntry.Builder>
org.apache.hadoop.hdfs.server.namenode.FsImageProto.INodeDirectorySection.DirEntry.Builder
- All Implemented Interfaces:
Cloneable,FsImageProto.INodeDirectorySection.DirEntryOrBuilder,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.INodeDirectorySection.DirEntry
public static final class FsImageProto.INodeDirectorySection.DirEntry.Builder
extends org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.INodeDirectorySection.DirEntry.Builder>
implements FsImageProto.INodeDirectorySection.DirEntryOrBuilder
A single DirEntry needs to fit in the default PB max message size of 64MB. Please be careful when adding more fields to a DirEntry!Protobuf type
hadoop.hdfs.fsimage.INodeDirectorySection.DirEntry-
Method Summary
Modifier and TypeMethodDescriptionaddAllChildren(Iterable<? extends Long> values) children that are not reference nodesaddAllRefChildren(Iterable<? extends Integer> values) children that are reference nodes, each element is a reference node idaddChildren(long value) children that are not reference nodesaddRefChildren(int value) children that are reference nodes, each element is a reference node idaddRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()children that are not reference nodesclearField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) clearOneof(org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) optional uint64 parent = 1;children that are reference nodes, each element is a reference node idclone()longgetChildren(int index) children that are not reference nodesintchildren that are not reference nodeschildren that are not reference nodesstatic final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptororg.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptorlongoptional uint64 parent = 1;intgetRefChildren(int index) children that are reference nodes, each element is a reference node idintchildren that are reference nodes, each element is a reference node idchildren that are reference nodes, each element is a reference node idbooleanoptional uint64 parent = 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) setChildren(int index, long value) children that are not reference nodessetParent(long value) optional uint64 parent = 1;setRefChildren(int index, int value) children that are reference nodes, each element is a reference node idsetRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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.INodeDirectorySection.DirEntry.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.INodeDirectorySection.DirEntry.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.INodeDirectorySection.DirEntry.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.INodeDirectorySection.DirEntry.Builder>
-
setField
public FsImageProto.INodeDirectorySection.DirEntry.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.INodeDirectorySection.DirEntry.Builder>
-
clearField
public FsImageProto.INodeDirectorySection.DirEntry.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.INodeDirectorySection.DirEntry.Builder>
-
clearOneof
public FsImageProto.INodeDirectorySection.DirEntry.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.INodeDirectorySection.DirEntry.Builder>
-
setRepeatedField
public FsImageProto.INodeDirectorySection.DirEntry.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.INodeDirectorySection.DirEntry.Builder>
-
addRepeatedField
public FsImageProto.INodeDirectorySection.DirEntry.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.INodeDirectorySection.DirEntry.Builder>
-
mergeFrom
public FsImageProto.INodeDirectorySection.DirEntry.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.INodeDirectorySection.DirEntry.Builder>
-
mergeFrom
public FsImageProto.INodeDirectorySection.DirEntry.Builder mergeFrom(FsImageProto.INodeDirectorySection.DirEntry other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<FsImageProto.INodeDirectorySection.DirEntry.Builder>
-
mergeFrom
public FsImageProto.INodeDirectorySection.DirEntry.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.INodeDirectorySection.DirEntry.Builder>- Throws:
IOException
-
hasParent
public boolean hasParent()optional uint64 parent = 1;- Specified by:
hasParentin interfaceFsImageProto.INodeDirectorySection.DirEntryOrBuilder- Returns:
- Whether the parent field is set.
-
getParent
public long getParent()optional uint64 parent = 1;- Specified by:
getParentin interfaceFsImageProto.INodeDirectorySection.DirEntryOrBuilder- Returns:
- The parent.
-
setParent
optional uint64 parent = 1;- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
optional uint64 parent = 1;- Returns:
- This builder for chaining.
-
getChildrenList
children that are not reference nodes
repeated uint64 children = 2 [packed = true];- Specified by:
getChildrenListin interfaceFsImageProto.INodeDirectorySection.DirEntryOrBuilder- Returns:
- A list containing the children.
-
getChildrenCount
public int getChildrenCount()children that are not reference nodes
repeated uint64 children = 2 [packed = true];- Specified by:
getChildrenCountin interfaceFsImageProto.INodeDirectorySection.DirEntryOrBuilder- Returns:
- The count of children.
-
getChildren
public long getChildren(int index) children that are not reference nodes
repeated uint64 children = 2 [packed = true];- Specified by:
getChildrenin interfaceFsImageProto.INodeDirectorySection.DirEntryOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The children at the given index.
-
setChildren
children that are not reference nodes
repeated uint64 children = 2 [packed = true];- Parameters:
index- The index to set the value at.value- The children to set.- Returns:
- This builder for chaining.
-
addChildren
children that are not reference nodes
repeated uint64 children = 2 [packed = true];- Parameters:
value- The children to add.- Returns:
- This builder for chaining.
-
addAllChildren
public FsImageProto.INodeDirectorySection.DirEntry.Builder addAllChildren(Iterable<? extends Long> values) children that are not reference nodes
repeated uint64 children = 2 [packed = true];- Parameters:
values- The children to add.- Returns:
- This builder for chaining.
-
clearChildren
children that are not reference nodes
repeated uint64 children = 2 [packed = true];- Returns:
- This builder for chaining.
-
getRefChildrenList
children that are reference nodes, each element is a reference node id
repeated uint32 refChildren = 3 [packed = true];- Specified by:
getRefChildrenListin interfaceFsImageProto.INodeDirectorySection.DirEntryOrBuilder- Returns:
- A list containing the refChildren.
-
getRefChildrenCount
public int getRefChildrenCount()children that are reference nodes, each element is a reference node id
repeated uint32 refChildren = 3 [packed = true];- Specified by:
getRefChildrenCountin interfaceFsImageProto.INodeDirectorySection.DirEntryOrBuilder- Returns:
- The count of refChildren.
-
getRefChildren
public int getRefChildren(int index) children that are reference nodes, each element is a reference node id
repeated uint32 refChildren = 3 [packed = true];- Specified by:
getRefChildrenin interfaceFsImageProto.INodeDirectorySection.DirEntryOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The refChildren at the given index.
-
setRefChildren
children that are reference nodes, each element is a reference node id
repeated uint32 refChildren = 3 [packed = true];- Parameters:
index- The index to set the value at.value- The refChildren to set.- Returns:
- This builder for chaining.
-
addRefChildren
children that are reference nodes, each element is a reference node id
repeated uint32 refChildren = 3 [packed = true];- Parameters:
value- The refChildren to add.- Returns:
- This builder for chaining.
-
addAllRefChildren
public FsImageProto.INodeDirectorySection.DirEntry.Builder addAllRefChildren(Iterable<? extends Integer> values) children that are reference nodes, each element is a reference node id
repeated uint32 refChildren = 3 [packed = true];- Parameters:
values- The refChildren to add.- Returns:
- This builder for chaining.
-
clearRefChildren
children that are reference nodes, each element is a reference node id
repeated uint32 refChildren = 3 [packed = true];- Returns:
- This builder for chaining.
-
setUnknownFields
public final FsImageProto.INodeDirectorySection.DirEntry.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.INodeDirectorySection.DirEntry.Builder>
-
mergeUnknownFields
public final FsImageProto.INodeDirectorySection.DirEntry.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.INodeDirectorySection.DirEntry.Builder>
-