Package io.deephaven.client.impl
Class TableHandle
java.lang.Object
io.deephaven.api.TableOperationsAdapter<TOPS,TABLE,TableSpec,TableSpec>
io.deephaven.qst.table.TableSpecAdapter<TableHandle,TableHandle>
io.deephaven.client.impl.TableHandle
- All Implemented Interfaces:
TableOperations<TableHandle,,TableHandle> TableOperationsDefaults<TableHandle,,TableHandle> HasExportId,HasPathId,HasTicketId,HasTypedTicket,Closeable,AutoCloseable
public final class TableHandle
extends TableSpecAdapter<TableHandle,TableHandle>
implements HasExportId, Closeable
A table handle implements
TableOperations such that each the initial table handle and
derived table handles are managed as exports.
A table handle may only be combined with other table handles from the same session.
A table handle throws TableHandle.UncheckedInterruptedException and TableHandle.UncheckedTableHandleException on further
TableOperations.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classfinal classfinal class -
Field Summary
Fields inherited from interface io.deephaven.api.TableOperations
AGG_BY_PRESERVE_EMPTY_DEFAULTFields inherited from interface io.deephaven.api.TableOperationsDefaults
ZERO_LENGTH_COLUMNNAME_ARRAY, ZERO_LENGTH_FILTER_ARRAY -
Method Summary
Modifier and TypeMethodDescriptionprotected TableSpecadapt(TableHandle rhs) protected TableHandlevoidawait()booleanCauses the current thread to wait untilthisis done, unless the thread is interrupted, ortimeoutelapses.voidvoidclose()Closes the underlying export.error()The table handle has an error when the response from the server indicates an error.export()exportId()Get the export ID.booleanisDone()The table proxy is done when the response from the server is done, which yields either a successful response or an error.booleanThe table proxy is successful when the response from the server indicates success.newRef()pathId()Get the path ID.response()voidvoidticketId()Get the ticket ID.Get the typed ticket.Methods inherited from class io.deephaven.qst.table.TableSpecAdapter
tableMethods inherited from class io.deephaven.api.TableOperationsAdapter
aggAllBy, aggBy, asOfJoin, delegate, dropColumns, exactJoin, head, join, join, lazyUpdate, naturalJoin, rangeJoin, reverse, select, selectDistinct, selectDistinct, slice, snapshot, snapshotWhen, snapshotWhen, snapshotWhen, sort, tail, ungroup, update, updateBy, updateView, view, where, whereIn, whereNotInMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.api.TableOperationsDefaults
absSumBy, absSumBy, absSumBy, absSumBy, aggAllBy, aggAllBy, aggAllBy, aggBy, aggBy, aggBy, aggBy, aggBy, aggBy, aggBy, aj, aj, avgBy, avgBy, avgBy, avgBy, countBy, countBy, countBy, countBy, dropColumns, dropColumns, exactJoin, exactJoin, firstBy, firstBy, firstBy, firstBy, groupBy, groupBy, groupBy, join, join, join, lastBy, lastBy, lastBy, lastBy, lazyUpdate, maxBy, maxBy, maxBy, maxBy, medianBy, medianBy, medianBy, medianBy, minBy, minBy, minBy, minBy, naturalJoin, naturalJoin, naturalJoin, naturalJoin, naturalJoin, raj, raj, rangeJoin, select, select, selectDistinct, sort, sortDescending, stdBy, stdBy, stdBy, stdBy, sumBy, sumBy, sumBy, sumBy, ungroup, ungroup, ungroup, ungroup, update, updateBy, updateBy, updateBy, updateBy, updateBy, updateBy, updateBy, updateBy, updateView, varBy, varBy, varBy, varBy, view, wavgBy, wavgBy, wavgBy, wavgBy, where, whereIn, whereNotIn, wsumBy, wsumBy, wsumBy, wsumBy
-
Method Details
-
exportId
Description copied from interface:HasExportIdGet the export ID.- Specified by:
exportIdin interfaceHasExportId- Returns:
- the export ID
-
ticketId
Description copied from interface:HasTicketIdGet the ticket ID.- Specified by:
ticketIdin interfaceHasTicketId- Returns:
- the ticket ID
-
typedTicket
Description copied from interface:HasTypedTicketGet the typed ticket.- Specified by:
typedTicketin interfaceHasTypedTicket- Returns:
- the typed ticket
-
pathId
Description copied from interface:HasPathIdGet the path ID. -
newRef
-
export
-
await
- Throws:
InterruptedException- if the current thread is interrupted while waiting
-
awaitUnchecked
public void awaitUnchecked() -
await
Causes the current thread to wait untilthisis done, unless the thread is interrupted, ortimeoutelapses.- Parameters:
timeout- the timeout- Returns:
trueifthishas become is done andfalseif thetimeouthas elapsed- Throws:
InterruptedException- if the current thread is interrupted while waiting
-
isDone
public boolean isDone()The table proxy is done when the response from the server is done, which yields either a successful response or an error.Note: the table proxy can create further derived table proxies before being done.
- Returns:
trueifthisis done- See Also:
-
isSuccessful
public boolean isSuccessful()The table proxy is successful when the response from the server indicates success.- Returns:
trueif the response from the server indicates success andfalseif the response indicates it was not successful or there has been no response yet- See Also:
-
response
-
error
The table handle has an error when the response from the server indicates an error.- Returns:
- the error, if any
- See Also:
-
throwOnError
- Throws:
TableHandle.TableHandleException
-
throwOnErrorUnchecked
public void throwOnErrorUnchecked() -
adapt
- Specified by:
adaptin classTableOperationsAdapter<TableHandle,TableHandle, TableSpec, TableSpec>
-
adapt
- Specified by:
adaptin classTableOperationsAdapter<TableHandle,TableHandle, TableSpec, TableSpec>
-
close
public void close()Closes the underlying export.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-