本文整理汇总了Java中org.apache.cassandra.db.filter.ExtendedFilter.create方法的典型用法代码示例。如果您正苦于以下问题:Java ExtendedFilter.create方法的具体用法?Java ExtendedFilter.create怎么用?Java ExtendedFilter.create使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.cassandra.db.filter.ExtendedFilter
的用法示例。
在下文中一共展示了ExtendedFilter.create方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: makeExtendedFilter
import org.apache.cassandra.db.filter.ExtendedFilter; //导入方法依赖的package包/类
/**
* Allows generic range paging with the slice column filter.
* Typically, suppose we have rows A, B, C ... Z having each some columns in [1, 100].
* And suppose we want to page through the query that for all rows returns the columns
* within [25, 75]. For that, we need to be able to do a range slice starting at (row r, column c)
* and ending at (row Z, column 75), *but* that only return columns in [25, 75].
* That is what this method allows. The columnRange is the "window" of columns we are interested
* in each row, and columnStart (resp. columnEnd) is the start (resp. end) for the first
* (resp. last) requested row.
*/
public ExtendedFilter makeExtendedFilter(AbstractBounds<RowPosition> keyRange,
SliceQueryFilter columnRange,
Composite columnStart,
Composite columnStop,
List<IndexExpression> rowFilter,
int maxResults,
boolean countCQL3Rows,
long now)
{
DataRange dataRange = new DataRange.Paging(keyRange, columnRange, columnStart, columnStop, metadata.comparator);
return ExtendedFilter.create(this, dataRange, rowFilter, maxResults, countCQL3Rows, now);
}
示例2: beforeTest
import org.apache.cassandra.db.filter.ExtendedFilter; //导入方法依赖的package包/类
@Before
public void beforeTest()
{
ExtendedFilter filter = ExtendedFilter.create(BACKEND.getBaseCfs(),
DataRange.allData(new Murmur3Partitioner()),
null,
Integer.MAX_VALUE,
false,
System.currentTimeMillis());
controller = new QueryController(BACKEND, filter, TimeUnit.SECONDS.toMillis(10));
}
示例3: makeExtendedFilter
import org.apache.cassandra.db.filter.ExtendedFilter; //导入方法依赖的package包/类
/**
* Allows generic range paging with the slice column filter.
* Typically, suppose we have rows A, B, C ... Z having each some columns in [1, 100].
* And suppose we want to page throught the query that for all rows returns the columns
* within [25, 75]. For that, we need to be able to do a range slice starting at (row r, column c)
* and ending at (row Z, column 75), *but* that only return columns in [25, 75].
* That is what this method allows. The columnRange is the "window" of columns we are interested
* in each row, and columnStart (resp. columnEnd) is the start (resp. end) for the first
* (resp. end) requested row.
*/
public ExtendedFilter makeExtendedFilter(AbstractBounds<RowPosition> keyRange,
SliceQueryFilter columnRange,
Composite columnStart,
Composite columnStop,
List<IndexExpression> rowFilter,
int maxResults,
boolean countCQL3Rows,
long now)
{
DataRange dataRange = new DataRange.Paging(keyRange, columnRange, columnStart, columnStop, metadata.comparator);
return ExtendedFilter.create(this, dataRange, rowFilter, maxResults, countCQL3Rows, now);
}