Class ConstructSnapshotQuery
java.lang.Object
com.illumon.iris.db.tables.remotequery.ContextAwareRemoteQuery<InitialSnapshot>
com.illumon.iris.db.tables.remote.ConstructSnapshotQuery
- All Implemented Interfaces:
RemoteQuery<InitialSnapshot>
,Serializable
public class ConstructSnapshotQuery extends ContextAwareRemoteQuery<InitialSnapshot>
A
ContextAwareRemoteQuery
that retrieves a snapshot of a table.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ConstructSnapshotQuery(int id, BitSet columns)
Create a query that will retrieve a snapshot of the table for the specified columns.ConstructSnapshotQuery(int id, BitSet columns, Index index)
Create a query that will retrieve a snapshot of the table for the specified columns and keys.ConstructSnapshotQuery(int id, BitSet columns, Index index, boolean isPositionSpace)
Create a query that will retrieve a snapshot of the table for the specified columns and keys. -
Method Summary
Modifier and Type Method Description InitialSnapshot
execute(Database database)
Execute a query on a remote host.Methods inherited from class com.illumon.iris.db.tables.remotequery.ContextAwareRemoteQuery
getClient, getLog, getRemoteQueryProcessor, getUserContext, initializeContext, initializeContext
-
Constructor Details
-
ConstructSnapshotQuery
Create a query that will retrieve a snapshot of the table for the specified columns.- Parameters:
id
- the table IDcolumns
- a bitset of columns to include in the snapshot
-
ConstructSnapshotQuery
Create a query that will retrieve a snapshot of the table for the specified columns and keys.- Parameters:
id
- the table IDcolumns
- a bitset of columns to include in the snapshotindex
- an index of keys to include in the snapshot
-
ConstructSnapshotQuery
Create a query that will retrieve a snapshot of the table for the specified columns and keys.- Parameters:
id
- the table IDcolumns
- a bitset of columns to include in the snapshotindex
- an index of keys to include in the snapshotisPositionSpace
- set to true if the index is in position space, not key space.
-
-
Method Details
-
execute
Description copied from interface:RemoteQuery
Execute a query on a remote host.- Parameters:
database
- database to use for execution.- Returns:
- result of the query.
-