public final class ScalarFunctionImplementation extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ScalarFunctionImplementation.ArgumentProperty |
static class |
ScalarFunctionImplementation.ArgumentType |
static class |
ScalarFunctionImplementation.NullConvention |
static class |
ScalarFunctionImplementation.ScalarImplementationChoice |
Constructor and Description |
---|
ScalarFunctionImplementation(boolean nullable,
List<ScalarFunctionImplementation.ArgumentProperty> argumentProperties,
MethodHandle methodHandle,
boolean deterministic) |
ScalarFunctionImplementation(boolean nullable,
List<ScalarFunctionImplementation.ArgumentProperty> argumentProperties,
MethodHandle methodHandle,
Optional<MethodHandle> instanceFactory,
boolean deterministic) |
ScalarFunctionImplementation(List<ScalarFunctionImplementation.ScalarImplementationChoice> choices,
boolean deterministic)
Creates a ScalarFunctionImplementation consisting of one or more choices.
|
Modifier and Type | Method and Description |
---|---|
List<ScalarFunctionImplementation.ScalarImplementationChoice> |
getAllChoices() |
ScalarFunctionImplementation.ArgumentProperty |
getArgumentProperty(int argumentIndex) |
Optional<MethodHandle> |
getInstanceFactory() |
MethodHandle |
getMethodHandle() |
boolean |
isDeterministic() |
boolean |
isNullable() |
public ScalarFunctionImplementation(boolean nullable, List<ScalarFunctionImplementation.ArgumentProperty> argumentProperties, MethodHandle methodHandle, boolean deterministic)
public ScalarFunctionImplementation(boolean nullable, List<ScalarFunctionImplementation.ArgumentProperty> argumentProperties, MethodHandle methodHandle, Optional<MethodHandle> instanceFactory, boolean deterministic)
public ScalarFunctionImplementation(List<ScalarFunctionImplementation.ScalarImplementationChoice> choices, boolean deterministic)
All choices must have the same SQL signature, and are equivalent in what they do. The first choice is the default choice, which is the one used for legacy access methods. The default choice must be usable under any context. (e.g. it must not use BLOCK_POSITION convention.)
choices
- the list of choices, ordered from generic to specificpublic boolean isNullable()
public ScalarFunctionImplementation.ArgumentProperty getArgumentProperty(int argumentIndex)
public MethodHandle getMethodHandle()
public Optional<MethodHandle> getInstanceFactory()
public List<ScalarFunctionImplementation.ScalarImplementationChoice> getAllChoices()
public boolean isDeterministic()
Copyright © 2012–2019. All rights reserved.