public class MatchingDimExtractionFn extends DimExtractionFn
ExtractionFn.ExtractionType| Constructor and Description |
|---|
MatchingDimExtractionFn(String expr) |
| Modifier and Type | Method and Description |
|---|---|
String |
apply(String dimValue)
The "extraction" function.
|
boolean |
equals(Object o) |
byte[] |
getCacheKey()
Returns a byte[] unique to all concrete implementations of DimExtractionFn.
|
String |
getExpr() |
ExtractionFn.ExtractionType |
getExtractionType()
A dim extraction can be of one of two types, renaming or rebucketing.
|
int |
hashCode() |
boolean |
preservesOrdering()
Offers information on whether the extraction will preserve the original ordering of the values.
|
String |
toString() |
apply, applypublic MatchingDimExtractionFn(String expr)
public byte[] getCacheKey()
ExtractionFnpublic String apply(String dimValue)
ExtractionFn
Like ExtractionFn.apply(Object), the empty string is considered invalid output for this method and it should
instead return null.
dimValue - the original value of the dimensionpublic String getExpr()
public boolean preservesOrdering()
ExtractionFnSome optimizations of queries is possible if ordering is preserved. Null values *do* count towards ordering.
public ExtractionFn.ExtractionType getExtractionType()
ExtractionFnExtractionFn.ExtractionType declaring what kind of manipulation this
function doesCopyright © 2011–2017. All rights reserved.