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 protectedReadResponse()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ReadResponsecreateDataResponse(UnfilteredPartitionIterator data, ReadCommand command, org.apache.cassandra.db.RepairedDataInfo rdi)static ReadResponsecreateDigestResponse(UnfilteredPartitionIterator data, ReadCommand command)static ReadResponsecreateRemoteDataResponse(UnfilteredPartitionIterator data, java.nio.ByteBuffer repairedDataDigest, boolean isRepairedDigestConclusive, ReadCommand command, int version)static ReadResponsecreateSimpleDataResponse(UnfilteredPartitionIterator data, ColumnFilter selection)abstract java.nio.ByteBufferdigest(ReadCommand command)abstract booleanisDigestResponse()abstract booleanisRepairedDigestConclusive()protected static java.nio.ByteBuffermakeDigest(UnfilteredPartitionIterator iterator, ReadCommand command)abstract UnfilteredPartitionIteratormakeIterator(ReadCommand command)abstract booleanmayIncludeRepairedDigest()abstract java.nio.ByteBufferrepairedDataDigest()java.lang.StringtoDebugString(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)
-
-