Package org.apache.cassandra.db

Examples of org.apache.cassandra.db.RangeReply


        // transfer
        Streaming.transferSSTables(LOCAL, Arrays.asList(sstable), tablename);

        // confirm that the SSTable was transferred and registered
        ColumnFamilyStore cfstore = Table.open(tablename).getColumnFamilyStore(cfname);
        RangeReply rr = cfstore.getKeyRange("", "", 2);
        assert rr.keys.size() == 1;
        assert rr.keys.contains("key");
    }
View Full Code Here


        try
        {
            RangeCommand command = RangeCommand.read(message);
            Table table = Table.open(command.table);

            RangeReply rangeReply = table.getColumnFamilyStore(command.columnFamily).getKeyRange(command.startWith, command.stopAt, command.maxResults);
            Message response = rangeReply.getReply(message);
            if (logger.isDebugEnabled())
                logger.debug("Sending " + rangeReply + " to " + message.getMessageId() + "@" + message.getFrom());
            MessagingService.instance().sendOneWay(response, message.getFrom());
        }
        catch (Exception e)
View Full Code Here

        catch (Exception e)
        {
            throw new RuntimeException(e);
        }

        Message response = new RangeReply(keys).getReply(message);
        MessagingService.getMessagingInstance().sendOneWay(response, message.getFrom());
    }
View Full Code Here

        try
        {
            RangeCommand command = RangeCommand.read(message);
            Table table = Table.open(command.table);

            RangeReply rangeReply = table.getColumnFamilyStore(command.columnFamily).getKeyRange(command.startWith, command.stopAt, command.maxResults);
            Message response = rangeReply.getReply(message);
            if (logger.isDebugEnabled())
                logger.debug("Sending " + rangeReply + " to " + message.getMessageId() + "@" + message.getFrom());
            MessagingService.getMessagingInstance().sendOneWay(response, message.getFrom());
        }
        catch (Exception e)
View Full Code Here

TOP

Related Classes of org.apache.cassandra.db.RangeReply

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.