org.elasticsearch.index.query
Class WrapperFilterBuilder

java.lang.Object
  extended by org.elasticsearch.index.query.BaseFilterBuilder
      extended by org.elasticsearch.index.query.WrapperFilterBuilder
All Implemented Interfaces:
ToXContent, FilterBuilder

public class WrapperFilterBuilder
extends BaseFilterBuilder

A Filter builder which allows building a filter thanks to a JSON string or binary data. This is useful when you want to use the Java Builder API but still have JSON filter strings at hand that you want to combine with other query builders.


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
WrapperFilterBuilder(byte[] source, int offset, int length)
           
WrapperFilterBuilder(String source)
           
 
Method Summary
protected  void doXContent(XContentBuilder builder, ToXContent.Params params)
           
 
Methods inherited from class org.elasticsearch.index.query.BaseFilterBuilder
toXContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperFilterBuilder

public WrapperFilterBuilder(String source)

WrapperFilterBuilder

public WrapperFilterBuilder(byte[] source,
                            int offset,
                            int length)
Method Detail

doXContent

protected void doXContent(XContentBuilder builder,
                          ToXContent.Params params)
                   throws IOException
Specified by:
doXContent in class BaseFilterBuilder
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.