Package org.apache.cassandra.db
Class ReadResponse
- java.lang.Object
-
- org.apache.cassandra.db.ReadResponse
-
public abstract class ReadResponse extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static IVersionedSerializer<ReadResponse>
serializer
-
Constructor Summary
Constructors Modifier Constructor Description protected
ReadResponse()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ReadResponse
createDataResponse(UnfilteredPartitionIterator data, ReadCommand command, org.apache.cassandra.db.RepairedDataInfo rdi)
static ReadResponse
createDigestResponse(UnfilteredPartitionIterator data, ReadCommand command)
static ReadResponse
createRemoteDataResponse(UnfilteredPartitionIterator data, java.nio.ByteBuffer repairedDataDigest, boolean isRepairedDigestConclusive, ReadCommand command, int version)
static ReadResponse
createSimpleDataResponse(UnfilteredPartitionIterator data, ColumnFilter selection)
abstract java.nio.ByteBuffer
digest(ReadCommand command)
abstract boolean
isDigestResponse()
abstract boolean
isRepairedDigestConclusive()
protected static java.nio.ByteBuffer
makeDigest(UnfilteredPartitionIterator iterator, ReadCommand command)
abstract UnfilteredPartitionIterator
makeIterator(ReadCommand command)
abstract boolean
mayIncludeRepairedDigest()
abstract java.nio.ByteBuffer
repairedDataDigest()
java.lang.String
toDebugString(ReadCommand command, DecoratedKey key)
Creates a string of the requested partition in this read response suitable for debugging.
-
-
-
Field Detail
-
serializer
public static final IVersionedSerializer<ReadResponse> serializer
-
-
Method Detail
-
createDataResponse
public static ReadResponse createDataResponse(UnfilteredPartitionIterator data, ReadCommand command, org.apache.cassandra.db.RepairedDataInfo rdi)
-
createSimpleDataResponse
public static ReadResponse createSimpleDataResponse(UnfilteredPartitionIterator data, ColumnFilter selection)
-
createRemoteDataResponse
public static ReadResponse createRemoteDataResponse(UnfilteredPartitionIterator data, java.nio.ByteBuffer repairedDataDigest, boolean isRepairedDigestConclusive, ReadCommand command, int version)
-
createDigestResponse
public static ReadResponse createDigestResponse(UnfilteredPartitionIterator data, ReadCommand command)
-
makeIterator
public abstract UnfilteredPartitionIterator makeIterator(ReadCommand command)
-
digest
public abstract java.nio.ByteBuffer digest(ReadCommand command)
-
repairedDataDigest
public abstract java.nio.ByteBuffer repairedDataDigest()
-
isRepairedDigestConclusive
public abstract boolean isRepairedDigestConclusive()
-
mayIncludeRepairedDigest
public abstract boolean mayIncludeRepairedDigest()
-
isDigestResponse
public abstract boolean isDigestResponse()
-
toDebugString
public java.lang.String toDebugString(ReadCommand command, DecoratedKey key)
Creates a string of the requested partition in this read response suitable for debugging.
-
makeDigest
protected static java.nio.ByteBuffer makeDigest(UnfilteredPartitionIterator iterator, ReadCommand command)
-
-