public class JavascriptExtractionFn extends Object implements ExtractionFn
ExtractionFn.ExtractionType
Constructor and Description |
---|
JavascriptExtractionFn(String function,
boolean injective) |
Modifier and Type | Method and Description |
---|---|
String |
apply(long value) |
String |
apply(Object value)
The "extraction" function.
|
String |
apply(String value) |
boolean |
equals(Object o) |
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.
|
String |
getFunction() |
int |
hashCode() |
boolean |
isInjective() |
boolean |
preservesOrdering()
Offers information on whether the extraction will preserve the original ordering of the values.
|
String |
toString() |
public JavascriptExtractionFn(String function, boolean injective)
public String getFunction()
public boolean isInjective()
public byte[] getCacheKey()
ExtractionFn
getCacheKey
in interface ExtractionFn
public String apply(Object value)
ExtractionFn
apply
in interface ExtractionFn
value
- the original value of the dimensionpublic String apply(String value)
apply
in interface ExtractionFn
public String apply(long value)
apply
in interface ExtractionFn
public boolean preservesOrdering()
ExtractionFn
preservesOrdering
in interface ExtractionFn
public ExtractionFn.ExtractionType getExtractionType()
ExtractionFn
getExtractionType
in interface ExtractionFn
ExtractionFn.ExtractionType
declaring what kind of manipulation this
function doesCopyright © 2011–2015. All rights reserved.