クラス LettuceConverters

java.lang.ObjectSE
org.springframework.data.redis.connection.convert.Converters
org.springframework.data.redis.connection.lettuce.LettuceConverters

public abstract class LettuceConverters extends Converters
Lettuce 型のコンバーター
作成者:
Jennifer Hickey, Christoph Strobl, Thomas Darimont, Mark Paluch, Ninad Divadkar, dengliming, Chris Bono, Vikas Garg, John Blum, Roman Osadchuk
  • フィールドの詳細

    • PLUS_BYTES

      public static final byte[] PLUS_BYTES
    • MINUS_BYTES

      public static final byte[] MINUS_BYTES
    • POSITIVE_INFINITY_BYTES

      public static final byte[] POSITIVE_INFINITY_BYTES
    • NEGATIVE_INFINITY_BYTES

      public static final byte[] NEGATIVE_INFINITY_BYTES
  • コンストラクターの詳細

    • LettuceConverters

      public LettuceConverters()
  • メソッドの詳細

    • geoCoordinatesToPoint

      public static Point geoCoordinatesToPoint(@Nullable io.lettuce.core.GeoCoordinates geoCoordinate)
    • stringToRedisClientListConverter

      public static Converter<StringSE,ListSE<RedisClientInfo>> stringToRedisClientListConverter()
    • scoredValuesToTupleList

      public static Converter<ListSE<io.lettuce.core.ScoredValue<byte[]>>,ListSE<Tuple>> scoredValuesToTupleList()
    • toBoolean

      public static boolean toBoolean(long value)
    • longToBooleanConverter

      public static Converter<LongSE,BooleanSE> longToBooleanConverter()
      導入:
      1.3
    • toLong

      public static LongSE toLong(@Nullable DateSE source)
    • toBytesSet

      public static SetSE<byte[]> toBytesSet(@Nullable ListSE<byte[]> source)
    • toBytesList

      public static ListSE<byte[]> toBytesList(io.lettuce.core.KeyValue<byte[],byte[]> source)
    • toBytesList

      public static ListSE<byte[]> toBytesList(CollectionSE<byte[]> source)
    • toTuple

      public static Tuple toTuple(@Nullable io.lettuce.core.ScoredValue<byte[]> source)
    • toString

      public static StringSE toString(@Nullable byte[] source)
    • toScriptOutputType

      public static io.lettuce.core.ScriptOutputType toScriptOutputType(ReturnType returnType)
    • toBoolean

      public static boolean toBoolean(RedisListCommands.Position where)
    • toInt

      public static int toInt(boolean value)
    • toMap

      public static MapSE<byte[],byte[]> toMap(ListSE<byte[]> source)
    • toSortArgs

      public static io.lettuce.core.SortArgs toSortArgs(SortParameters params)
    • toListOfRedisClientInformation

      public static ListSE<RedisClientInfo> toListOfRedisClientInformation(StringSE clientList)
    • toLimit

      public static io.lettuce.core.Limit toLimit(Limit limit)
      Limit を Lettuce Limit に変換します。
      戻り値:
      lettuce Limit
      導入:
      2.0
    • toRange

      public static <T> io.lettuce.core.Range<T> toRange(Range<T> range)
      RedisZSetCommands.Range を lettuce Range に変換します。
      導入:
      2.0
    • toRange

      public static <T> io.lettuce.core.Range<T> toRange(Range<T> range, boolean convertNumberToBytes)
      Range を lettuce Range に変換します。
      導入:
      2.2
    • toRevRange

      public static <T> io.lettuce.core.Range<T> toRevRange(Range<T> range)
      Range を lettuce Range に変換し、境界を逆にします。
      導入:
      2.0
    • toListOfRedisServer

      public static ListSE<RedisServer> toListOfRedisServer(ListSE<MapSE<StringSE,StringSE>> source)
      パラメーター:
      source - SENTINEL REPLICAS または SENTINEL MASTERS からのノードの詳細を含むマップのリスト。空または null の場合があります。
      戻り値:
      RedisServer のリスト。マップのリストが空の場合、リストは空です。
      導入:
      1.5
    • sentinelConfigurationToRedisURI

      public static io.lettuce.core.RedisURI sentinelConfigurationToRedisURI(RedisSentinelConfiguration sentinelConfiguration)
      パラメーター:
      sentinelConfiguration - 1 つ以上のセンチネルとマスター名を含む sentinel 構成。null であってはなりません
      戻り値:
      RedisSentinelConfiguration の Redis Sentinel アドレスを含む RedisURI 
      導入:
      1.5
    • toBytes

      public static byte[] toBytes(@Nullable StringSE source)
    • toBytes

      public static byte[] toBytes(IntegerSE source)
    • toBytes

      public static byte[] toBytes(LongSE source)
    • toBytes

      public static byte[] toBytes(DoubleSE source)
      導入:
      1.6
    • partitionsToClusterNodes

      public static ListSE<RedisClusterNode> partitionsToClusterNodes(@Nullable io.lettuce.core.cluster.models.partitions.Partitions source)
    • toRedisClusterNode

      public static RedisClusterNode toRedisClusterNode(io.lettuce.core.cluster.models.partitions.RedisClusterNode source)
      導入:
      1.7
    • toSetArgs

      public static io.lettuce.core.SetArgs toSetArgs(@Nullable Expiration expiration, @Nullable RedisStringCommands.SetOption option)
      指定された Expiration および RedisStringCommands.SetOption を対応する SetArgs に変換します。
      パラメーター:
      expiration - null でもかまいません。
      option - null でもかまいません。
      導入:
      1.7
    • toGeoArgsUnit

      public static io.lettuce.core.GeoArgs.Unit toGeoArgsUnit(Metric metric)
      Metric を GeoArgs.Unit に変換します。
      導入:
      1.8
    • toGeoArgs

      public static io.lettuce.core.GeoArgs toGeoArgs(RedisGeoCommands.GeoRadiusCommandArgs args)
      RedisGeoCommands.GeoRadiusCommandArgs を GeoArgs に変換します。
      導入:
      1.8
    • toGeoArgs

      public static io.lettuce.core.GeoArgs toGeoArgs(RedisGeoCommands.GeoCommandArgs args)
      RedisGeoCommands.GeoCommandArgs を GeoArgs に変換します。
      導入:
      2.6
    • toBitFieldArgs

      public static io.lettuce.core.BitFieldArgs toBitFieldArgs(BitFieldSubCommands subCommands)
      BitFieldSubCommands を BitFieldArgs に変換します。
      導入:
      2.1
    • bytesSetToGeoResultsConverter

      public static Converter<SetSE<byte[]>,GeoResults<RedisGeoCommands.GeoLocation<byte[]>>> bytesSetToGeoResultsConverter()
      ByteSESetSE 対応の ConverterGeoResults に入れます。
      導入:
      1.8
    • geoRadiusResponseToGeoResultsConverter

      public static Converter<ListSE<io.lettuce.core.GeoWithin<byte[]>>,GeoResults<RedisGeoCommands.GeoLocation<byte[]>>> geoRadiusResponseToGeoResultsConverter(Metric metric)
      GeoWithin を GeoResults に変換できる Converter を取得します。
      導入:
      1.8
    • transactionResultUnwrapper

      public static Converter<io.lettuce.core.TransactionResult,ListSE<ObjectSE>> transactionResultUnwrapper()