@Namespace(value="arrow::compute") @NoOffset @Properties(inherit=arrow.class) public class KernelContext extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
KernelContext(ExecContext exec_ctx) |
KernelContext(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ResizableResult |
Allocate(long nbytes)
\brief Allocate buffer from the context's memory pool.
|
ExecContext |
exec_context()
\brief Configuration related to function execution that is to be shared
across multiple kernels.
|
boolean |
HasError()
\brief Return true if an error has occurred.
|
MemoryPool |
memory_pool()
\brief The memory pool to use for allocations.
|
void |
ResetStatus()
\brief Clear any error status.
|
void |
SetState(KernelState state)
\brief Assign the active KernelState to be utilized for each stage of
kernel execution.
|
void |
SetStatus(Status status)
\brief Indicate that an error has occurred, to be checked by a exec caller
|
KernelState |
state() |
Status |
status()
\brief Return the current status of the context.
|
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 KernelContext(Pointer p)
Pointer(Pointer).public KernelContext(ExecContext exec_ctx)
@ByVal public ResizableResult Allocate(@Cast(value="int64_t") long nbytes)
public void SetStatus(@Const @ByRef Status status)
status - [in] a Status instance.
\note Will not overwrite a prior set Status, so we will have the first
error that occurred until ExecContext::ResetStatus is called.public void ResetStatus()
public void SetState(KernelState state)
public KernelState state()
public ExecContext exec_context()
public MemoryPool memory_pool()
Copyright © 2021. All rights reserved.