org.apache.cassandra.service
Class ReadResponseResolver

java.lang.Object
  extended by org.apache.cassandra.service.ReadResponseResolver
All Implemented Interfaces:
IResponseResolver<Row>

public class ReadResponseResolver
extends java.lang.Object
implements IResponseResolver<Row>

This class is used by all read functions and is called by the Quorum when at least a few of the servers (few is specified in Quorum) have sent the response . The resolve function then schedules read repair and resolution of read data from the various servers.


Constructor Summary
ReadResponseResolver()
           
 
Method Summary
 boolean isDataPresent(java.util.List<Message> responses)
           
 Row resolve(java.util.List<Message> responses)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadResponseResolver

public ReadResponseResolver()
Method Detail

resolve

public Row resolve(java.util.List<Message> responses)
            throws DigestMismatchException
Specified by:
resolve in interface IResponseResolver<Row>
Throws:
DigestMismatchException

isDataPresent

public boolean isDataPresent(java.util.List<Message> responses)
Specified by:
isDataPresent in interface IResponseResolver<Row>


Copyright © 2009 The Apache Software Foundation