public class RedisUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
MAX_ROWS_FOR_PAGINATION |
static int |
REDIS_DEFAULT_AGGREGATION_MAX_RANGE_DECOMPOSITION |
static int |
REDIS_DEFAULT_MAX_RANGE_DECOMPOSITION |
| Constructor and Description |
|---|
RedisUtils() |
| Modifier and Type | Method and Description |
|---|---|
static RedisMapWrapper |
getDataIndexMap(org.redisson.api.RedissonClient client,
RedisOptions.Compression compression,
String namespace,
String typeName,
boolean visibilityEnabled) |
static org.redisson.api.RScoredSortedSet<org.locationtech.geowave.core.store.entities.GeoWaveMetadata> |
getMetadataSet(org.redisson.api.RedissonClient client,
RedisOptions.Compression compression,
String namespace,
org.locationtech.geowave.core.store.operations.MetadataType metadataType,
boolean visibilityEnabled) |
static Set<org.locationtech.geowave.core.index.ByteArray> |
getPartitions(org.redisson.api.RedissonClient client,
String setNamePrefix) |
static RedisScoredSetWrapper<GeoWaveRedisPersistedRow> |
getRowSet(org.redisson.api.RedissonClient client,
RedisOptions.Compression compression,
String setName,
boolean requiresTimestamp,
boolean visibilityEnabled) |
static RedisScoredSetWrapper<GeoWaveRedisPersistedRow> |
getRowSet(org.redisson.api.RedissonClient client,
RedisOptions.Compression compression,
String setNamePrefix,
byte[] partitionKey,
boolean requiresTimestamp,
boolean visibilityEnabled) |
static RedisScoredSetWrapper<GeoWaveRedisPersistedRow> |
getRowSet(org.redisson.api.RedissonClient client,
RedisOptions.Compression compression,
String namespace,
String typeName,
String indexName,
byte[] partitionKey,
boolean requiresTimestamp,
boolean visibilityEnabled) |
static String |
getRowSetName(String setNamePrefix,
byte[] partitionKey) |
static String |
getRowSetName(String namespace,
String typeName,
String indexName,
byte[] partitionKey) |
static String |
getRowSetPrefix(String namespace,
String typeName,
String indexName) |
static double |
getScore(byte[] byteArray) |
static byte[] |
getSortKey(double score) |
static Iterator<org.locationtech.geowave.core.store.entities.GeoWaveMetadata> |
groupByIds(Iterable<org.locationtech.geowave.core.store.entities.GeoWaveMetadata> result) |
static Iterator<org.redisson.client.protocol.ScoredEntry<GeoWaveRedisPersistedRow>> |
groupByRow(Iterator<org.redisson.client.protocol.ScoredEntry<GeoWaveRedisPersistedRow>> result,
boolean sortByTime) |
static org.apache.commons.lang3.tuple.Pair<Boolean,Boolean> |
isGroupByRowAndIsSortByTime(org.locationtech.geowave.core.store.operations.RangeReaderParams<?> readerParams,
short adapterId) |
static boolean |
isSortByKeyRequired(org.locationtech.geowave.core.store.operations.RangeReaderParams<?> params) |
static boolean |
isSortByTime(org.locationtech.geowave.core.store.adapter.InternalDataAdapter<?> adapter) |
static Iterator<org.locationtech.geowave.core.store.entities.GeoWaveRow> |
sortBySortKey(Iterator<org.locationtech.geowave.core.store.entities.GeoWaveRow> it) |
protected static final int MAX_ROWS_FOR_PAGINATION
public static int REDIS_DEFAULT_MAX_RANGE_DECOMPOSITION
public static int REDIS_DEFAULT_AGGREGATION_MAX_RANGE_DECOMPOSITION
public static org.redisson.api.RScoredSortedSet<org.locationtech.geowave.core.store.entities.GeoWaveMetadata> getMetadataSet(org.redisson.api.RedissonClient client,
RedisOptions.Compression compression,
String namespace,
org.locationtech.geowave.core.store.operations.MetadataType metadataType,
boolean visibilityEnabled)
public static String getRowSetPrefix(String namespace, String typeName, String indexName)
public static RedisScoredSetWrapper<GeoWaveRedisPersistedRow> getRowSet(org.redisson.api.RedissonClient client, RedisOptions.Compression compression, String setNamePrefix, byte[] partitionKey, boolean requiresTimestamp, boolean visibilityEnabled)
public static String getRowSetName(String namespace, String typeName, String indexName, byte[] partitionKey)
public static RedisMapWrapper getDataIndexMap(org.redisson.api.RedissonClient client, RedisOptions.Compression compression, String namespace, String typeName, boolean visibilityEnabled)
public static RedisScoredSetWrapper<GeoWaveRedisPersistedRow> getRowSet(org.redisson.api.RedissonClient client, RedisOptions.Compression compression, String setName, boolean requiresTimestamp, boolean visibilityEnabled)
public static RedisScoredSetWrapper<GeoWaveRedisPersistedRow> getRowSet(org.redisson.api.RedissonClient client, RedisOptions.Compression compression, String namespace, String typeName, String indexName, byte[] partitionKey, boolean requiresTimestamp, boolean visibilityEnabled)
public static double getScore(byte[] byteArray)
public static byte[] getSortKey(double score)
public static Set<org.locationtech.geowave.core.index.ByteArray> getPartitions(org.redisson.api.RedissonClient client, String setNamePrefix)
public static Iterator<org.locationtech.geowave.core.store.entities.GeoWaveMetadata> groupByIds(Iterable<org.locationtech.geowave.core.store.entities.GeoWaveMetadata> result)
public static Iterator<org.redisson.client.protocol.ScoredEntry<GeoWaveRedisPersistedRow>> groupByRow(Iterator<org.redisson.client.protocol.ScoredEntry<GeoWaveRedisPersistedRow>> result, boolean sortByTime)
public static boolean isSortByTime(org.locationtech.geowave.core.store.adapter.InternalDataAdapter<?> adapter)
public static boolean isSortByKeyRequired(org.locationtech.geowave.core.store.operations.RangeReaderParams<?> params)
public static Iterator<org.locationtech.geowave.core.store.entities.GeoWaveRow> sortBySortKey(Iterator<org.locationtech.geowave.core.store.entities.GeoWaveRow> it)
Copyright © 2013–2020. All rights reserved.