public abstract class BaseSingleValueDimensionSelector extends Object implements DimensionSelector
CARDINALITY_UNKNOWN| Constructor and Description |
|---|
BaseSingleValueDimensionSelector() |
| Modifier and Type | Method and Description |
|---|---|
IndexedInts |
getRow()
Gets all values for the row inside of an IntBuffer.
|
protected abstract String |
getValue() |
int |
getValueCardinality()
Value cardinality is the cardinality of the different occurring values.
|
IdLookup |
idLookup()
Returns
IdLookup if available for this DimensionSelector, or null. |
String |
lookupName(int id)
The Name is the String name of the actual field.
|
ValueMatcher |
makeValueMatcher(com.google.common.base.Predicate<String> predicate) |
ValueMatcher |
makeValueMatcher(String value) |
boolean |
nameLookupPossibleInAdvance()
Returns true if it is possible to
DimensionSelector.lookupName(int) by ids from 0 to DimensionSelector.getValueCardinality()
before the rows with those ids are returned. |
protected abstract String getValue()
public IndexedInts getRow()
DimensionSelectorgetRow in interface DimensionSelectorpublic int getValueCardinality()
DimensionSelectorgetValueCardinality in interface DimensionSelectorpublic String lookupName(int id)
DimensionSelectorlookupName in interface DimensionSelectorid - id to lookup the field name forpublic ValueMatcher makeValueMatcher(String value)
makeValueMatcher in interface DimensionSelectorvalue - nullable dimension valuepublic ValueMatcher makeValueMatcher(com.google.common.base.Predicate<String> predicate)
makeValueMatcher in interface DimensionSelectorpublic boolean nameLookupPossibleInAdvance()
DimensionSelectorDimensionSelector.lookupName(int) by ids from 0 to DimensionSelector.getValueCardinality()
before the rows with those ids are returned.
Returns false if DimensionSelector.lookupName(int) could be called with ids, returned from the most recent call of DimensionSelector.getRow() on this DimensionSelector, but not earlier. If DimensionSelector.getValueCardinality() of this DimensionSelector
additionally returns DimensionSelector.CARDINALITY_UNKNOWN, lookupName() couldn't be called with ids, returned by
not the most recent call of DimensionSelector.getRow(), i. e. names for ids couldn't be looked up "later". If DimensionSelector.getValueCardinality() returns a non-negative number, lookupName() could be called with any ids, returned
from #getRow() since the creation of this DimensionSelector.
If DimensionSelector.lookupName(int) is called with an ineligible id, result is undefined: exception could be thrown, or
null returned, or some other random value.
nameLookupPossibleInAdvance in interface DimensionSelector@Nullable public IdLookup idLookup()
DimensionSelectorIdLookup if available for this DimensionSelector, or null.idLookup in interface DimensionSelectorCopyright © 2011–2017. All rights reserved.