public abstract static class BooleanValueStream.AbstractBooleanValueStream extends Object implements BooleanValueStream.CastingBooleanValueStream
BooleanValueStream.CastingBooleanValueStream
that automatically casts to all types if BooleanValueStream.streamBooleans(org.apache.solr.analytics.util.function.BooleanConsumer)
is implemented.BooleanValueStream.AbstractBooleanValueStream, BooleanValueStream.CastingBooleanValueStream
StringValueStream.AbstractStringValueStream, StringValueStream.CastingStringValueStream
AnalyticsValueStream.AbstractAnalyticsValueStream, AnalyticsValueStream.ExpressionType
Constructor and Description |
---|
AbstractBooleanValueStream() |
Modifier and Type | Method and Description |
---|---|
AnalyticsValueStream |
convertToConstant()
Converts this value to a
ConstantValue if it's expression type is AnalyticsValueStream.ExpressionType.CONST . |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
streamBooleans
createExpressionString, determineMappingPhase, getExpressionStr, getExpressionType, getName
public void streamStrings(Consumer<String> cons)
StringValueStream
streamStrings
in interface StringValueStream
cons
- The consumer to accept the valuespublic void streamObjects(Consumer<Object> cons)
AnalyticsValueStream
streamObjects
in interface AnalyticsValueStream
cons
- The consumer to accept the valuespublic AnalyticsValueStream convertToConstant()
AnalyticsValueStream
ConstantValue
if it's expression type is AnalyticsValueStream.ExpressionType.CONST
.
If the value is reduced then no conversion will occur and the value itself will be returned.convertToConstant
in interface AnalyticsValueStream
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.