public class RedisUtilMethods extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
KEY_VALUE_OUTPUT_ARRAY_GLOOP_DOC |
protected static String |
KEY_VALUE_OUTPUT_GLOOP_DOC |
protected static String |
MAP_ARRAY_GLOOP_DOC |
protected static String |
MAP_OUTPUT_ARRAY_GLOOP_DOC |
static String |
SCAN_ARGS_GLOOP_DOC |
Constructor and Description |
---|
RedisUtilMethods(io.toro.martini.database.DataSourceManager dataSourceManager) |
Modifier and Type | Method and Description |
---|---|
static Map<Object,Object> |
getGloopModelAsMap(io.toro.gloop.object.property.GloopModel redisMap) |
static List |
getKeyScanCursorKeys(io.lettuce.core.KeyScanCursor keyScanCursor)
Gets a KeyScanCursor key list
|
static io.toro.gloop.object.property.GloopModel |
getKeyValueAsGloopModel(io.lettuce.core.KeyValue redisKeyValue) |
static io.toro.gloop.object.property.GloopModel |
getKeyValuesAsGloopModel(List<io.lettuce.core.KeyValue> redisKeyValues) |
static io.toro.gloop.object.property.GloopModel |
getMapAsGloopModel(Map<Object,Object> map) |
static Map |
getMapScanCursorMap(io.lettuce.core.MapScanCursor mapScanCursor)
Gets a MapScanCursor map
|
static io.toro.gloop.object.property.GloopModel |
getMapScanCursorMapAsGloopModel(io.lettuce.core.MapScanCursor mapScanCursor)
Gets a MapScanCursor map, as a GloopModel
|
static String |
getScanCursorId(io.lettuce.core.ScanCursor scanCursor)
Gets a scanCursor id
|
static List<io.lettuce.core.ScoredValue> |
getScoredValueScanCursorValues(io.lettuce.core.ScoredValueScanCursor scoredValueScanCursor)
Gets a ScoredValueScanCursor score list
|
static io.toro.gloop.object.property.GloopModel |
getScoredValueScanCursorValuesAsGloopModel(io.lettuce.core.ScoredValueScanCursor scoredValueScanCursor)
Gets a ScoredValueScanCursor score list
|
static long |
getStreamScanCursorCount(io.lettuce.core.StreamScanCursor streamScanCursor)
Gets a StreamScanCursor count
|
static List |
getValueScanCursorValues(io.lettuce.core.ValueScanCursor valueScanCursor)
Gets a ValueScanCursor value list
|
protected static io.lettuce.core.ScanArgs |
gloopModelToScanArgs(io.toro.gloop.object.property.GloopModel scanArgs) |
static boolean |
isScanCursorFinished(io.lettuce.core.ScanCursor scanCursor)
Checks whether a StreamScanCursor is marked as finished
|
public static final String SCAN_ARGS_GLOOP_DOC
protected static final String KEY_VALUE_OUTPUT_ARRAY_GLOOP_DOC
protected static final String KEY_VALUE_OUTPUT_GLOOP_DOC
protected static final String MAP_ARRAY_GLOOP_DOC
protected static final String MAP_OUTPUT_ARRAY_GLOOP_DOC
@Autowired RedisUtilMethods(io.toro.martini.database.DataSourceManager dataSourceManager)
protected static io.lettuce.core.ScanArgs gloopModelToScanArgs(@GloopObjectParameter(value="scanArgs{\n limit:long:Limit the scan by count:false\n match::Set the match filter:false\n}\n") io.toro.gloop.object.property.GloopModel scanArgs)
@GloopParameter(name="redisStreamScanCursorFinished") public static boolean isScanCursorFinished(@GloopParameter(allowNull=false) io.lettuce.core.ScanCursor scanCursor)
scanCursor
- The StreamScanCursor to check@GloopParameter(name="redisStreamScanCursorCount") public static long getStreamScanCursorCount(@GloopParameter(allowNull=false) io.lettuce.core.StreamScanCursor streamScanCursor)
streamScanCursor
- The StreamScanCursor to get the count from@GloopParameter(name="redisStreamScanCursorId") public static String getScanCursorId(@GloopParameter(allowNull=false) io.lettuce.core.ScanCursor scanCursor)
scanCursor
- The StreamScanCursor to get the id from@GloopParameter(name="redisMapScanCursorMap") public static Map getMapScanCursorMap(@GloopParameter(allowNull=false) io.lettuce.core.MapScanCursor mapScanCursor)
mapScanCursor
- The MapScanCursor to get the map from@GloopObjectParameter(value="output{\n redisMapCursorModel*{\n }\n}") public static io.toro.gloop.object.property.GloopModel getMapScanCursorMapAsGloopModel(@GloopParameter(allowNull=false) io.lettuce.core.MapScanCursor mapScanCursor)
mapScanCursor
- The MapScanCursor to get the map from as a @link GloopModel@GloopParameter(name="redisKeyScanCursorKeys") public static List getKeyScanCursorKeys(@GloopParameter(allowNull=false) io.lettuce.core.KeyScanCursor keyScanCursor)
keyScanCursor
- The KeyScanCursor to get the keys from@GloopParameter(name="redisValueScanCursorValues") public static List getValueScanCursorValues(@GloopParameter(allowNull=false) io.lettuce.core.ValueScanCursor valueScanCursor)
valueScanCursor
- The VaueScanCursor to get the values from@GloopParameter(name="redisValueScanCursorValues") public static List<io.lettuce.core.ScoredValue> getScoredValueScanCursorValues(@GloopParameter(allowNull=false) io.lettuce.core.ScoredValueScanCursor scoredValueScanCursor)
scoredValueScanCursor
- The ScoredValueScanCursor to get the scores from@GloopObjectParameter(value="output{\n scoredValues[]{\n value:object\n score:double\n }\n}") public static io.toro.gloop.object.property.GloopModel getScoredValueScanCursorValuesAsGloopModel(@GloopParameter(allowNull=false) io.lettuce.core.ScoredValueScanCursor scoredValueScanCursor)
scoredValueScanCursor
- The ScoredValueScanCursor to get the scores from@GloopObjectParameter(value="output{\n redisKeyValue{\n key:object\n value:object\n }\n}") public static io.toro.gloop.object.property.GloopModel getKeyValueAsGloopModel(@GloopParameter(allowNull=false) io.lettuce.core.KeyValue redisKeyValue)
@GloopObjectParameter(value="output{\n redisKeyValues[]{\n key:object\n value:object\n }\n}") public static io.toro.gloop.object.property.GloopModel getKeyValuesAsGloopModel(@GloopParameter(allowNull=false) List<io.lettuce.core.KeyValue> redisKeyValues)
@GloopObjectParameter(value="output{\nredisMap[]{\n name:object\n value:object\n}\n}") public static io.toro.gloop.object.property.GloopModel getMapAsGloopModel(@GloopParameter(allowNull=false) Map<Object,Object> map)
Copyright © 2020. All rights reserved.