@Name(value="arrow::Future<std::shared_ptr<arrow::io::InputStream> >") @Properties(inherit=arrow.class) public class InputStreamFuture extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
InputStreamFuture() |
InputStreamFuture(InputStream val)
\brief Implicit constructor to create a finished future from a value
|
InputStreamFuture(InputStreamResult res)
\brief Implicit constructor to create a future from a Result, enabling use
of macros like ARROW_ASSIGN_OR_RAISE.
|
InputStreamFuture(long size)
Native array allocator.
|
InputStreamFuture(Pointer p)
Pointer cast constructor.
|
InputStreamFuture(Status s)
\brief Implicit constructor to create a future from a Status, enabling use
of macros like ARROW_RETURN_NOT_OK.
|
| Modifier and Type | Method and Description |
|---|---|
Future |
asFuture()
\brief Future
|
InputStreamFuture |
getPointer(long i) |
boolean |
is_finished()
\brief Whether the Future is finished
A false return value is only indicative, as the Future can complete
concurrently.
|
boolean |
is_valid() |
static InputStreamFuture |
Make()
\brief Producer API: instantiate a valid Future
The Future's state is initialized with PENDING.
|
static InputStreamFuture |
MakeFinished(InputStreamResult res)
\brief Producer API: instantiate a finished Future
|
void |
MarkFinished(InputStreamResult res)
\brief Producer API: mark Future finished
The Future's result is set to
res. |
InputStreamResult |
MoveResult()
\brief Returns an rvalue to the result.
|
InputStreamFuture |
position(long position) |
InputStreamResult |
result()
\brief Wait for the Future to complete and return its Result
|
arrow.FutureState |
state()
\brief Return the Future's current state
A return value of PENDING is only indicative, as the Future can complete
concurrently.
|
Status |
status()
\brief Wait for the Future to complete and return its Status
|
void |
Wait()
\brief Wait for the Future to complete
|
boolean |
Wait(double seconds)
\brief Wait for the Future to complete, or for the timeout to expire
true is returned if the Future completed, false if the timeout expired. |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic InputStreamFuture(Pointer p)
Pointer(Pointer).public InputStreamFuture(long size)
Pointer.position(long).public InputStreamFuture()
public InputStreamFuture(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::io::InputStream>"}) InputStream val)
public InputStreamFuture(@ByVal InputStreamResult res)
public InputStreamFuture position(long position)
public InputStreamFuture getPointer(long i)
getPointer in class Pointerpublic arrow.FutureState state()
@Cast(value="bool") public boolean is_finished()
@Const @ByRef public InputStreamResult result()
@ByRef(value=true) public InputStreamResult MoveResult()
@Const @ByRef public Status status()
@ByVal @Name(value="operator arrow::Future<>") public Future asFuture()
public void Wait()
@Cast(value="bool") public boolean Wait(double seconds)
true is returned if the Future completed, false if the timeout expired.
Note a false value is only indicative, as the Future can complete
concurrently.public void MarkFinished(@ByVal InputStreamResult res)
res.@ByVal public static InputStreamFuture Make()
@ByVal public static InputStreamFuture MakeFinished(@ByVal InputStreamResult res)
Copyright © 2021. All rights reserved.