Package org.apache.cassandra.cql.common

Examples of org.apache.cassandra.cql.common.ColumnRangeQueryRSD


            }
            else if (dimensionCnt == 1)
            {
                // Case: table.super_cf[<rowKey>][<superColumnKey>]
                ConstantOperand superColumnKey = new ConstantOperand(getColumn(columnFamilySpec, 0));               
                rwsDef = new ColumnRangeQueryRSD(cfMetaData, rowKey, superColumnKey, -1, Integer.MAX_VALUE);
            }
            else
            {
                // Case: table.super_cf[<rowKey>]            
                rwsDef = new SuperColumnRangeQueryRSD(cfMetaData, rowKey, -1, Integer.MAX_VALUE);
            }
        }
        else  // Standard Column Family
        {
            if (dimensionCnt == 1)
            {
                // Case: table.standard_cf[<rowKey>][<columnKey>]
                ConstantOperand columnKey = new ConstantOperand(getColumn(columnFamilySpec, 0));
                rwsDef = new UniqueKeyQueryRSD(cfMetaData, rowKey, columnKey);
            }
            else
            {
                // Case: table.standard_cf[<rowKey>]
                logger_.assertLog((dimensionCnt == 0), "invalid dimensionCnt: " + dimensionCnt);
                rwsDef = new ColumnRangeQueryRSD(cfMetaData, rowKey, -1, Integer.MAX_VALUE);
            }
        }
        return new QueryPlan(rwsDef);
    }
View Full Code Here

TOP

Related Classes of org.apache.cassandra.cql.common.ColumnRangeQueryRSD

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.