Example usage for org.apache.cassandra.db.filter ColumnFilter all

List of usage examples for org.apache.cassandra.db.filter ColumnFilter all

Introduction

In this page you can find the example usage for org.apache.cassandra.db.filter ColumnFilter all.

Prototype

public static ColumnFilter all(TableMetadata metadata) 

Source Link

Document

A filter that includes all columns for the provided table.

Usage

From source file:com.stratio.cassandra.lucene.IndexService.java

License:Apache License

/**
 * Retrieves from the local storage the {@link Row}s in the specified partition slice.
 *
 * @param key the partition key/*from  ww w. ja  v  a2s  .  co m*/
 * @param clusterings the clustering keys
 * @param nowInSec max allowed time in seconds
 * @param opGroup operation group spanning the calling operation
 * @return a {@link Row} iterator
 */
public UnfilteredRowIterator read(DecoratedKey key, NavigableSet<Clustering> clusterings, int nowInSec,
        OpOrder.Group opGroup) {
    ClusteringIndexNamesFilter filter = new ClusteringIndexNamesFilter(clusterings, false);
    ColumnFilter columnFilter = ColumnFilter.all(metadata);
    return SinglePartitionReadCommand.create(metadata, nowInSec, key, columnFilter, filter)
            .queryMemtableAndDisk(table, opGroup);
}

From source file:io.puntanegra.fhir.index.FhirIndexService.java

License:Apache License

/**
 * Retrieves from the local storage the {@link Row}s in the specified
 * partition slice./*from   ww w .j  a  va  2s . c  om*/
 *
 * @param key
 *            the partition key
 * @param clusterings
 *            the clustering keys
 * @param nowInSec
 *            max allowed time in seconds
 * @param opGroup
 *            operation group spanning the calling operation
 * @return a {@link Row} iterator
 */
private UnfilteredRowIterator read(DecoratedKey key, NavigableSet<Clustering> clusterings, int nowInSec,
        OpOrder.Group opGroup) {
    ClusteringIndexNamesFilter filter = new ClusteringIndexNamesFilter(clusterings, false);
    ColumnFilter columnFilter = ColumnFilter.all(metadata);
    return SinglePartitionReadCommand.create(metadata, nowInSec, key, columnFilter, filter)
            .queryMemtableAndDisk(table, opGroup);
}