private String setSelectQuery ( List < String > columns ) { if ( columns != null && ! columns . isEmpty ( ) ) { return CQLTranslator . SELECT_QUERY ; } if ( kunderaQuery . isAggregated ( ) ) { Expression selectExpression = ( ( SelectClause ) kunderaQuery . getSelectStatement ( ) . getSelectClause ( ) ) . getSelectExpression ( ) ; // create query depending on function if ( selectExpression instanceof CountFunction ) { return CQLTranslator . SELECT_COUNT_QUERY ; } } return CQLTranslator . SELECTALL_QUERY ; }
Sets the select query .