Example usage for org.apache.cassandra.db SinglePartitionReadCommand create

List of usage examples for org.apache.cassandra.db SinglePartitionReadCommand create

Introduction

In this page you can find the example usage for org.apache.cassandra.db SinglePartitionReadCommand create.

Prototype

public static SinglePartitionReadCommand create(TableMetadata metadata, int nowInSec, ColumnFilter columnFilter,
        RowFilter rowFilter, DataLimits limits, DecoratedKey partitionKey,
        ClusteringIndexFilter clusteringIndexFilter, IndexMetadata indexMetadata) 

Source Link

Document

Creates a new read command on a single partition.

Usage

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

License:Apache License

protected UnfilteredRowIterator read(DecoratedKey key, ClusteringIndexFilter filter) {
    return SinglePartitionReadCommand
            .create(isForThrift(), table.metadata, command.nowInSec(), command.columnFilter(),
                    command.rowFilter(), command.limits(), key, filter)
            .queryMemtableAndDisk(table, orderGroup.baseReadOpOrderGroup());
}

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

License:Apache License

public UnfilteredRowIterator read(DecoratedKey key, ClusteringIndexFilter filter) {
    return SinglePartitionReadCommand
            .create(isForThrift(), table.metadata, command.nowInSec(), command.columnFilter(),
                    command.rowFilter(), command.limits(), key, filter)
            .queryMemtableAndDisk(table, orderGroup.baseReadOpOrderGroup());
}