org.apache.cassandra.client

Class RingCache

  • java.lang.Object
    • org.apache.cassandra.client.RingCache


  • public class RingCacheextends java.lang.Object
    A class for caching the ring map at the client. For usage example, see test/unit/org.apache.cassandra.client.TestRingCache.java. TODO: doing a naive linear search of the token map
    • Constructor Summary

      Constructors 
      Constructor and Description
      RingCache(org.apache.hadoop.conf.Configuration conf) 
    • Method Summary

      Methods 
      Modifier and TypeMethod and Description
      java.util.List<java.net.InetAddress>getEndpoint(java.nio.ByteBuffer key) 
      java.util.List<java.net.InetAddress>getEndpoint(Range<Token> range)
      ListMultimap promises to return a List for get(K)
      Range<Token>getRange(java.nio.ByteBuffer key) 
      voidrefreshEndpointMap() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RingCache

        public RingCache(org.apache.hadoop.conf.Configuration conf)
    • Method Detail

      • refreshEndpointMap

        public void refreshEndpointMap()
      • getEndpoint

        public java.util.List<java.net.InetAddress> getEndpoint(Range<Token> range)
        ListMultimap promises to return a List for get(K)
      • getEndpoint

        public java.util.List<java.net.InetAddress> getEndpoint(java.nio.ByteBuffer key)
      • getRange

        public Range<Token> getRange(java.nio.ByteBuffer key)

Copyright © 2013 The Apache Software Foundation



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14