Package redis.clients.jedis.search
Class RediSearchUtil
java.lang.Object
redis.clients.jedis.search.RediSearchUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic Stringstatic StringescapeQuery(String query) static byte[]toByteArray(float[] input) x86 systems are little-endian and Java defaults to big-endian.static byte[]ToByteArray(float[] input) Deprecated.toStringMap(Map<String, Object> input) Jedis'hsetmethods do not supportObjects as values.toStringMap(Map<String, Object> input, boolean stringEscape) Jedis'hsetmethods do not supportObjects as values.static String
-
Field Details
-
ESCAPE_CHARS
-
-
Constructor Details
-
RediSearchUtil
private RediSearchUtil()
-
-
Method Details
-
toStringMap
Jedis'hsetmethods do not supportObjects as values. This method eases process of converting aMapwith Objects as values so that the returning Map can be set to ahsetmethod.- Parameters:
input- map with object value- Returns:
- map with string value
-
toStringMap
Jedis'hsetmethods do not supportObjects as values. This method eases process of converting aMapwith Objects as values so that the returning Map can be set to ahsetmethod.- Parameters:
input- map with object valuestringEscape- whether to escape the String objects- Returns:
- map with string value
-
toByteArray
public static byte[] toByteArray(float[] input) x86 systems are little-endian and Java defaults to big-endian. This causes mismatching query results when RediSearch is running in a x86 system. This method helps to convert concerned arrays.- Parameters:
input- float array- Returns:
- byte array
-
ToByteArray
Deprecated.UsetoByteArray(float[]). -
escape
-
escapeQuery
-
escape
-
unescape
-
toByteArray(float[]).