org.elasticsearch.index.query
Class BaseQueryBuilder

java.lang.Object
  extended by org.elasticsearch.index.query.BaseQueryBuilder
All Implemented Interfaces:
ToXContent, QueryBuilder
Direct Known Subclasses:
BoolQueryBuilder, BoostingQueryBuilder, ConstantScoreQueryBuilder, CustomBoostFactorQueryBuilder, CustomFiltersScoreQueryBuilder, CustomScoreQueryBuilder, DisMaxQueryBuilder, FieldMaskingSpanQueryBuilder, FieldQueryBuilder, FilteredQueryBuilder, FuzzyLikeThisFieldQueryBuilder, FuzzyLikeThisQueryBuilder, FuzzyQueryBuilder, HasChildQueryBuilder, IdsQueryBuilder, IndicesQueryBuilder, MatchAllQueryBuilder, MoreLikeThisFieldQueryBuilder, MoreLikeThisQueryBuilder, NestedQueryBuilder, PrefixQueryBuilder, QueryStringQueryBuilder, RangeQueryBuilder, SpanFirstQueryBuilder, SpanNearQueryBuilder, SpanNotQueryBuilder, SpanOrQueryBuilder, SpanTermQueryBuilder, TermQueryBuilder, TermsQueryBuilder, TextQueryBuilder, TopChildrenQueryBuilder, WildcardQueryBuilder, WrapperQueryBuilder

public abstract class BaseQueryBuilder
extends java.lang.Object
implements QueryBuilder


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
BaseQueryBuilder()
           
 
Method Summary
 byte[] buildAsBytes()
           
 byte[] buildAsBytes(XContentType contentType)
           
 BytesStream buildAsUnsafeBytes()
           
 BytesStream buildAsUnsafeBytes(XContentType contentType)
           
protected abstract  void doXContent(XContentBuilder builder, ToXContent.Params params)
           
 java.lang.String toString()
           
 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseQueryBuilder

public BaseQueryBuilder()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

buildAsUnsafeBytes

public BytesStream buildAsUnsafeBytes()
                               throws QueryBuilderException
Specified by:
buildAsUnsafeBytes in interface QueryBuilder
Throws:
QueryBuilderException

buildAsUnsafeBytes

public BytesStream buildAsUnsafeBytes(XContentType contentType)
                               throws QueryBuilderException
Specified by:
buildAsUnsafeBytes in interface QueryBuilder
Throws:
QueryBuilderException

buildAsBytes

public byte[] buildAsBytes()
                    throws QueryBuilderException
Specified by:
buildAsBytes in interface QueryBuilder
Throws:
QueryBuilderException

buildAsBytes

public byte[] buildAsBytes(XContentType contentType)
                    throws QueryBuilderException
Specified by:
buildAsBytes in interface QueryBuilder
Throws:
QueryBuilderException

toXContent

public XContentBuilder toXContent(XContentBuilder builder,
                                  ToXContent.Params params)
                           throws java.io.IOException
Specified by:
toXContent in interface ToXContent
Throws:
java.io.IOException

doXContent

protected abstract void doXContent(XContentBuilder builder,
                                   ToXContent.Params params)
                            throws java.io.IOException
Throws:
java.io.IOException