Search in sources :

Example 6 with ISearchPredicate

use of org.apache.hyracks.storage.common.ISearchPredicate in project asterixdb by apache.

the class TreeIndexTestUtils method checkScan.

@SuppressWarnings("unchecked")
public void checkScan(IIndexTestContext ctx) throws Exception {
    if (LOGGER.isLoggable(Level.INFO)) {
        LOGGER.info("Testing Scan.");
    }
    ITreeIndexCursor scanCursor = (ITreeIndexCursor) ctx.getIndexAccessor().createSearchCursor(false);
    ISearchPredicate nullPred = createNullSearchPredicate();
    ctx.getIndexAccessor().search(scanCursor, nullPred);
    Iterator<CheckTuple> checkIter = ctx.getCheckTuples().iterator();
    checkExpectedResults(scanCursor, ctx.getCheckTuples(), ctx.getFieldSerdes(), ctx.getKeyFieldCount(), checkIter);
}
Also used : ITreeIndexCursor(org.apache.hyracks.storage.am.common.api.ITreeIndexCursor) ISearchPredicate(org.apache.hyracks.storage.common.ISearchPredicate)

Aggregations

ISearchPredicate (org.apache.hyracks.storage.common.ISearchPredicate)6 ITupleReference (org.apache.hyracks.dataflow.common.data.accessors.ITupleReference)4 ILSMIndexOperationContext (org.apache.hyracks.storage.am.lsm.common.api.ILSMIndexOperationContext)4 SearchPredicate (org.apache.hyracks.storage.am.rtree.impls.SearchPredicate)4 IIndexCursor (org.apache.hyracks.storage.common.IIndexCursor)4 ArrayList (java.util.ArrayList)2 ILSMDiskComponentBulkLoader (org.apache.hyracks.storage.am.lsm.common.api.ILSMDiskComponentBulkLoader)2 IIndexBulkLoader (org.apache.hyracks.storage.common.IIndexBulkLoader)2 BloomFilterSpecification (org.apache.hyracks.storage.am.bloomfilter.impls.BloomFilterSpecification)1 BTree (org.apache.hyracks.storage.am.btree.impls.BTree)1 RangePredicate (org.apache.hyracks.storage.am.btree.impls.RangePredicate)1 ITreeIndex (org.apache.hyracks.storage.am.common.api.ITreeIndex)1 ITreeIndexCursor (org.apache.hyracks.storage.am.common.api.ITreeIndexCursor)1 LSMIndexSearchCursor (org.apache.hyracks.storage.am.lsm.common.impls.LSMIndexSearchCursor)1 MergeOperation (org.apache.hyracks.storage.am.lsm.common.impls.MergeOperation)1