public class GridH2QueryRequest extends Object implements Message, GridCacheQueryMarshallable
| Modifier and Type | Field and Description |
|---|---|
static int |
FLAG_DISTRIBUTED_JOINS
Map query will not destroy context until explicit query cancel request will be received because distributed join
requests can be received.
|
static int |
FLAG_ENFORCE_JOIN_ORDER
Remote map query executor will enforce join order for the received map queries.
|
static int |
FLAG_EXPLAIN
If it is an EXPLAIN command.
|
static int |
FLAG_LAZY
If lazy execution is enabled.
|
static int |
FLAG_REPLICATED
If it is a REPLICATED query.
|
static int |
FLAG_REPLICATED_AS_PARTITIONED
Whether to treat replicated as partitioned (for outer joins).
|
DIRECT_TYPE_SIZE| Constructor and Description |
|---|
GridH2QueryRequest()
Required by
Externalizable |
GridH2QueryRequest(GridH2QueryRequest req) |
public static final int FLAG_DISTRIBUTED_JOINS
public static final int FLAG_ENFORCE_JOIN_ORDER
public static final int FLAG_REPLICATED_AS_PARTITIONED
public static final int FLAG_EXPLAIN
public static final int FLAG_REPLICATED
public static final int FLAG_LAZY
public GridH2QueryRequest()
Externalizablepublic GridH2QueryRequest(GridH2QueryRequest req)
req - Request.@Nullable public @Nullable MvccSnapshot mvccSnapshot()
public GridH2QueryRequest mvccSnapshot(MvccSnapshot mvccSnapshot)
mvccSnapshot - MVCC snapshot version.this.public Object[] parameters()
public GridH2QueryRequest parameters(Object[] params)
params - Parameters.this.public GridH2QueryRequest tables(Collection<QueryTable> tbls)
tbls - Tables.this.public Collection<QueryTable> tables()
N.B.: Was used in AI 1.9 for snapshots. Unused at the moment, but should be kept for compatibility reasons.
public GridH2QueryRequest requestId(long reqId)
reqId - Request ID.this.public long requestId()
public GridH2QueryRequest caches(List<Integer> caches)
caches - Caches.this.public GridH2QueryRequest topologyVersion(AffinityTopologyVersion topVer)
topVer - Topology version.this.public AffinityTopologyVersion topologyVersion()
public GridH2QueryRequest partitions(Map<UUID,int[]> parts)
parts - Explicit partitions mapping.this.public int[] queryPartitions()
public GridH2QueryRequest queryPartitions(int[] qryParts)
qryParts - Query partitions.this.public GridH2QueryRequest pageSize(int pageSize)
pageSize - Page size.this.public int pageSize()
public GridH2QueryRequest queries(List<GridCacheSqlQuery> qrys)
qrys - SQL Queries.this.public List<GridCacheSqlQuery> queries()
public GridH2QueryRequest flags(int flags)
flags - Flags.this.public boolean isFlagSet(int flags)
flags - Flags to check.true If all the requested flags are set to true.public int timeout()
public GridH2QueryRequest timeout(int timeout)
timeout - New timeout.this.public boolean explicitTimeout()
true if query timeout is set explicitly.public GridH2QueryRequest explicitTimeout(boolean explicitTimeout)
explicitTimeout - Explicit timeout flag.this.public String schemaName()
public GridH2QueryRequest schemaName(String schemaName)
schemaName - Schema name.this.public GridH2SelectForUpdateTxDetails txDetails()
SELECT FOR UPDATE, or null if not applicable.public void txDetails(GridH2SelectForUpdateTxDetails txReq)
txReq - TX details holder for SELECT FOR UPDATE, or null if not applicable.public static int setDataPageScanEnabled(int flags,
Boolean dataPageScanEnabled)
flags - Flags.dataPageScanEnabled - true If data page scan enabled, false if not, and null if not set.public static int queryFlags(boolean distributedJoins,
boolean enforceJoinOrder,
boolean lazy,
boolean replicatedOnly,
boolean explain,
Boolean dataPageScanEnabled,
boolean treatReplicatedAsPartitioned)
public long maxMemory()
public GridH2QueryRequest maxMemory(long maxMem)
maxMem - Memory size in bytes.this for chaining.public Long runningQryId()
RunningQueryManager.public GridH2QueryRequest runningQryId(Long runningQryId)
RunningQueryManager.runningQryId - Running query id.this for chaining.@Nullable public @Nullable String label()
null if not set.public GridH2QueryRequest label(@Nullable @Nullable String label)
label - Query label.this for chaining.public Boolean isDataPageScanEnabled()
true If data page scan enabled, false if not, and null if not set.public static Boolean isDataPageScanEnabled(int flags)
flags - Flags.true If data page scan enabled, false if not, and null if not set.public void marshall(Marshaller m)
marshall in interface GridCacheQueryMarshallablepublic void unmarshall(Marshaller m, GridKernalContext ctx)
unmarshall in interface GridCacheQueryMarshallablepublic boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public short directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Messagepublic void onAckReceived()
onAckReceived in interface Message
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.17-p1 Release Date : November 27 2025