org.elasticsearch.action.get
Class MultiGetRequest.Item

java.lang.Object
  extended by org.elasticsearch.action.get.MultiGetRequest.Item
All Implemented Interfaces:
Streamable
Enclosing class:
MultiGetRequest

public static class MultiGetRequest.Item
extends Object
implements Streamable

A single get item.


Constructor Summary
MultiGetRequest.Item(String index, String type, String id)
          Constructs a single get item.
 
Method Summary
 String[] fields()
           
 MultiGetRequest.Item fields(String... fields)
           
 String id()
           
 String index()
           
 MultiGetRequest.Item index(String index)
           
 void readFrom(StreamInput in)
           
static MultiGetRequest.Item readItem(StreamInput in)
           
 String routing()
           
 MultiGetRequest.Item routing(String routing)
          The routing associated with this document.
 String type()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiGetRequest.Item

public MultiGetRequest.Item(String index,
                            @Nullable
                            String type,
                            String id)
Constructs a single get item.

Parameters:
index - The index name
type - The type (can be null)
id - The id
Method Detail

index

public String index()

index

public MultiGetRequest.Item index(String index)

type

public String type()

id

public String id()

routing

public MultiGetRequest.Item routing(String routing)
The routing associated with this document.


routing

public String routing()

fields

public MultiGetRequest.Item fields(String... fields)

fields

public String[] fields()

readItem

public static MultiGetRequest.Item readItem(StreamInput in)
                                     throws IOException
Throws:
IOException

readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.