com.linkedin.restli.common
Class BatchRequest<T extends com.linkedin.data.template.RecordTemplate>

java.lang.Object
  extended by com.linkedin.data.template.RecordTemplate
      extended by com.linkedin.restli.common.BatchRequest<T>
All Implemented Interfaces:
com.linkedin.data.template.DataTemplate<com.linkedin.data.DataMap>, java.lang.Cloneable

public class BatchRequest<T extends com.linkedin.data.template.RecordTemplate>
extends com.linkedin.data.template.RecordTemplate


Field Summary
static java.lang.String ENTITIES
           
 
Constructor Summary
BatchRequest(com.linkedin.data.DataMap data, java.lang.Class<T> valueClass)
          Initialize a BatchRequest off of the given data and valueClass.
 
Method Summary
 java.util.Map<java.lang.String,T> getEntities()
          return a mutable map of of keys to entities that can be added to as the batch request is fulfilled.
 com.linkedin.data.schema.RecordDataSchema schema()
           
 
Methods inherited from class com.linkedin.data.template.RecordTemplate
clone, contains, copy, data, equals, hashCode, obtainDirect, obtainWrapped, putDirect, putDirect, putDirect, putWrapped, putWrapped, remove, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ENTITIES

public static final java.lang.String ENTITIES
See Also:
Constant Field Values
Constructor Detail

BatchRequest

public BatchRequest(com.linkedin.data.DataMap data,
                    java.lang.Class<T> valueClass)
Initialize a BatchRequest off of the given data and valueClass.

Parameters:
data - a DataMap
valueClass - the class of items that will be returned when this request is fulfilled.
Method Detail

schema

public com.linkedin.data.schema.RecordDataSchema schema()
Specified by:
schema in interface com.linkedin.data.template.DataTemplate<com.linkedin.data.DataMap>
Overrides:
schema in class com.linkedin.data.template.RecordTemplate

getEntities

public java.util.Map<java.lang.String,T> getEntities()
return a mutable map of of keys to entities that can be added to as the batch request is fulfilled.

Returns:
a Map from keys to entities