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
Modifier and TypeClassDescriptionfinal class
final class
final class
-
Field Summary
Fields inherited from interface io.deephaven.api.TableOperations
AGG_BY_PRESERVE_EMPTY_DEFAULT
Fields inherited from interface io.deephaven.api.TableOperationsDefaults
ZERO_LENGTH_COLUMNNAME_ARRAY, ZERO_LENGTH_FILTER_ARRAY
-
Method Summary
Modifier and TypeMethodDescriptionprotected TableSpec
adapt
(TableHandle rhs) protected TableHandle
void
await()
boolean
Causes the current thread to wait untilthis
is done, unless the thread is interrupted, ortimeout
elapses.void
void
close()
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.boolean
isDone()
The table proxy is done when the response from the server is done, which yields either a successful response or an error.boolean
The table proxy is successful when the response from the server indicates success.newRef()
pathId()
Get the path ID.response()
void
void
ticketId()
Get the ticket ID.Get the typed ticket.Methods inherited from class io.deephaven.qst.table.TableSpecAdapter
table
Methods inherited from class io.deephaven.api.TableOperationsAdapter
aggAllBy, aggBy, asOfJoin, delegate, dropColumns, exactJoin, head, join, join, lazyUpdate, naturalJoin, rangeJoin, reverse, select, selectDistinct, selectDistinct, snapshot, snapshotWhen, snapshotWhen, snapshotWhen, sort, tail, ungroup, update, updateBy, updateView, view, where, whereIn, whereNotIn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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, 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:HasExportId
Get the export ID.- Specified by:
exportId
in interfaceHasExportId
- Returns:
- the export ID
-
ticketId
Description copied from interface:HasTicketId
Get the ticket ID.- Specified by:
ticketId
in interfaceHasTicketId
- Returns:
- the ticket ID
-
typedTicket
Description copied from interface:HasTypedTicket
Get the typed ticket.- Specified by:
typedTicket
in interfaceHasTypedTicket
- Returns:
- the typed ticket
-
pathId
Description copied from interface:HasPathId
Get 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 untilthis
is done, unless the thread is interrupted, ortimeout
elapses.- Parameters:
timeout
- the timeout- Returns:
true
ifthis
has become is done andfalse
if thetimeout
has 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:
true
ifthis
is done- See Also:
-
isSuccessful
public boolean isSuccessful()The table proxy is successful when the response from the server indicates success.- Returns:
true
if the response from the server indicates success andfalse
if 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:
adapt
in classTableOperationsAdapter<TableHandle,
TableHandle, TableSpec, TableSpec>
-
adapt
- Specified by:
adapt
in classTableOperationsAdapter<TableHandle,
TableHandle, TableSpec, TableSpec>
-
close
public void close()Closes the underlying export.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-