org.apache.cassandra.db
Class ReadCommand
java.lang.Object
org.apache.cassandra.db.ReadCommand
- All Implemented Interfaces:
- IReadCommand
- Direct Known Subclasses:
- SliceByNamesReadCommand, SliceFromReadCommand
public abstract class ReadCommand
- extends java.lang.Object
- implements IReadCommand
Constructor Summary |
protected |
ReadCommand(java.lang.String table,
java.nio.ByteBuffer key,
QueryPath queryPath,
byte cmdType)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CMD_TYPE_GET_SLICE_BY_NAMES
public static final byte CMD_TYPE_GET_SLICE_BY_NAMES
- See Also:
- Constant Field Values
CMD_TYPE_GET_SLICE
public static final byte CMD_TYPE_GET_SLICE
- See Also:
- Constant Field Values
serializer
public static final org.apache.cassandra.db.ReadCommandSerializer serializer
queryPath
public final QueryPath queryPath
table
public final java.lang.String table
key
public final java.nio.ByteBuffer key
commandType
protected final byte commandType
ReadCommand
protected ReadCommand(java.lang.String table,
java.nio.ByteBuffer key,
QueryPath queryPath,
byte cmdType)
createMessage
public MessageOut<ReadCommand> createMessage()
isDigestQuery
public boolean isDigestQuery()
setDigestQuery
public void setDigestQuery(boolean isDigestQuery)
getColumnFamilyName
public java.lang.String getColumnFamilyName()
copy
public abstract ReadCommand copy()
getRow
public abstract Row getRow(Table table)
throws java.io.IOException
- Throws:
java.io.IOException
filter
public abstract IDiskAtomFilter filter()
getComparator
protected AbstractType<?> getComparator()
getKeyspace
public java.lang.String getKeyspace()
- Specified by:
getKeyspace
in interface IReadCommand
maybeGenerateRetryCommand
public ReadCommand maybeGenerateRetryCommand(RowDataResolver resolver,
Row row)
maybeTrim
public void maybeTrim(Row row)
getTimeout
public long getTimeout()
- Specified by:
getTimeout
in interface IReadCommand
Copyright © 2013 The Apache Software Foundation