public static final class DAGProtos.PlanTaskLocationHint.Builder extends com.google.protobuf.GeneratedMessage.Builder<DAGProtos.PlanTaskLocationHint.Builder> implements DAGProtos.PlanTaskLocationHintOrBuilder
PlanTaskLocationHint
Each taskLocationHint represents a single split in in the input. It is the list of [{rack,machines}] that host a replica of each particular split. For now it is represented as pair-of-arrays rather than array-of-pairs.
Modifier and Type | Method and Description |
---|---|
DAGProtos.PlanTaskLocationHint.Builder |
addAllHost(Iterable<String> values)
repeated string host = 2; |
DAGProtos.PlanTaskLocationHint.Builder |
addAllRack(Iterable<String> values)
repeated string rack = 1; |
DAGProtos.PlanTaskLocationHint.Builder |
addHost(String value)
repeated string host = 2; |
DAGProtos.PlanTaskLocationHint.Builder |
addHostBytes(com.google.protobuf.ByteString value)
repeated string host = 2; |
DAGProtos.PlanTaskLocationHint.Builder |
addRack(String value)
repeated string rack = 1; |
DAGProtos.PlanTaskLocationHint.Builder |
addRackBytes(com.google.protobuf.ByteString value)
repeated string rack = 1; |
DAGProtos.PlanTaskLocationHint |
build() |
DAGProtos.PlanTaskLocationHint |
buildPartial() |
DAGProtos.PlanTaskLocationHint.Builder |
clear() |
DAGProtos.PlanTaskLocationHint.Builder |
clearHost()
repeated string host = 2; |
DAGProtos.PlanTaskLocationHint.Builder |
clearRack()
repeated string rack = 1; |
DAGProtos.PlanTaskLocationHint.Builder |
clone() |
DAGProtos.PlanTaskLocationHint |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getHost(int index)
repeated string host = 2; |
com.google.protobuf.ByteString |
getHostBytes(int index)
repeated string host = 2; |
int |
getHostCount()
repeated string host = 2; |
List<String> |
getHostList()
repeated string host = 2; |
String |
getRack(int index)
repeated string rack = 1; |
com.google.protobuf.ByteString |
getRackBytes(int index)
repeated string rack = 1; |
int |
getRackCount()
repeated string rack = 1; |
List<String> |
getRackList()
repeated string rack = 1; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DAGProtos.PlanTaskLocationHint.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DAGProtos.PlanTaskLocationHint.Builder |
mergeFrom(DAGProtos.PlanTaskLocationHint other) |
DAGProtos.PlanTaskLocationHint.Builder |
mergeFrom(com.google.protobuf.Message other) |
DAGProtos.PlanTaskLocationHint.Builder |
setHost(int index,
String value)
repeated string host = 2; |
DAGProtos.PlanTaskLocationHint.Builder |
setRack(int index,
String value)
repeated string rack = 1; |
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
addAll, newUninitializedMessageException
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<DAGProtos.PlanTaskLocationHint.Builder>
public DAGProtos.PlanTaskLocationHint.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<DAGProtos.PlanTaskLocationHint.Builder>
public DAGProtos.PlanTaskLocationHint.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessage.Builder<DAGProtos.PlanTaskLocationHint.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<DAGProtos.PlanTaskLocationHint.Builder>
public DAGProtos.PlanTaskLocationHint getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public DAGProtos.PlanTaskLocationHint build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public DAGProtos.PlanTaskLocationHint buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public DAGProtos.PlanTaskLocationHint.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<DAGProtos.PlanTaskLocationHint.Builder>
public DAGProtos.PlanTaskLocationHint.Builder mergeFrom(DAGProtos.PlanTaskLocationHint other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<DAGProtos.PlanTaskLocationHint.Builder>
public DAGProtos.PlanTaskLocationHint.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<DAGProtos.PlanTaskLocationHint.Builder>
IOException
public List<String> getRackList()
repeated string rack = 1;
getRackList
in interface DAGProtos.PlanTaskLocationHintOrBuilder
public int getRackCount()
repeated string rack = 1;
getRackCount
in interface DAGProtos.PlanTaskLocationHintOrBuilder
public String getRack(int index)
repeated string rack = 1;
getRack
in interface DAGProtos.PlanTaskLocationHintOrBuilder
public com.google.protobuf.ByteString getRackBytes(int index)
repeated string rack = 1;
getRackBytes
in interface DAGProtos.PlanTaskLocationHintOrBuilder
public DAGProtos.PlanTaskLocationHint.Builder setRack(int index, String value)
repeated string rack = 1;
public DAGProtos.PlanTaskLocationHint.Builder addRack(String value)
repeated string rack = 1;
public DAGProtos.PlanTaskLocationHint.Builder addAllRack(Iterable<String> values)
repeated string rack = 1;
public DAGProtos.PlanTaskLocationHint.Builder clearRack()
repeated string rack = 1;
public DAGProtos.PlanTaskLocationHint.Builder addRackBytes(com.google.protobuf.ByteString value)
repeated string rack = 1;
public List<String> getHostList()
repeated string host = 2;
getHostList
in interface DAGProtos.PlanTaskLocationHintOrBuilder
public int getHostCount()
repeated string host = 2;
getHostCount
in interface DAGProtos.PlanTaskLocationHintOrBuilder
public String getHost(int index)
repeated string host = 2;
getHost
in interface DAGProtos.PlanTaskLocationHintOrBuilder
public com.google.protobuf.ByteString getHostBytes(int index)
repeated string host = 2;
getHostBytes
in interface DAGProtos.PlanTaskLocationHintOrBuilder
public DAGProtos.PlanTaskLocationHint.Builder setHost(int index, String value)
repeated string host = 2;
public DAGProtos.PlanTaskLocationHint.Builder addHost(String value)
repeated string host = 2;
public DAGProtos.PlanTaskLocationHint.Builder addAllHost(Iterable<String> values)
repeated string host = 2;
public DAGProtos.PlanTaskLocationHint.Builder clearHost()
repeated string host = 2;
public DAGProtos.PlanTaskLocationHint.Builder addHostBytes(com.google.protobuf.ByteString value)
repeated string host = 2;
Copyright © 2016 Apache Software Foundation. All rights reserved.