public class BooleanMultiField extends AnalyticsField implements BooleanValueStream.CastingBooleanValueStream
BoolField with DocValues enabled.BooleanValueStream.AbstractBooleanValueStream, BooleanValueStream.CastingBooleanValueStreamStringValueStream.AbstractStringValueStream, StringValueStream.CastingStringValueStreamAnalyticsValueStream.ExpressionTypefieldName, initialArrayLength| Constructor and Description |
|---|
BooleanMultiField(String fieldName) |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(int doc)
Collect the value(s) of the wrapped field for the given document, and store the value.
|
void |
doSetNextReader(LeafReaderContext context)
Set the segment reader context
|
void |
streamBooleans(BooleanConsumer cons)
Stream the boolean representations of all current values, if any exist.
|
void |
streamObjects(Consumer<Object> cons)
Stream the object representations of all current values, if any exist.
|
void |
streamStrings(Consumer<String> cons)
Stream the String representations of all current values, if any exist.
|
getExpressionStr, getExpressionType, getNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateExpressionString, determineMappingPhase, getExpressionStr, getExpressionType, getNamepublic BooleanMultiField(String fieldName)
public void doSetNextReader(LeafReaderContext context) throws IOException
AnalyticsFielddoSetNextReader in class AnalyticsFieldcontext - segment contextIOException - if an error occurs while loading the leaf readerpublic void collect(int doc)
throws IOException
AnalyticsFieldcollect in class AnalyticsFielddoc - ID of the document to collectIOException - if an error occurs while reading the document.public void streamBooleans(BooleanConsumer cons)
BooleanValueStreamstreamBooleans in interface BooleanValueStreamcons - The consumer to accept the valuespublic void streamStrings(Consumer<String> cons)
StringValueStreamstreamStrings in interface StringValueStreamcons - The consumer to accept the valuespublic void streamObjects(Consumer<Object> cons)
AnalyticsValueStreamstreamObjects in interface AnalyticsValueStreamcons - The consumer to accept the valuesCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.