public class StringFormatExtractionFn extends DimExtractionFn
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
StringFormatExtractionFn.NullHandling  | 
ExtractionFn.ExtractionType| Constructor and Description | 
|---|
StringFormatExtractionFn(String format)  | 
StringFormatExtractionFn(String format,
                        StringFormatExtractionFn.NullHandling nullHandling)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
apply(String value)
The "extraction" function. 
 | 
boolean | 
equals(Object o)  | 
byte[] | 
getCacheKey()
Get a byte array used as a cache key. 
 | 
ExtractionFn.ExtractionType | 
getExtractionType()
A dim extraction can be of one of two types, renaming or rebucketing. 
 | 
String | 
getFormat()  | 
StringFormatExtractionFn.NullHandling | 
getNullHandling()  | 
int | 
hashCode()  | 
boolean | 
preservesOrdering()
Offers information on whether the extraction will preserve the original ordering of the values. 
 | 
String | 
toString()  | 
apply, applypublic StringFormatExtractionFn(String format, StringFormatExtractionFn.NullHandling nullHandling)
public StringFormatExtractionFn(String format)
public String getFormat()
public StringFormatExtractionFn.NullHandling getNullHandling()
public byte[] getCacheKey()
Cacheable@Nullable public String apply(@Nullable String value)
ExtractionFn
 Like ExtractionFn.apply(Object), the empty string is considered invalid output for this method and it should
 instead return null.
value - the original value of the dimensionpublic 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–2018. All rights reserved.