Class MissingFunction
java.lang.Object
org.apache.solr.analytics.value.LongValue.AbstractLongValue
org.apache.solr.analytics.function.reduction.MissingFunction
- All Implemented Interfaces:
ReductionFunction,AnalyticsValue,AnalyticsValueStream,ComparableValue,DoubleValue,DoubleValueStream,LongValue,LongValue.CastingLongValue,LongValueStream,StringValue,StringValueStream
A reduction function which returns the number of documents for which the given expression does
not exist.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.AnalyticsValue
AnalyticsValue.AbstractAnalyticsValueNested 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.DoubleValue
DoubleValue.AbstractDoubleValue, DoubleValue.CastingDoubleValueNested classes/interfaces inherited from interface org.apache.solr.analytics.value.DoubleValueStream
DoubleValueStream.AbstractDoubleValueStream, DoubleValueStream.CastingDoubleValueStreamNested classes/interfaces inherited from interface org.apache.solr.analytics.value.LongValue
LongValue.AbstractLongValue, LongValue.CastingLongValueNested classes/interfaces inherited from interface org.apache.solr.analytics.value.LongValueStream
LongValueStream.AbstractLongValueStream, LongValueStream.CastingLongValueStreamNested classes/interfaces inherited from interface org.apache.solr.analytics.value.StringValue
StringValue.AbstractStringValue, StringValue.CastingStringValueNested classes/interfaces inherited from interface org.apache.solr.analytics.value.StringValueStream
StringValueStream.AbstractStringValueStream, StringValueStream.CastingStringValueStream -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExpressionFactory.CreatorFunctionstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexists()Check whether the current value exists.Get the expression string of the analytics value stream.Get the type of the expression that this class represents.longgetLong()Get the long representation of the current value.getName()Get the name of function or value.voidSyncs the data collectors with shared versions across the entire Analytics Request so that as little data as possible is sent across shards.Methods inherited from class org.apache.solr.analytics.value.LongValue.AbstractLongValue
convertToConstant, getDouble, getObject, getObjectComparator, getString, streamDoubles, streamLongs, streamObjects, streamStringsMethods 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.AnalyticsValue
getObjectMethods inherited from interface org.apache.solr.analytics.value.AnalyticsValueStream
convertToConstant, streamObjects
-
Field Details
-
name
- See Also:
-
creatorFunction
-
-
Constructor Details
-
MissingFunction
-
-
Method Details
-
getLong
public long getLong()Description copied from interface:LongValueGet the long representation of the current value.NOTE: The value returned is not valid unless calling
AnalyticsValue.exists()afterwards returnsTRUE. -
exists
public boolean exists()Description copied from interface:AnalyticsValueCheck whether the current value exists.
NOTE: The result of this method is only guaranteed after anyget<Type>()method is called.- Specified by:
existsin interfaceAnalyticsValue- Returns:
- whether the current value exists
-
synchronizeDataCollectors
Description copied from interface:ReductionFunctionSyncs the data collectors with shared versions across the entire Analytics Request so that as little data as possible is sent across shards.- Specified by:
synchronizeDataCollectorsin interfaceReductionFunction- Parameters:
sync- a function that takes in aReductionDataCollectorand returns a shared version
-
getExpressionStr
Description copied from interface:AnalyticsValueStreamGet the expression string of the analytics value stream. Must be unique to the expression. If passed toExpressionFactory.createExpression(String), the exact same expression should be created.- Specified by:
getExpressionStrin interfaceAnalyticsValueStream- Returns:
- the name of function/value
-
getName
Description copied from interface:AnalyticsValueStreamGet the name of function or value.- Specified by:
getNamein interfaceAnalyticsValueStream- Returns:
- the name of function/value
-
getExpressionType
Description copied from interface:AnalyticsValueStreamGet the type of the expression that this class represents.- Specified by:
getExpressionTypein interfaceAnalyticsValueStream- Returns:
- the expression type
-