Example usage for org.apache.cassandra.dht Range toString

List of usage examples for org.apache.cassandra.dht Range toString

Introduction

In this page you can find the example usage for org.apache.cassandra.dht Range toString.

Prototype

@Override
    public String toString() 

Source Link

Usage

From source file:com.tuplejump.stargate.Stargate.java

License:Apache License

@Override
public String[] indexShards(String indexName) {
    RowIndexSupport indexSupport = getRowIndexSupportByIndexName(indexName);
    if (indexSupport != null) {
        Set<Range<Token>> indexShards = indexSupport.indexContainer.indexers.keySet();
        String[] indexRanges = new String[indexShards.size()];
        int i = 0;
        for (Range<Token> indexRange : indexShards) {
            indexRanges[i++] = indexRange.toString();
        }//from  w w w .j av  a2  s  .c om
        return indexRanges;
    }
    return null;
}