org.apache.cassandra.cql.common
Class ColumnRangeQueryRSD

java.lang.Object
  extended by org.apache.cassandra.cql.common.RowSourceDef
      extended by org.apache.cassandra.cql.common.ColumnRangeQueryRSD

public class ColumnRangeQueryRSD
extends RowSourceDef

A Row Source Defintion (RSD) for doing a range query on a column map (in Standard or Super Column Family).


Constructor Summary
ColumnRangeQueryRSD(CFMetaData cfMetaData, ConstantOperand rowKey, ConstantOperand superColumnKey, int offset, int limit)
          Setup a range query on a column map in a super column family.
ColumnRangeQueryRSD(CFMetaData cfMetaData, OperandDef rowKey, int offset, int limit)
          Set up a range query on column map in a simple column family.
 
Method Summary
 java.lang.String explainPlan()
           
 java.util.List<java.util.Map<java.lang.String,java.lang.String>> getRows()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnRangeQueryRSD

public ColumnRangeQueryRSD(CFMetaData cfMetaData,
                           OperandDef rowKey,
                           int offset,
                           int limit)
Set up a range query on column map in a simple column family. The column map in a simple column family is identified by the rowKey. Note: "limit" of -1 is the equivalent of no limit. "offset" specifies the number of rows to skip. An offset of 0 implies from the first row.


ColumnRangeQueryRSD

public ColumnRangeQueryRSD(CFMetaData cfMetaData,
                           ConstantOperand rowKey,
                           ConstantOperand superColumnKey,
                           int offset,
                           int limit)
Setup a range query on a column map in a super column family. The column map in a super column family is identified by the rowKey & superColumnKey. Note: "limit" of -1 is the equivalent of no limit. "offset" specifies the number of rows to skip. An offset of 0 implies the first row.

Method Detail

getRows

public java.util.List<java.util.Map<java.lang.String,java.lang.String>> getRows()
Specified by:
getRows in class RowSourceDef

explainPlan

public java.lang.String explainPlan()
Specified by:
explainPlan in class RowSourceDef


Copyright © 2009 The Apache Software Foundation