org.apache.cassandra.db
Class ReadCommand

java.lang.Object
  extended by org.apache.cassandra.db.ReadCommand
All Implemented Interfaces:
IReadCommand
Direct Known Subclasses:
SliceByNamesReadCommand, SliceFromReadCommand

public abstract class ReadCommand
extends java.lang.Object
implements IReadCommand


Field Summary
static byte CMD_TYPE_GET_SLICE
           
static byte CMD_TYPE_GET_SLICE_BY_NAMES
           
protected  byte commandType
           
 java.nio.ByteBuffer key
           
 QueryPath queryPath
           
static org.apache.cassandra.db.ReadCommandSerializer serializer
           
 java.lang.String table
           
 
Constructor Summary
protected ReadCommand(java.lang.String table, java.nio.ByteBuffer key, QueryPath queryPath, byte cmdType)
           
 
Method Summary
abstract  ReadCommand copy()
           
 MessageOut<ReadCommand> createMessage()
           
abstract  IDiskAtomFilter filter()
           
 java.lang.String getColumnFamilyName()
           
protected  AbstractType<?> getComparator()
           
 java.lang.String getKeyspace()
           
abstract  Row getRow(Table table)
           
 long getTimeout()
           
 boolean isDigestQuery()
           
 ReadCommand maybeGenerateRetryCommand(RowDataResolver resolver, Row row)
           
 void maybeTrim(Row row)
           
 void setDigestQuery(boolean isDigestQuery)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ReadCommand

protected ReadCommand(java.lang.String table,
                      java.nio.ByteBuffer key,
                      QueryPath queryPath,
                      byte cmdType)
Method Detail

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