Package ai.velr
Class StreamTx
java.lang.Object
ai.velr.StreamTx
- All Implemented Interfaces:
AutoCloseable,Iterable<Table>
Streaming result-table handle returned by
VelrTx.exec(String).
A query may produce zero or more result tables. Pull tables one at a time with
nextTable() or iterate over the stream. Closing the stream closes any still-open tables
produced by it.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this stream and any open tables produced by it.iterator()Return an iterator over remaining result tables.Pull the next result table.voidregisterChild(ai.velr.ChildHandle child) Driver-internal child-handle registration method.voidunregisterChild(ai.velr.ChildHandle child) Driver-internal child-handle unregistration method.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
nextTable
Pull the next result table.- Returns:
- next table, or
nullwhen the stream is exhausted
-
iterator
Return an iterator over remaining result tables. -
close
public void close()Close this stream and any open tables produced by it.- Specified by:
closein interfaceAutoCloseable
-
registerChild
public void registerChild(ai.velr.ChildHandle child) Driver-internal child-handle registration method. -
unregisterChild
public void unregisterChild(ai.velr.ChildHandle child) Driver-internal child-handle unregistration method.
-