public BoundStatement getQueryStatement ( CqlRowSliceQueryImpl < ? , ? > rowSliceQuery , boolean useCaching ) { switch ( rowSliceQuery . getColQueryType ( ) ) { case AllColumns : return SelectAllColumnsForRowKeys . getBoundStatement ( rowSliceQuery , useCaching ) ; case ColumnSet : return SelectColumnSetForRowKeys . getBoundStatement ( rowSliceQuery , useCaching ) ; case ColumnRange : if ( isCompositeColumn ) { return SelectCompositeColumnRangeForRowKeys . getBoundStatement ( rowSliceQuery , useCaching ) ; } else { return SelectColumnRangeForRowKeys . getBoundStatement ( rowSliceQuery , useCaching ) ; } default : throw new RuntimeException ( "RowSliceQuery with row keys use case not supported." ) ; } }
Main method that is used to generate the java driver statement from the given Astyanax row slice query . Note that the method allows the caller to specify whether to use caching or not .