org.elasticsearch.index.query.xcontent
Class BaseQueryBuilder

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

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


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)
           
 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseQueryBuilder

public BaseQueryBuilder()
Method Detail

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