Class 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 Details

    • ConstructSnapshotQuery

      public ConstructSnapshotQuery​(int id, BitSet columns)
      Create a query that will retrieve a snapshot of the table for the specified columns.
      Parameters:
      id - the table ID
      columns - a bitset of columns to include in the snapshot
    • ConstructSnapshotQuery

      public ConstructSnapshotQuery​(int id, BitSet columns, Index index)
      Create a query that will retrieve a snapshot of the table for the specified columns and keys.
      Parameters:
      id - the table ID
      columns - a bitset of columns to include in the snapshot
      index - an index of keys to include in the snapshot
    • ConstructSnapshotQuery

      public 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.
      Parameters:
      id - the table ID
      columns - a bitset of columns to include in the snapshot
      index - an index of keys to include in the snapshot
      isPositionSpace - set to true if the index is in position space, not key space.
  • Method Details

    • execute

      public InitialSnapshot execute​(Database database)
      Description copied from interface: RemoteQuery
      Execute a query on a remote host.
      Parameters:
      database - database to use for execution.
      Returns:
      result of the query.