org.apache.cassandra.service
Class RangeSliceResponseResolver
java.lang.Object
org.apache.cassandra.service.RangeSliceResponseResolver
- All Implemented Interfaces:
- IResponseResolver<java.util.List<Row>>
public class RangeSliceResponseResolver
- extends java.lang.Object
- implements IResponseResolver<java.util.List<Row>>
Turns RangeSliceReply objects into row (string -> CF) maps, resolving
to the most recent ColumnFamily and setting up read repairs as necessary.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
responses
protected final java.util.Collection<Message> responses
RangeSliceResponseResolver
public RangeSliceResponseResolver(java.lang.String table,
java.util.List<java.net.InetAddress> sources)
getData
public java.util.List<Row> getData()
throws java.io.IOException
- Description copied from interface:
IResponseResolver
- returns the data response without comparing with any digests
- Specified by:
getData
in interface IResponseResolver<java.util.List<Row>>
- Throws:
java.io.IOException
resolve
public java.util.List<Row> resolve()
throws java.io.IOException
- Description copied from interface:
IResponseResolver
- This Method resolves the responses that are passed in . for example : if
its write response then all we get is true or false return values which
implies if the writes were successful but for reads its more complicated
you need to look at the responses and then based on differences schedule
repairs . Hence you need to derive a response resolver based on your
needs from this interface.
- Specified by:
resolve
in interface IResponseResolver<java.util.List<Row>>
- Throws:
java.io.IOException
preprocess
public void preprocess(Message message)
- Specified by:
preprocess
in interface IResponseResolver<java.util.List<Row>>
isDataPresent
public boolean isDataPresent()
- Specified by:
isDataPresent
in interface IResponseResolver<java.util.List<Row>>
getMessages
public java.lang.Iterable<Message> getMessages()
- Specified by:
getMessages
in interface IResponseResolver<java.util.List<Row>>
getMessageCount
public int getMessageCount()
- Specified by:
getMessageCount
in interface IResponseResolver<java.util.List<Row>>
Copyright © 2011 The Apache Software Foundation