@Namespace(value="arrow::compute") @NoOffset @Properties(inherit=arrow.class) public class Function extends Pointer
| Modifier and Type | Class and Description |
|---|---|
static class |
Function.Kind
\brief The kind of function, which indicates in what contexts it is
valid for use.
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
Function(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Arity |
arity()
\brief Contains the number of arguments the function requires, or if the
function accepts variable numbers of arguments.
|
FunctionOptions |
default_options()
\brief Returns a the default options for this function.
|
KernelResult |
DispatchBest(ValueDescrVector values)
\brief Return a best-match kernel that can execute the function given the argument
types, after implicit casts are applied.
|
KernelResult |
DispatchExact(ValueDescrVector values)
\brief Return a kernel that can execute the function given the exact
argument types (without implicit type casts or scalar->array promotions).
|
FunctionDoc |
doc()
\brief Return the function documentation
|
DatumResult |
Execute(DatumVector args,
FunctionOptions options,
ExecContext ctx)
\brief Execute the function eagerly with the passed input arguments with
kernel dispatch, batch iteration, and memory allocation details taken
care of.
|
Function.Kind |
kind()
\brief The kind of kernel, which indicates in what contexts it is valid
for use.
|
String |
name()
\brief The name of the kernel.
|
int |
num_kernels()
\brief Returns the number of registered kernels for this function.
|
Status |
Validate() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic Function(Pointer p)
Pointer(Pointer).@StdString public String name()
public Function.Kind kind()
@Const @ByRef public Arity arity()
@Const @ByRef public FunctionDoc doc()
public int num_kernels()
@ByVal @Cast(value="arrow::Result<const arrow::compute::Kernel*>*") public KernelResult DispatchExact(@Const @ByRef ValueDescrVector values)
@ByVal @Cast(value="arrow::Result<const arrow::compute::Kernel*>*") public KernelResult DispatchBest(ValueDescrVector values)
values - [in,out] Argument types. An element may be modified to indicate that
the returned kernel only approximately matches the input value descriptors; callers
are responsible for casting inputs to the type and shape required by the kernel.@ByVal public DatumResult Execute(@Const @ByRef DatumVector args, @Const FunctionOptions options, ExecContext ctx)
options pointer is null, then default_options() will be used.
This function can be overridden in subclasses.@Const public FunctionOptions default_options()
Copyright © 2021. All rights reserved.