|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.service.ReadResponseResolver
public class ReadResponseResolver
Turns ReadResponse messages into Row objects, resolving to the most recent version and setting up read repairs as necessary.
Constructor Summary | |
---|---|
ReadResponseResolver(java.lang.String table,
java.nio.ByteBuffer key)
|
Method Summary | |
---|---|
Row |
getData()
returns the data response without comparing with any digests |
int |
getMessageCount()
|
java.lang.Iterable<Message> |
getMessages()
|
void |
injectPreProcessed(ReadResponse result)
hack so local reads don't force de/serialization of an extra real Message |
boolean |
isDataPresent()
|
static void |
maybeScheduleRepairs(ColumnFamily resolved,
java.lang.String table,
DecoratedKey key,
java.util.List<ColumnFamily> versions,
java.util.List<java.net.InetAddress> endpoints)
For each row version, compare with resolved (the superset of all row versions); if it is missing anything, send a mutation to the endpoint it come from. |
void |
preprocess(Message message)
|
Row |
resolve()
This Method resolves the responses that are passed in . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReadResponseResolver(java.lang.String table, java.nio.ByteBuffer key)
Method Detail |
---|
public Row getData() throws java.io.IOException
IResponseResolver
getData
in interface IResponseResolver<Row>
java.io.IOException
public Row resolve() throws DigestMismatchException, java.io.IOException
IResponseResolver
resolve
in interface IResponseResolver<Row>
DigestMismatchException
java.io.IOException
public static void maybeScheduleRepairs(ColumnFamily resolved, java.lang.String table, DecoratedKey key, java.util.List<ColumnFamily> versions, java.util.List<java.net.InetAddress> endpoints)
public void preprocess(Message message)
preprocess
in interface IResponseResolver<Row>
public void injectPreProcessed(ReadResponse result)
public boolean isDataPresent()
isDataPresent
in interface IResponseResolver<Row>
public java.lang.Iterable<Message> getMessages()
getMessages
in interface IResponseResolver<Row>
public int getMessageCount()
getMessageCount
in interface IResponseResolver<Row>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |