クラス Converters
java.lang.ObjectSE
org.springframework.data.redis.connection.convert.Converters
- 既知の直属サブクラス
LettuceConverters
一般的な型コンバーター。
- 作成者:
- Jennifer Hickey, Thomas Darimont, Mark Paluch, Christoph Strobl, daihuabin, John Blum, Sorokin Evgeniy
コンストラクターのサマリー
コンストラクターメソッドのサマリー
修飾子と型メソッド説明static <V> Converter<GeoResults<RedisGeoCommands.GeoLocation<byte[]>>,
GeoResults<RedisGeoCommands.GeoLocation<V>>> deserializingGeoResultsConverter
(RedisSerializer<V> serializer) GeoResults
を逆直列化できるConverter
。distanceConverterForMetric
(Metric metric) static <K,
V> Map.EntrySE<K, V> entryOf
(K key, V value) static <T> Converter<T,
T> 常に入力引数を返すConverter
を返します。static Converter<ListSE<StringSE>,
PropertiesSE> static <K,
V> Converter<MapSE<K, V>, PropertiesSE> Map
SE からProperties
SE に変換するコンバーターを返します。static long
millisecondsToTimeUnit
(long milliseconds, TimeUnitSE targetUnit) milliseconds
を指定されたTimeUnit
SE に変換します。millisecondsToTimeUnit
(TimeUnitSE timeUnit) ミリ秒から指定されたTimeUnit
SE に変換する新しいConverter
を作成します。static <T> T
byte[]
とByteBuffer
SE のベストエフォート変換を適用して、何かのリストなどのかなり一般的な Redis レスポンスを意味のある構造に解析します。static ObjectSE
sourcePath と typeHintMap に基づいてbyte[]
とByteBuffer
SE のベストエフォート変換を適用して、何かのリストなどのかなり一般的な Redis レスポンスを意味のある構造に解析します。static DurationSE
secondsToDuration
(LongSE seconds) 指定された null 許容秒をDuration
SE または null に変換します。static long
secondsToTimeUnit
(long seconds, TimeUnitSE targetUnit) seconds
を指定されたTimeUnit
SE に変換します。secondsToTimeUnit
(TimeUnitSE timeUnit) 秒から指定されたTimeUnit
SE に変換する新しいConverter
を作成します。static BooleanSE
stringToBoolean
(StringSE source) static Converter<StringSE,
PropertiesSE> static byte[]
static BooleanSE
protected static RedisClusterNode
toClusterNode
(StringSE clusterNodesLine) CLUSTER NODES
の 1 行の結果をRedisClusterNode
に変換します。static DataType
toDataType
(StringSE source) static PropertiesSE
toProperties
(StringSE source) static PropertiesSE
toProperties
(ListSE<StringSE> input) static PropertiesSE
toProperties
(MapSE<?, ?> source) static SetSE<RedisClusterNode>
toSetOfRedisClusterNodes
(StringSE clusterNodes) CLUSTER NODES
の結果をRedisClusterNode
に変換します。static SetSE<RedisClusterNode>
CLUSTER NODES
の結果からRedisClusterNode
に行を変換します。static LongSE
toTimeMillis
(StringSE seconds, StringSE microseconds) 指定されたseconds
およびmicroseconds
から構築されたタイムスタンプを返します。static LongSE
toTimeMillis
(StringSE seconds, StringSE microseconds, TimeUnitSE unit) 指定されたseconds
およびmicroseconds
から構築されたタイムスタンプを返します。
コンストラクターの詳細
Converters
public Converters()
メソッドの詳細
identityConverter
常に入力引数を返すConverter
を返します。- 型パラメーター:
T
- 関数への入力および出力オブジェクトの型- 戻り値:
- 常に入力引数を返す関数
- 導入:
- 2.5
stringToBoolean
stringToBooleanConverter
stringToProps
longToBoolean
stringToDataType
toProperties
toProperties
toBoolean
toDataType
toBit
toClusterNode
CLUSTER NODES
の 1 行の結果をRedisClusterNode
に変換します。- パラメーター:
clusterNodesLine
-- 戻り値:
- 導入:
- 1.7
toSetOfRedisClusterNodes
CLUSTER NODES
の結果からRedisClusterNode
に行を変換します。- パラメーター:
lines
-- 戻り値:
- 導入:
- 1.7
toSetOfRedisClusterNodes
CLUSTER NODES
の結果をRedisClusterNode
に変換します。- パラメーター:
clusterNodes
-- 戻り値:
- 導入:
- 1.7
toObjects
toTimeMillis
指定されたseconds
およびmicroseconds
から構築されたタイムスタンプを返します。- パラメーター:
seconds
- サーバー時間 (秒)microseconds
- 現在の秒で経過したマイクロ秒- 戻り値:
toTimeMillis
指定されたseconds
およびmicroseconds
から構築されたタイムスタンプを返します。- パラメーター:
seconds
- 秒単位のサーバー時間。microseconds
- 現在の秒で経過したマイクロ秒。unit
- ターゲットユニット。- 戻り値:
- 導入:
- 2.5
secondsToTimeUnit
seconds
を指定されたTimeUnit
SE に変換します。- パラメーター:
seconds
-targetUnit
- null であってはなりません。- 戻り値:
- 導入:
- 1.8
secondsToTimeUnit
秒から指定されたTimeUnit
SE に変換する新しいConverter
を作成します。- パラメーター:
timeUnit
- muist は null ではありません。- 戻り値:
- 導入:
- 1.8
millisecondsToTimeUnit
milliseconds
を指定されたTimeUnit
SE に変換します。- パラメーター:
milliseconds
-targetUnit
- null であってはなりません。- 戻り値:
- 導入:
- 1.8
millisecondsToTimeUnit
ミリ秒から指定されたTimeUnit
SE に変換する新しいConverter
を作成します。- パラメーター:
timeUnit
- null であってはなりません。- 戻り値:
- 導入:
- 1.8
deserializingGeoResultsConverter
public static <V> Converter<GeoResults<RedisGeoCommands.GeoLocation<byte[]>>,GeoResults<RedisGeoCommands.GeoLocation<V>>> deserializingGeoResultsConverter(RedisSerializer<V> serializer) GeoResults
を逆直列化できるConverter
。- パラメーター:
serializer
-- 戻り値:
- 導入:
- 1.8
distanceConverterForMetric
- パラメーター:
metric
-- 戻り値:
- 導入:
- 1.8
toProperties
- パラメーター:
input
- null であってはなりません。- 戻り値:
- マップされた結果。
- 導入:
- 2.0
listToPropertiesConverter
- 戻り値:
- コンバーター。
- 導入:
- 2.0
mapToPropertiesConverter
Map
SE からProperties
SE に変換するコンバーターを返します。- 戻り値:
- コンバーター。
- 導入:
- 2.0
secondsToDuration
指定された null 許容秒をDuration
SE または null に変換します。- パラメーター:
seconds
- null でもかまいません。- 戻り値:
Duration
SE または null として指定された秒。- 導入:
- 2.1
parse
byte[]
とByteBuffer
SE のベストエフォート変換を適用して、何かのリストなどのかなり一般的な Redis レスポンスを意味のある構造に解析します。parse
public static ObjectSE parse(ObjectSE source, StringSE sourcePath, MapSE<StringSE, ClassSE<?>> typeHintMap) sourcePath と typeHintMap に基づいてbyte[]
とByteBuffer
SE のベストエフォート変換を適用して、何かのリストなどのかなり一般的な Redis レスポンスを意味のある構造に解析します。- パラメーター:
source
- 解析するソースsourcePath
- 現在のパス (レベル 0 の場合は「ルート」を使用)。typeHintMap
- ワイルドカード (*) を許可するターゲット型 ヒントへのソースパス。- 戻り値:
- 導入:
- 2.3
entryOf
- 型パラメーター:
K
-V
-- パラメーター:
key
-value
-- 戻り値:
- 導入:
- 2.6