Class BooleanMultiField
java.lang.Object
org.apache.solr.analytics.function.field.AnalyticsField
org.apache.solr.analytics.function.field.BooleanMultiField
- All Implemented Interfaces:
AnalyticsValueStream,BooleanValueStream,BooleanValueStream.CastingBooleanValueStream,StringValueStream
public class BooleanMultiField
extends AnalyticsField
implements BooleanValueStream.CastingBooleanValueStream
An analytics wrapper for a multi-valued
BoolField with DocValues enabled.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.AnalyticsValueStream
AnalyticsValueStream.AbstractAnalyticsValueStream, AnalyticsValueStream.ExpressionTypeNested classes/interfaces inherited from interface org.apache.solr.analytics.value.BooleanValueStream
BooleanValueStream.AbstractBooleanValueStream, BooleanValueStream.CastingBooleanValueStreamNested classes/interfaces inherited from interface org.apache.solr.analytics.value.StringValueStream
StringValueStream.AbstractStringValueStream, StringValueStream.CastingStringValueStream -
Field Summary
Fields inherited from class org.apache.solr.analytics.function.field.AnalyticsField
fieldName, initialArrayLength -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcollect(int doc) Collect the value(s) of the wrapped field for the given document, and store the value.voiddoSetNextReader(org.apache.lucene.index.LeafReaderContext context) Set the segment reader contextvoidStream the boolean representations of all current values, if any exist.voidstreamObjects(Consumer<Object> cons) Stream the object representations of all current values, if any exist.voidstreamStrings(Consumer<String> cons) Stream the String representations of all current values, if any exist.Methods inherited from class org.apache.solr.analytics.function.field.AnalyticsField
convertToConstant, getExpressionStr, getExpressionType, getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.solr.analytics.value.AnalyticsValueStream
convertToConstant, getExpressionStr, getExpressionType, getName
-
Constructor Details
-
BooleanMultiField
-
-
Method Details
-
doSetNextReader
Description copied from class:AnalyticsFieldSet the segment reader context- Specified by:
doSetNextReaderin classAnalyticsField- Parameters:
context- segment context- Throws:
IOException- if an error occurs while loading the leaf reader
-
collect
Description copied from class:AnalyticsFieldCollect the value(s) of the wrapped field for the given document, and store the value.- Specified by:
collectin classAnalyticsField- Parameters:
doc- ID of the document to collect- Throws:
IOException- if an error occurs while reading the document.
-
streamBooleans
Description copied from interface:BooleanValueStreamStream the boolean representations of all current values, if any exist.- Specified by:
streamBooleansin interfaceBooleanValueStream- Parameters:
cons- The consumer to accept the values
-
streamStrings
Description copied from interface:StringValueStreamStream the String representations of all current values, if any exist.- Specified by:
streamStringsin interfaceStringValueStream- Parameters:
cons- The consumer to accept the values
-
streamObjects
Description copied from interface:AnalyticsValueStreamStream the object representations of all current values, if any exist.- Specified by:
streamObjectsin interfaceAnalyticsValueStream- Parameters:
cons- The consumer to accept the values
-