Package com.stratio.cassandra.index.query

Examples of com.stratio.cassandra.index.query.Search


     * @return The {@link Search} represented by this builder.
     */
    @Override
    public Search build()
    {
        return new Search(queryCondition, filterCondition, sorting);
    }
View Full Code Here


            long timestamp = extendedFilter.timestamp;
            int limit = extendedFilter.maxColumns();
            DataRange dataRange = extendedFilter.dataRange;
            List<IndexExpression> clause = extendedFilter.getClause();
            List<IndexExpression> filteredExpressions = filteredExpressions(clause);
            Search search = search(clause);

            List<Row> rows = rowService.search(search, filteredExpressions, dataRange, limit, timestamp);

            long time = System.currentTimeMillis() - startTime;
            Log.debug("Search time: %d ms", time);
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    public boolean requiresFullScan(List<IndexExpression> clause)
    {
        Search search = search(clause);
        return search.usesRelevanceOrSorting();
    }
View Full Code Here

        TreeSet<Row> set = new TreeSet<>(rowService.comparator());
        set.addAll(rows);
        List<Row> result = new ArrayList<>(set);

        // Sort
        Search search = search(clause);
        Comparator<Row> comparator = rowService.comparator(search);
        Collections.sort(result, comparator);

//        result = rowService.group(result);
View Full Code Here

TOP

Related Classes of com.stratio.cassandra.index.query.Search

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.