public class DefaultDimensionSpec extends Object implements DimensionSpec
Constructor and Description |
---|
DefaultDimensionSpec(String dimension,
String outputName) |
DefaultDimensionSpec(String dimension,
String outputName,
ValueType outputType) |
Modifier and Type | Method and Description |
---|---|
DimensionSelector |
decorate(DimensionSelector selector) |
boolean |
equals(Object o) |
byte[] |
getCacheKey()
Get a byte array used as a cache key.
|
String |
getDimension() |
ExtractionFn |
getExtractionFn() |
String |
getOutputName() |
ValueType |
getOutputType() |
int |
hashCode() |
boolean |
mustDecorate()
Does this DimensionSpec require that decorate() be called to produce correct results?
|
static DefaultDimensionSpec |
of(String dimensionName) |
boolean |
preservesOrdering() |
static List<DimensionSpec> |
toSpec(Iterable<String> dimensionNames) |
static List<DimensionSpec> |
toSpec(String... dimensionNames) |
String |
toString() |
public DefaultDimensionSpec(String dimension, String outputName, ValueType outputType)
public static DefaultDimensionSpec of(String dimensionName)
public static List<DimensionSpec> toSpec(String... dimensionNames)
public static List<DimensionSpec> toSpec(Iterable<String> dimensionNames)
public String getDimension()
getDimension
in interface DimensionSpec
public String getOutputName()
getOutputName
in interface DimensionSpec
public ValueType getOutputType()
getOutputType
in interface DimensionSpec
public ExtractionFn getExtractionFn()
getExtractionFn
in interface DimensionSpec
public DimensionSelector decorate(DimensionSelector selector)
decorate
in interface DimensionSpec
public boolean mustDecorate()
DimensionSpec
mustDecorate
in interface DimensionSpec
public byte[] getCacheKey()
Cacheable
getCacheKey
in interface Cacheable
public boolean preservesOrdering()
preservesOrdering
in interface DimensionSpec
Copyright © 2011–2017. All rights reserved.