Package org.elasticsearch.indices
Class TermsLookup
- java.lang.Object
-
- org.elasticsearch.indices.TermsLookup
-
- All Implemented Interfaces:
Writeable
,ToXContent
,ToXContentFragment
public class TermsLookup extends java.lang.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(java.lang.String index, java.lang.String type, java.lang.String id, java.lang.String path)
TermsLookup(StreamInput in)
Read from a stream.
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
id()
java.lang.String
index()
static TermsLookup
parseTermsLookup(XContentParser parser)
java.lang.String
path()
java.lang.String
routing()
TermsLookup
routing(java.lang.String routing)
java.lang.String
toString()
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
java.lang.String
type()
void
writeTo(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
public TermsLookup(java.lang.String index, java.lang.String type, java.lang.String id, java.lang.String path)
-
TermsLookup
public TermsLookup(StreamInput in) throws java.io.IOException
Read from a stream.- Throws:
java.io.IOException
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Writeable
Write this into the StreamOutput.
-
index
public java.lang.String index()
-
type
public java.lang.String type()
-
id
public java.lang.String id()
-
path
public java.lang.String path()
-
routing
public java.lang.String routing()
-
routing
public TermsLookup routing(java.lang.String routing)
-
parseTermsLookup
public static TermsLookup parseTermsLookup(XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-