com.lordofthejars.nosqlunit.redis.embedded
Class RangeUtils

java.lang.Object
  extended by com.lordofthejars.nosqlunit.redis.embedded.RangeUtils

public class RangeUtils
extends Object


Method Summary
static int calculateEnd(int end, int size)
           
static int calculateStart(int start, int size)
           
static long calculateStart(long start, long size)
           
static byte[] concat(byte[] first, byte[] second)
           
static double getRealScoreForMaxValue(String value, Collection<SortsetDatatypeOperations.ScoredByteBuffer> elements)
           
static double getRealScoreForMinValue(String value, Collection<SortsetDatatypeOperations.ScoredByteBuffer> elements)
           
static List<SortsetDatatypeOperations.ScoredByteBuffer> limitListByOffsetCount(int offset, int count, List<SortsetDatatypeOperations.ScoredByteBuffer> elements)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

concat

public static byte[] concat(byte[] first,
                            byte[] second)

calculateEnd

public static int calculateEnd(int end,
                               int size)

calculateStart

public static long calculateStart(long start,
                                  long size)

calculateStart

public static int calculateStart(int start,
                                 int size)

limitListByOffsetCount

public static List<SortsetDatatypeOperations.ScoredByteBuffer> limitListByOffsetCount(int offset,
                                                                                      int count,
                                                                                      List<SortsetDatatypeOperations.ScoredByteBuffer> elements)

getRealScoreForMinValue

public static double getRealScoreForMinValue(String value,
                                             Collection<SortsetDatatypeOperations.ScoredByteBuffer> elements)

getRealScoreForMaxValue

public static double getRealScoreForMaxValue(String value,
                                             Collection<SortsetDatatypeOperations.ScoredByteBuffer> elements)


Copyright © 2012. All Rights Reserved.