Interface WorkerServer
- All Superinterfaces:
org.gwtproject.rpc.api.Server<WorkerServer,WorkerClient>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gwtproject.rpc.api.Server
org.gwtproject.rpc.api.Server.Connection -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRowsToInputTable(TableHandle tableHandle, RowValues[] rows, boolean allowEdits, org.gwtproject.rpc.api.Callback<Void, String> callback) Adds rows of data to an input table; values are serialized as arrays of arrays of columnId + stringValue tuples.voidaddTablesToInputTable(TableHandle tableHandle, TableHandle[] tablesToAdd, org.gwtproject.rpc.api.Callback<Void, String> callback) Add or delete tables from an input table.voidapplyParametersQuery(ScriptHandle script, int universeId, String widgetName, ParameterValue[] parameters, org.gwtproject.rpc.api.Callback<ApplyParametersResult, String> callback) Apply parameters to a parameterized queryvoidbatch(BatchTableRequest request, org.gwtproject.rpc.api.Callback<BatchTableResponse, String> callback) Takes up to many operations on many tables, or even sequential operations on a single table and performs the given table mutations in the most optimal sequence we can hack together.voidbindTableToVariable(TableHandle handle, String name, ScriptHandle scriptHandle, org.gwtproject.rpc.api.Callback<Void, String> callback) Binds a table to a variable name in the session scope.voidbyExternal(TableHandle tableHandle, boolean dropKeys, String[] keys, org.gwtproject.rpc.api.Callback<TableMapDeclaration, String> callback) voidcancelCommand(ExecutionHandle handle) voidchangeDocument(ScriptHandle handle, DidChangeTextDocumentParams params) voidcloseDocument(ScriptHandle handle, DidCloseTextDocumentParams params) voidcomboAggregate(TableHandle inputTableHandle, TableHandle resultHandle, ComboAggregateDescriptor comboAggregateDescriptor, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Run a aggregate operation on the given table.voidconstructSnapshotQuery(TableHandle table, RangeSet rows, BitSet columns, org.gwtproject.rpc.api.Callback<TableSnapshot, String> callback) No command for this one, just rewrap in com.illumon.iris.db.tables.remote.ConstructSnapshotQueryvoiddeleteTablesFromInputTable(TableHandle tableHandle, TableHandle[] tablesToDelete, org.gwtproject.rpc.api.Callback<Void, String> callback) voiddownsampleTable(TableHandle handle, TableHandle result, String dateCol, String[] valueCols, int pxCount, long[] zoomRange, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Reduces the given table to the minimum rows required to losslessly display its contents over the given number of pixels, columns, and specified range.voidemptyTable(TableHandle handle, long size, String[] columnNames, String[] columnTypes, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Create an empty table with the given column names and types.voidexecuteCommand(ExecutionHandle handle, String code, org.gwtproject.rpc.api.Callback<CommandResult, String> callback) voidfetchFigure(String figureName, org.gwtproject.rpc.api.Callback<FigureDescriptor, String> callback) voidfetchInputTable(TableHandle handle, org.gwtproject.rpc.api.Callback<InputTableDefinition, String> callback) Uses TableApplyQuery to get access to the database so we can call methods on InputTable class.voidfetchPandasScriptTable(TableHandle handle, ScriptHandle script, String name, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Fetches the Table for a Pandas Data Frame.voidfetchPandasTable(TableHandle handle, String name, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Fetches the Table for a Pandas Data Frame.voidfetchParameterizedQuery(String name, org.gwtproject.rpc.api.Callback<ParameterizedQueryDescriptor, String> callback) voidfetchScriptFigure(ScriptHandle script, String figureName, org.gwtproject.rpc.api.Callback<FigureDescriptor, String> callback) voidfetchScriptParameterizedQuery(ScriptHandle script, String name, org.gwtproject.rpc.api.Callback<ParameterizedQueryDescriptor, String> callback) voidfetchScriptTable(TableHandle handle, ScriptHandle script, String tableName, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) voidfetchTable(TableHandle handle, String tableName, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) No command for this one, just rewrap in com.illumon.iris.db.tables.remote.RemoteDatabase.FetchQueryvoidfetchTableAttributeAsTable(TableHandle handle, TableHandle resultHandle, String attributeName, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Examines the given table to see if it has another table as one of its attributes, and if so, exports it.voidfetchTableMap(String tableMapName, org.gwtproject.rpc.api.Callback<TableMapDeclaration, String> callback) Exports a handle for a TableMap, allowing more calls to be made to it.voidfetchTotalsTable(TableHandle handle, TableHandle resultHandle, String directive, String[] columns, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) If it exists, fetches the Totals Table associated with the given handle.voidfinishFigureFetch(TableHandle[] handles, int[] serverIds, org.gwtproject.rpc.api.Callback<InitialTableDefinition[], String> callback) voidgetCatalog(boolean systemNamespaces, boolean userNamespaces, String namespaceRegex, String tableRegex, org.gwtproject.rpc.api.Callback<Catalog, String> callback) Get a catalog of available tables.voidgetCatalogTable(TableHandle handle, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Get a catalog of available tables as a table (includes all system and user tables).voidgetColumnStatisticsForTable(TableHandle handle, String columnName, org.gwtproject.rpc.api.Callback<ColumnStatistics, String> callback) Gets statistics about a column from a table.voidgetCompletionItems(ScriptHandle handle, CompletionParams params, org.gwtproject.rpc.api.Callback<CompletionItem[], String> callback) voidgetIntradayPartitionsAsTable(TableHandle handle, String namespace, String name, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) voidgetMergedTableMap(TableMapHandle tableMapHandle, TableHandle tableHandle, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) voidgetTableMapKeys(TableMapHandle handle, org.gwtproject.rpc.api.Callback<ColumnData, String> callback) Returns all keys currently in a TableMapvoidgetTableMapStringArrayEntry(TableMapHandle tableMapHandle, TableHandle tableHandle, String[] key, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) voidgetTableMapStringEntry(TableMapHandle tableMapHandle, TableHandle tableHandle, String key, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) voidgetWorkerHeapInfo(org.gwtproject.rpc.api.Callback<WorkerHeapInfo, String> callback) Get the heap information from a worker (used memory, total memory, maximum memory).voidheadBy(TableHandle inputTableHandle, TableHandle resultHandle, long nRows, String[] groupByColumnSpecs, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Run the headBy table operation for the given group by columns on the given table.voidhistoricalTable(TableHandle handle, String namespace, String tableName, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Get a historical disk table by namespace and table name.voidintradayTable(TableHandle handle, String namespace, String tableName, String internalPartitionValue, boolean live, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Get an intraday disk table by namespace and table name.voidjoin(JoinDescriptor joinDescriptor, TableHandle resultHandle, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Returns the result of a table join operation.voidlazyUpdate(TableHandle inputTableHandle, TableHandle resultHandle, String[] columnSpecs, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Add columns to the given table using the given column specifications and the lazyUpdate table operation.voidlegacyConsoleSessionHeartbeat(int sessionId, org.gwtproject.rpc.api.Callback<Void, String> callback) voidmergeTables(TableHandle[] inputTableHandles, TableHandle resultHandle, String keyColumn, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Create a merged table from the given input tables.voidnewInputTable(TableHandle inputHandle, TableHandle resultHandle, String[] keyColumns, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Create an in-memory input table with key columns and data from the supplied table.voidnewTable(TableHandle handle, ColumnHolder[] columnHolders, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Create an in-memory table with the given columns and data.voidopenDocument(ScriptHandle handle, DidOpenTextDocumentParams params) voidpong()Initiates a call toWorkerClient.ping(), allows the server to know that the client is still there.voidreexport(TableHandle source, TableHandle target, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Force the server to re-export a given table.voidregister(int clientId, String service, ConnectToken authToken, org.gwtproject.rpc.api.Callback<ConnectionSuccess, String> callback) com.illumon.iris.db.tables.remotequery.RemoteQueryProcessor.ClientConnectionHandler#handleConnectionRegistration(com.illumon.iris.db.tables.remotequery.RemoteQueryProcessor.ClientState, com.fishlib.base.Command, java.lang.Object[]) com.illumon.iris.db.RemoteQueryCommandConstants#REGISTERvoidrelease(TableHandle handle) RemoteQueryCommandConstants.REMOTE_QUERY_RELEASE_REFERENCEvoidreleaseTableMap(TableMapHandle tableMapHandle) voidrequestMetrics(int clientId, boolean enable, org.gwtproject.rpc.api.Callback<Void, String> callback) Enable or disable metrics for a given worker.voidrollup(RollupTableRequest request, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Invokes Table.rollup with the given configuration, allowing the client to make treetable queries on the resulting handle.voidseekRow(TableHandle handle, long startingRow, String columnName, String valueType, String seekValue, boolean insensitive, boolean contains, boolean isBackward, org.gwtproject.rpc.api.Callback<Long, String> callback) Searches for a row, based on the given parameters.voidselect(TableHandle inputTableHandle, TableHandle resultHandle, String[] columnSpecs, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Select the given columns from the given table, bring the data fully into memory.voidselectDistinct(TableHandle handle, TableHandle resultHandle, String[] columnNames, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> c) Returns a new table definition with the unique tuples of the specified columnsvoidsnapshot(TableHandle leftTableHandle, TableHandle rightTableHandle, TableHandle resultHandle, boolean doInitialSnapshot, String[] stampColumns, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Invokes Table.snapshot with the given parameters.voidstartConsole(ScriptHandle handle, ConsoleSessionType config, org.gwtproject.rpc.api.Callback<ConsoleConnectionResult, String> callback) voidstopConsole(ScriptHandle handle) voidsubscribe(TableHandle handle, BitSet columns, boolean isViewport, org.gwtproject.rpc.api.Callback<Void, String> callback) Creates a subscription on a table, so that snapshots and viewports will be sent to the client as appropriate.voidvoidtailBy(TableHandle inputTableHandle, TableHandle resultHandle, long nRows, String[] groupByColumnSpecs, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Run the tailBy operation for the given group by columns on the given table.voidtimeTable(TableHandle handle, long startTimeNanos, long periodNanos, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Create a time table with the given start time and period.voidtreeSnapshotQuery(TableHandle handle, TreeTableRequest request, org.gwtproject.rpc.api.Callback<TreeTableResult, String> callback) Requests a snapshot of a treetable's data and state, based on the given configuration.voidtreeTable(TableHandle handle, TableHandle resultHandle, String idColumn, String parentColumn, boolean promoteOrphansToRoot, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> c) Invokes Table.treeTable with the given columns allowing the client to make treetable queries on the resulting handle.voidungroup(TableHandle inputTableHandle, TableHandle resultHandle, boolean nullFill, String[] columnsToUngroup, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Ungroup the given columns (all columns will be ungrouped if null is specified).voidunsubscribe(TableHandle table, org.gwtproject.rpc.api.Callback<Void, String> callback) Removes the subscription on this table handle.voidvoidupdate(TableHandle inputTableHandle, TableHandle resultHandle, String[] columnSpecs, org.gwtproject.rpc.api.Callback<InitialTableDefinition, String> callback) Add columns to the given table using the given column specifications and the update table operation.voidupdateSubscription(TableHandle table, TableSubscriptionRequest[] viewports, org.gwtproject.rpc.api.Callback<Void, String> callback) Alters the subscription to the given table to be the union of the given viewports, resulting in a snapshot containing the new rows and subsequent deltas as necessary.Methods inherited from interface org.gwtproject.rpc.api.Server
close, getClient, onClose, onError, onOpen, setClient
-
Method Details
-
getCatalog
void getCatalog(boolean systemNamespaces, boolean userNamespaces, String namespaceRegex, String tableRegex, org.gwtproject.rpc.api.Callback<Catalog, String> callback) Get a catalog of available tables. -
fetchTableMap
void fetchTableMap(String tableMapName, org.gwtproject.rpc.api.Callback<TableMapDeclaration, String> callback) Exports a handle for a TableMap, allowing more calls to be made to it. Additionally, this subscribes to updates from the server on added keys -
requestMetrics
void requestMetrics(int clientId, boolean enable, org.gwtproject.rpc.api.Callback<Void, String> callback) Enable or disable metrics for a given worker. -
pong
void pong()Initiates a call toWorkerClient.ping(), allows the server to know that the client is still there. -
fetchFigure
void fetchFigure(String figureName, org.gwtproject.rpc.api.Callback<FigureDescriptor, String> callback) -
fetchParameterizedQuery
void fetchParameterizedQuery(String name, org.gwtproject.rpc.api.Callback<ParameterizedQueryDescriptor, String> callback) -
getWorkerHeapInfo
Get the heap information from a worker (used memory, total memory, maximum memory).- Parameters:
callback- the callback for the result
-
subscribeToLogs
void subscribeToLogs() -
unsubscribeToLogs
void unsubscribeToLogs() -
legacyConsoleSessionHeartbeat