org.elasticsearch.action.get
Class MultiGetRequest.Item
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiGetRequest.Item
public MultiGetRequest.Item(String index,
@Nullable
String type,
String id)
- Constructs a single get item.
- Parameters:
index
- The index nametype
- The type (can be null)id
- The id
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.