public class VisorQueryUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Integer |
RMV_DELAY
How long to store future with query in node local map: 5 minutes.
|
static List<VisorQueryField> |
SCAN_COL_NAMES
Columns for SCAN queries.
|
| Constructor and Description |
|---|
VisorQueryUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
binaryToString(BinaryObject obj)
Convert Binary object to string.
|
static Object |
convertValue(Object original)
Convert object that can be passed to client.
|
static List<Object[]> |
fetchQueryRows(Iterator itr,
String qryId,
int pageSize)
Fetch rows from query cursor.
|
static List<Object[]> |
fetchScanQueryRows(Iterator itr,
int pageSize)
Fetch rows from SCAN query future.
|
static List<Object[]> |
fetchSqlQueryRows(Iterator itr,
int pageSize)
Collects rows from sql query future, first time creates meta and column names arrays.
|
static VisorQueryHolder |
getQueryHolder(IgniteEx ignite,
String qryId)
Get holder for query or throw exception if not found.
|
static void |
removeQueryHolder(IgniteEx ignite,
String qryId)
Remove query holder from local storage for query with specified ID and cancel query if it is in progress.
|
static void |
scheduleQueryHolderRemoval(IgniteEx ignite,
String qryId)
Schedule clearing of query context by timeout.
|
static void |
scheduleQueryStart(IgniteEx ignite,
VisorQueryHolder holder,
VisorQueryTaskArg arg,
GridQueryCancel cancel)
Schedule start of SQL query execution.
|
static void |
scheduleScanStart(IgniteEx ignite,
VisorQueryHolder holder,
VisorScanQueryTaskArg arg)
Schedule start of SCAN query execution.
|
public static final Integer RMV_DELAY
public static final List<VisorQueryField> SCAN_COL_NAMES
public static List<Object[]> fetchScanQueryRows(Iterator itr, int pageSize)
itr - Result set iterator.pageSize - Number of rows to fetch.public static String binaryToString(BinaryObject obj)
obj - Binary object.public static Object convertValue(Object original)
original - Source object.public static List<Object[]> fetchSqlQueryRows(Iterator itr, int pageSize)
itr - Result set iterator.pageSize - Number of rows to fetch.public static VisorQueryHolder getQueryHolder(IgniteEx ignite, String qryId) throws IgniteException
ignite - IgniteEx instance.qryId - Query ID to get holder.IgniteException - When holder is not found.public static void removeQueryHolder(IgniteEx ignite, String qryId)
ignite - IgniteEx instance.qryId - Query ID to get holder.public static List<Object[]> fetchQueryRows(Iterator itr, String qryId, int pageSize)
itr - Result set iterator.qryId - Query ID.pageSize - Page size.public static void scheduleQueryStart(IgniteEx ignite, VisorQueryHolder holder, VisorQueryTaskArg arg, GridQueryCancel cancel)
ignite - IgniteEx instance.holder - Query holder object.arg - Query task argument with query properties.cancel - Object to cancel query.public static void scheduleScanStart(IgniteEx ignite, VisorQueryHolder holder, VisorScanQueryTaskArg arg)
ignite - IgniteEx instance.holder - Query holder object.arg - Query task argument with query properties.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021