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 VisorQueryField[] |
SCAN_COL_NAMES
Columns for SCAN queries.
|
static String |
SCAN_QRY_NAME
Prefix for node local key for SCAN queries.
|
static String |
SQL_QRY_NAME
Prefix for node local key for SQL queries.
|
| Constructor and Description |
|---|
VisorQueryUtils() |
| Modifier and Type | Method and Description |
|---|---|
static IgniteBiTuple<List<Object[]>,Map.Entry<Object,Object>> |
fetchScanQueryRows(CacheQueryFuture<Map.Entry<Object,Object>> fut,
Map.Entry<Object,Object> savedNext,
int pageSize)
Fetch rows from SCAN query future.
|
static IgniteBiTuple<List<Object[]>,List<?>> |
fetchSqlQueryRows(CacheQueryFuture<List<?>> fut,
List<?> savedNext,
int pageSize)
Collects rows from sql query future, first time creates meta and column names arrays.
|
public static final Integer RMV_DELAY
public static final String SQL_QRY_NAME
public static final String SCAN_QRY_NAME
public static final VisorQueryField[] SCAN_COL_NAMES
public static IgniteBiTuple<List<Object[]>,Map.Entry<Object,Object>> fetchScanQueryRows(CacheQueryFuture<Map.Entry<Object,Object>> fut, Map.Entry<Object,Object> savedNext, int pageSize) throws IgniteCheckedException
fut - Query future to fetch rows from.savedNext - Last processed element from future.pageSize - Number of rows to fetch.IgniteCheckedExceptionpublic static IgniteBiTuple<List<Object[]>,List<?>> fetchSqlQueryRows(CacheQueryFuture<List<?>> fut, List<?> savedNext, int pageSize) throws IgniteCheckedException
fut - Query future to fetch rows from.savedNext - Last processed element from future.pageSize - Number of rows to fetch.IgniteCheckedException
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015