Package org.elasticsearch.indices
Class TermsLookup
- java.lang.Object
-
- org.elasticsearch.indices.TermsLookup
-
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
public class TermsLookup extends Object implements Writeable, ToXContentFragment
Encapsulates the parameters needed to fetch terms.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description TermsLookup(String index, String id, String path)TermsLookup(String index, String type, String id, String path)Deprecated.Types are in the process of being removed, useTermsLookup(java.lang.String,java.lang.String,java.lang.String)instead.TermsLookup(StreamInput in)Read from a stream.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()Stringid()Stringindex()static TermsLookupparseTermsLookup(XContentParser parser)Stringpath()Stringrouting()TermsLookuprouting(String routing)StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)Stringtype()Deprecated.Types are in the process of being removed.voidwriteTo(StreamOutput out)Write this into the StreamOutput.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Constructor Detail
-
TermsLookup
@Deprecated public TermsLookup(String index, String type, String id, String path)
Deprecated.Types are in the process of being removed, useTermsLookup(java.lang.String,java.lang.String,java.lang.String)instead.
-
TermsLookup
public TermsLookup(StreamInput in) throws IOException
Read from a stream.- Throws:
IOException
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
index
public String index()
-
type
@Deprecated public String type()
Deprecated.Types are in the process of being removed.
-
id
public String id()
-
path
public String path()
-
routing
public String routing()
-
routing
public TermsLookup routing(String routing)
-
parseTermsLookup
public static TermsLookup parseTermsLookup(XContentParser parser) throws IOException
- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
-