List of usage examples for org.apache.cassandra.db SinglePartitionReadCommand create
public static SinglePartitionReadCommand create(TableMetadata metadata, int nowInSec, DecoratedKey key, ColumnFilter columnFilter, ClusteringIndexFilter filter)
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 w w w.j av a2 s. com * @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./*w w w . j a va 2 s . c o m*/ * * @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); }