Package org.elasticsearch.indices
Class TermsLookup
java.lang.Object
org.elasticsearch.indices.TermsLookup
- All Implemented Interfaces:
Writeable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
public class TermsLookup extends java.lang.Object implements Writeable, org.elasticsearch.common.xcontent.ToXContentFragment
Encapsulates the parameters needed to fetch terms.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.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 id, java.lang.String path)
TermsLookup(java.lang.String index, java.lang.String type, java.lang.String id, java.lang.String path)
Deprecated.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(org.elasticsearch.common.xcontent.XContentParser parser)
java.lang.String
path()
java.lang.String
routing()
TermsLookup
routing(java.lang.String routing)
java.lang.String
toString()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
java.lang.String
type()
Deprecated.Types are in the process of being removed.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 Details
-
TermsLookup
public TermsLookup(java.lang.String index, java.lang.String id, java.lang.String path) -
TermsLookup
@Deprecated public TermsLookup(java.lang.String index, java.lang.String type, java.lang.String id, java.lang.String path)Deprecated.Types are in the process of being removed, useTermsLookup(java.lang.String,java.lang.String,java.lang.String)
instead. -
TermsLookup
Read from a stream.- Throws:
java.io.IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
index
public java.lang.String index() -
type
@Deprecated public java.lang.String type()Deprecated.Types are in the process of being removed. -
id
public java.lang.String id() -
path
public java.lang.String path() -
routing
public java.lang.String routing() -
routing
-
parseTermsLookup
public static TermsLookup parseTermsLookup(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException- Throws:
java.io.IOException
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- 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
-
TermsLookup(java.lang.String,java.lang.String,java.lang.String)
instead.