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-valuedBoolField
with DocValues enabled.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.AnalyticsValueStream
AnalyticsValueStream.AbstractAnalyticsValueStream, AnalyticsValueStream.ExpressionType
-
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.BooleanValueStream
BooleanValueStream.AbstractBooleanValueStream, BooleanValueStream.CastingBooleanValueStream
-
Nested 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 Constructor Description BooleanMultiField(String fieldName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collect(int doc)
Collect the value(s) of the wrapped field for the given document, and store the value.void
doSetNextReader(org.apache.lucene.index.LeafReaderContext context)
Set the segment reader contextvoid
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.-
Methods inherited from class org.apache.solr.analytics.function.field.AnalyticsField
convertToConstant, getExpressionStr, getExpressionType, getName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.analytics.value.AnalyticsValueStream
convertToConstant, getExpressionStr, getExpressionType, getName
-
-
-
-
Constructor Detail
-
BooleanMultiField
public BooleanMultiField(String fieldName)
-
-
Method Detail
-
doSetNextReader
public void doSetNextReader(org.apache.lucene.index.LeafReaderContext context) throws IOException
Description copied from class:AnalyticsField
Set the segment reader context- Specified by:
doSetNextReader
in classAnalyticsField
- Parameters:
context
- segment context- Throws:
IOException
- if an error occurs while loading the leaf reader
-
collect
public void collect(int doc) throws IOException
Description copied from class:AnalyticsField
Collect the value(s) of the wrapped field for the given document, and store the value.- Specified by:
collect
in classAnalyticsField
- Parameters:
doc
- ID of the document to collect- Throws:
IOException
- if an error occurs while reading the document.
-
streamBooleans
public void streamBooleans(BooleanConsumer cons)
Description copied from interface:BooleanValueStream
Stream the boolean representations of all current values, if any exist.- Specified by:
streamBooleans
in interfaceBooleanValueStream
- Parameters:
cons
- The consumer to accept the values
-
streamStrings
public void streamStrings(Consumer<String> cons)
Description copied from interface:StringValueStream
Stream the String representations of all current values, if any exist.- Specified by:
streamStrings
in interfaceStringValueStream
- Parameters:
cons
- The consumer to accept the values
-
streamObjects
public void streamObjects(Consumer<Object> cons)
Description copied from interface:AnalyticsValueStream
Stream the object representations of all current values, if any exist.- Specified by:
streamObjects
in interfaceAnalyticsValueStream
- Parameters:
cons
- The consumer to accept the values
-
-