public class SubstrFunction extends Scalar<org.apache.lucene.util.BytesRef,java.lang.Object> implements DynamicFunctionResolver
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Constructor and Description |
---|
SubstrFunction() |
SubstrFunction(FunctionInfo info) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.util.BytesRef |
evaluate(Input[] args) |
FunctionImplementation<Function> |
getForTypes(java.util.List<DataType> dataTypes)
returns the function implementation for the given types.
|
FunctionInfo |
info() |
Symbol |
normalizeSymbol(Function symbol) |
static void |
register(ScalarFunctionModule module) |
static org.apache.lucene.util.BytesRef |
substring(org.apache.lucene.util.BytesRef utf8,
int begin,
int end) |
anyNonLiterals, compile, containsNullLiteral, evaluateIfLiterals, hasNullInputs
public static final java.lang.String NAME
public SubstrFunction()
public SubstrFunction(FunctionInfo info)
public static void register(ScalarFunctionModule module)
public FunctionInfo info()
info
in interface FunctionImplementation<Function>
public org.apache.lucene.util.BytesRef evaluate(Input[] args)
public static org.apache.lucene.util.BytesRef substring(org.apache.lucene.util.BytesRef utf8, int begin, int end)
public Symbol normalizeSymbol(Function symbol)
normalizeSymbol
in interface FunctionImplementation<Function>
public FunctionImplementation<Function> getForTypes(java.util.List<DataType> dataTypes) throws java.lang.IllegalArgumentException
DynamicFunctionResolver
getForTypes
in interface DynamicFunctionResolver
java.lang.IllegalArgumentException
- thrown if there is no function that can handle the given types.