Package org.elasticsearch.script
Class BooleanFieldScript
java.lang.Object
org.elasticsearch.script.AbstractFieldScript
org.elasticsearch.script.BooleanFieldScript
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
static interface
-
Field Summary
Fields inherited from class org.elasticsearch.script.AbstractFieldScript
fieldName, leafSearchLookup, MAX_VALUES
-
Constructor Summary
ConstructorDescriptionBooleanFieldScript(String fieldName, Map<String,Object> params, SearchLookup searchLookup, org.apache.lucene.index.LeafReaderContext ctx)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
emit(boolean v)
protected void
emitFromObject(Object v)
int
falses()
How manyfalse
values were returned for this document.void
runForDoc(int docId)
Execute the script for the provideddocId
.void
int
trues()
How manytrue
values were returned for this document.Methods inherited from class org.elasticsearch.script.AbstractFieldScript
checkMaxSize, emitFromSource, execute, extractFromSource, getDoc, getParams, setDocument
-
Field Details
-
CONTEXT
-
PARSE_FROM_SOURCE
-
PARAMETERS
-
-
Constructor Details
-
BooleanFieldScript
public BooleanFieldScript(String fieldName, Map<String,Object> params, SearchLookup searchLookup, org.apache.lucene.index.LeafReaderContext ctx)
-
-
Method Details
-
runForDoc
public final void runForDoc(int docId)Execute the script for the provideddocId
. -
runForDoc
-
trues
public final int trues()How manytrue
values were returned for this document. -
falses
public final int falses()How manyfalse
values were returned for this document. -
emitFromObject
- Specified by:
emitFromObject
in classAbstractFieldScript
-
emit
public final void emit(boolean v)
-