public abstract class DimExtractionFn extends Object implements ExtractionFn
ExtractionFn.ExtractionType
Constructor and Description |
---|
DimExtractionFn() |
Modifier and Type | Method and Description |
---|---|
String |
apply(long value)
The "extraction" function.
|
String |
apply(Object value)
The "extraction" function.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, getCacheKey, getExtractionType, preservesOrdering
public String apply(Object value)
ExtractionFn
In order to maintain the "null and empty string are equivalent" semantics that Druid provides, the empty string is considered invalid output for this method and should instead return null. This is a contract on the method rather than enforced at a lower level in order to eliminate a global check for extraction functions that do not already need one.
apply
in interface ExtractionFn
value
- the original value of the dimensionpublic String apply(long value)
ExtractionFn
Like ExtractionFn.apply(Object)
, the empty string is considered invalid output for this method and it should
instead return null.
apply
in interface ExtractionFn
value
- the original value of the dimensionCopyright © 2011–2017. All rights reserved.