public class LowerExtractionFn extends DimExtractionFn
ExtractionFn.ExtractionType
Constructor and Description |
---|
LowerExtractionFn(String localeString) |
Modifier and Type | Method and Description |
---|---|
String |
apply(String key)
The "extraction" function.
|
byte[] |
getCacheKey()
Returns a byte[] unique to all concrete implementations of DimExtractionFn.
|
ExtractionFn.ExtractionType |
getExtractionType()
A dim extraction can be of one of two types, renaming or rebucketing.
|
boolean |
preservesOrdering()
Offers information on whether the extraction will preserve the original ordering of the values.
|
apply, apply
public LowerExtractionFn(String localeString)
@Nullable public String apply(String key)
ExtractionFn
Like ExtractionFn.apply(Object)
, the empty string is considered invalid output for this method and it should
instead return null.
key
- string input of extraction functionkey
as an lower case or null if key
is empty or nullpublic boolean preservesOrdering()
ExtractionFn
Some optimizations of queries is possible if ordering is preserved. Null values *do* count towards ordering.
public ExtractionFn.ExtractionType getExtractionType()
ExtractionFn
ExtractionFn.ExtractionType
declaring what kind of manipulation this
function doespublic byte[] getCacheKey()
ExtractionFn
Copyright © 2011–2017. All rights reserved.