Package org.elasticsearch.script
Class BooleanFieldScript
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
ConstructorDescriptionfieldName, <,> params, SearchLookup searchLookup, org.apache.lucene.index.LeafReaderContext ctx)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
emit(boolean v)
protected void
v)
int
falses()
How manyfalse
values were returned for this document.void
runForDoc(int docId)
Execute the script for the provideddocId
.void
runForDoc(int docId, <> consumer)
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
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Field Details
-
CONTEXT
-
PARSE_FROM_SOURCE
-
PARAMETERS
public static final [] PARAMETERS
-
-
Constructor Details
-
BooleanFieldScript
public BooleanFieldScript( fieldName, <,> 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
public final void runForDoc(int docId, <> consumer) -
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
protected final void emitFromObject( v)- Specified by:
emitFromObject
in classAbstractFieldScript
-
emit
public final void emit(boolean v)
-