Package com.netflix.astyanax.serializers

Examples of com.netflix.astyanax.serializers.CompositeRangeBuilder


      throw new UnsupportedOperationException("not done here yet");
  }
 
  public static CompositeRangeBuilder setupRangeBuilder(Key from, Key to, Info info1) {
    AnnotatedCompositeSerializer serializer = info1.getCompositeSerializer();
    CompositeRangeBuilder range = serializer.buildRange();
    if(from != null) {
      if(from.isInclusive())
        range = range.greaterThanEquals(from.getKey());
      else
        range = range.greaterThan(from.getKey());
    }
    if(to != null) {
      if(to.isInclusive())
        range = range.lessThanEquals(to.getKey());
      else
        range = range.lessThan(to.getKey());
    }
    return range;
  }
View Full Code Here


     * For some dang reason with astyanax, we have to recreate the row query from scratch before we re-use it for
     * a NEsted join.
     * @return
     */
    public RowQuery<byte[], byte[]> createRowQuery() {
      CompositeRangeBuilder range = setupRangeBuilder(from, to, info1);
      if(batchSize != null)
        range = range.limit(batchSize);     
      return createBasicRowQuery(rowKey, info1, range);
    }
View Full Code Here

TOP

Related Classes of com.netflix.astyanax.serializers.CompositeRangeBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.