org.apache.tez.dag.api.records
Class DAGProtos.PlanTaskLocationHint.Builder

java.lang.Object
  extended by com.google.protobuf.AbstractMessageLite.Builder<BuilderType>
      extended by com.google.protobuf.AbstractMessage.Builder<BuilderType>
          extended by com.google.protobuf.GeneratedMessage.Builder<DAGProtos.PlanTaskLocationHint.Builder>
              extended by org.apache.tez.dag.api.records.DAGProtos.PlanTaskLocationHint.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, DAGProtos.PlanTaskLocationHintOrBuilder
Enclosing class:
DAGProtos.PlanTaskLocationHint

public static final class DAGProtos.PlanTaskLocationHint.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DAGProtos.PlanTaskLocationHint.Builder>
implements DAGProtos.PlanTaskLocationHintOrBuilder

Protobuf type 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.
 


Method Summary
 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;
 
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
 
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
 
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, newUninitializedMessageException
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField
 

Method Detail

getDescriptor

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()

internalGetFieldAccessorTable

protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Specified by:
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DAGProtos.PlanTaskLocationHint.Builder>

clear

public DAGProtos.PlanTaskLocationHint.Builder clear()
Specified by:
clear in interface com.google.protobuf.Message.Builder
Specified by:
clear in interface com.google.protobuf.MessageLite.Builder
Overrides:
clear in class com.google.protobuf.GeneratedMessage.Builder<DAGProtos.PlanTaskLocationHint.Builder>

clone

public DAGProtos.PlanTaskLocationHint.Builder clone()
Specified by:
clone in interface com.google.protobuf.Message.Builder
Specified by:
clone in interface com.google.protobuf.MessageLite.Builder
Overrides:
clone in class com.google.protobuf.GeneratedMessage.Builder<DAGProtos.PlanTaskLocationHint.Builder>

getDescriptorForType

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Specified by:
getDescriptorForType in interface com.google.protobuf.Message.Builder
Specified by:
getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
Overrides:
getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DAGProtos.PlanTaskLocationHint.Builder>

getDefaultInstanceForType

public DAGProtos.PlanTaskLocationHint getDefaultInstanceForType()
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder

build

public DAGProtos.PlanTaskLocationHint build()
Specified by:
build in interface com.google.protobuf.Message.Builder
Specified by:
build in interface com.google.protobuf.MessageLite.Builder

buildPartial

public DAGProtos.PlanTaskLocationHint buildPartial()
Specified by:
buildPartial in interface com.google.protobuf.Message.Builder
Specified by:
buildPartial in interface com.google.protobuf.MessageLite.Builder

mergeFrom

public DAGProtos.PlanTaskLocationHint.Builder mergeFrom(com.google.protobuf.Message other)
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DAGProtos.PlanTaskLocationHint.Builder>

mergeFrom

public DAGProtos.PlanTaskLocationHint.Builder mergeFrom(DAGProtos.PlanTaskLocationHint other)

isInitialized

public final boolean isInitialized()
Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
Overrides:
isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DAGProtos.PlanTaskLocationHint.Builder>

mergeFrom

public DAGProtos.PlanTaskLocationHint.Builder mergeFrom(com.google.protobuf.CodedInputStream input,
                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                 throws IOException
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Specified by:
mergeFrom in interface com.google.protobuf.MessageLite.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DAGProtos.PlanTaskLocationHint.Builder>
Throws:
IOException

getRackList

public List<String> getRackList()
repeated string rack = 1;

Specified by:
getRackList in interface DAGProtos.PlanTaskLocationHintOrBuilder

getRackCount

public int getRackCount()
repeated string rack = 1;

Specified by:
getRackCount in interface DAGProtos.PlanTaskLocationHintOrBuilder

getRack

public String getRack(int index)
repeated string rack = 1;

Specified by:
getRack in interface DAGProtos.PlanTaskLocationHintOrBuilder

getRackBytes

public com.google.protobuf.ByteString getRackBytes(int index)
repeated string rack = 1;

Specified by:
getRackBytes in interface DAGProtos.PlanTaskLocationHintOrBuilder

setRack

public DAGProtos.PlanTaskLocationHint.Builder setRack(int index,
                                                      String value)
repeated string rack = 1;


addRack

public DAGProtos.PlanTaskLocationHint.Builder addRack(String value)
repeated string rack = 1;


addAllRack

public DAGProtos.PlanTaskLocationHint.Builder addAllRack(Iterable<String> values)
repeated string rack = 1;


clearRack

public DAGProtos.PlanTaskLocationHint.Builder clearRack()
repeated string rack = 1;


addRackBytes

public DAGProtos.PlanTaskLocationHint.Builder addRackBytes(com.google.protobuf.ByteString value)
repeated string rack = 1;


getHostList

public List<String> getHostList()
repeated string host = 2;

Specified by:
getHostList in interface DAGProtos.PlanTaskLocationHintOrBuilder

getHostCount

public int getHostCount()
repeated string host = 2;

Specified by:
getHostCount in interface DAGProtos.PlanTaskLocationHintOrBuilder

getHost

public String getHost(int index)
repeated string host = 2;

Specified by:
getHost in interface DAGProtos.PlanTaskLocationHintOrBuilder

getHostBytes

public com.google.protobuf.ByteString getHostBytes(int index)
repeated string host = 2;

Specified by:
getHostBytes in interface DAGProtos.PlanTaskLocationHintOrBuilder

setHost

public DAGProtos.PlanTaskLocationHint.Builder setHost(int index,
                                                      String value)
repeated string host = 2;


addHost

public DAGProtos.PlanTaskLocationHint.Builder addHost(String value)
repeated string host = 2;


addAllHost

public DAGProtos.PlanTaskLocationHint.Builder addAllHost(Iterable<String> values)
repeated string host = 2;


clearHost

public DAGProtos.PlanTaskLocationHint.Builder clearHost()
repeated string host = 2;


addHostBytes

public DAGProtos.PlanTaskLocationHint.Builder addHostBytes(com.google.protobuf.ByteString value)
repeated string host = 2;



Copyright © 2014 Apache Software Foundation. All rights reserved.