public class StringField extends AnalyticsField implements StringValue.CastingStringValue
StrField with DocValues enabled.StringValue.AbstractStringValue, StringValue.CastingStringValueStringValueStream.AbstractStringValueStream, StringValueStream.CastingStringValueStreamAnalyticsValue.AbstractAnalyticsValueAnalyticsValueStream.AbstractAnalyticsValueStream, AnalyticsValueStream.ExpressionTypefieldName, initialArrayLength| Constructor and Description | 
|---|
StringField(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 
 | 
boolean | 
exists()
Check whether the current value exists. 
 | 
Object | 
getObject()
Get the object representation of the current value. 
 | 
ExpressionComparator<String> | 
getObjectComparator(String expression)
Create an entry comparator used to sort the facet-value buckets of a facet. 
 | 
String | 
getString()
Get the String representation of the current value. 
 | 
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. 
 | 
convertToConstant, getExpressionStr, getExpressionType, getNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertToConstant, createExpressionString, determineMappingPhase, getExpressionStr, getExpressionType, getNamepublic StringField(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 String getString()
StringValue
 NOTE: The value returned is not valid unless calling AnalyticsValue.exists() afterwards returns TRUE.
getString in interface StringValuepublic Object getObject()
AnalyticsValuegetObject in interface AnalyticsValuepublic boolean exists()
AnalyticsValueget<Type>() method is called.exists in interface AnalyticsValuepublic 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 valuespublic ExpressionComparator<String> getObjectComparator(String expression)
ComparableValuegetObjectComparator in interface ComparableValueexpression - the name of the expression in the results arrayCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.