public class LookupExtractionFunction extends ExtractionFunction
ExtractionFunction.DefaultExtractionFunctionType
Constructor and Description |
---|
LookupExtractionFunction(Lookup lookup)
Convenience Constructor,
|
LookupExtractionFunction(Lookup lookup,
Boolean retainMissingValue,
String replaceMissingValueWith,
Boolean injective,
Boolean optimize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Boolean |
getInjective() |
Lookup |
getLookup() |
Boolean |
getOptimize() |
String |
getReplaceMissingValueWith() |
Boolean |
getRetainMissingValue() |
int |
hashCode() |
LookupExtractionFunction |
withInjective(Boolean injective) |
LookupExtractionFunction |
withLookup(Lookup lookup) |
LookupExtractionFunction |
withOptimize(Boolean optimize) |
LookupExtractionFunction |
withReplaceMissingValueWith(String replaceMissingValueWith) |
LookupExtractionFunction |
withRetainMissingValue(Boolean retainMissingValue) |
getType
public LookupExtractionFunction(Lookup lookup, Boolean retainMissingValue, String replaceMissingValueWith, Boolean injective, Boolean optimize)
lookup
- lookup property specified by the userretainMissingValue
- when true: returns original dimension value if mapping is not found, also note that
replaceMissingValueWith must be null or empty string, when false: missing values are treated as missingreplaceMissingValueWith
- replaces dimension values not found in mapping with this value and
retainMissingValue must be false if this value is not null or is not empty stringinjective
- set to true to apply some optimization given that mapping is one-to-one,
may cause undefined behavior if retainMissingValue is false and injective is trueoptimize
- set to false to turn off rewriting extraction filter as selector filterspublic LookupExtractionFunction(Lookup lookup)
defaults: retainMissingValue=false, replaceMissingValueWith=null, injective=false, optimize=true.
lookup
- lookup property specified by the userpublic Lookup getLookup()
public Boolean getRetainMissingValue()
public String getReplaceMissingValueWith()
public Boolean getInjective()
public Boolean getOptimize()
public LookupExtractionFunction withLookup(Lookup lookup)
public LookupExtractionFunction withRetainMissingValue(Boolean retainMissingValue)
public LookupExtractionFunction withReplaceMissingValueWith(String replaceMissingValueWith)
public LookupExtractionFunction withInjective(Boolean injective)
public LookupExtractionFunction withOptimize(Boolean optimize)
public int hashCode()
hashCode
in class ExtractionFunction
public boolean equals(Object obj)
equals
in class ExtractionFunction
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.