public class RegisteredLookupExtractionFunction extends ExtractionFunction
ExtractionFunction.DefaultExtractionFunctionType
Constructor and Description |
---|
RegisteredLookupExtractionFunction(String lookup)
Convenience Constructor,
defaults: retainMissingValue=false, replaceMissingValueWith=null, injective=false, optimize=true.
|
RegisteredLookupExtractionFunction(String lookup,
Boolean retainMissingValue,
String replaceMissingValueWith,
Boolean injective,
Boolean optimize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Boolean |
getInjective() |
String |
getLookup() |
Boolean |
getOptimize() |
String |
getReplaceMissingValueWith() |
Boolean |
getRetainMissingValue() |
int |
hashCode() |
RegisteredLookupExtractionFunction |
withInjective(Boolean injective) |
RegisteredLookupExtractionFunction |
withLookup(String lookup) |
RegisteredLookupExtractionFunction |
withOptimize(Boolean optimize) |
RegisteredLookupExtractionFunction |
withReplaceMissingValueWith(String replaceMissingValueWith) |
RegisteredLookupExtractionFunction |
withRetainMissingValue(Boolean retainMissingValue) |
getType
public RegisteredLookupExtractionFunction(String lookup, Boolean retainMissingValue, String replaceMissingValueWith, Boolean injective, Boolean optimize)
lookup
- lookup's name 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 RegisteredLookupExtractionFunction(String lookup)
lookup
- lookup property specified by the userpublic String getLookup()
public Boolean getRetainMissingValue()
public String getReplaceMissingValueWith()
public Boolean getInjective()
public Boolean getOptimize()
public RegisteredLookupExtractionFunction withLookup(String lookup)
public RegisteredLookupExtractionFunction withRetainMissingValue(Boolean retainMissingValue)
public RegisteredLookupExtractionFunction withReplaceMissingValueWith(String replaceMissingValueWith)
public RegisteredLookupExtractionFunction withInjective(Boolean injective)
public RegisteredLookupExtractionFunction 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.