Search in sources :

Example 11 with CascadesPlanner

use of com.apple.foundationdb.record.query.plan.temp.CascadesPlanner in project fdb-record-layer by FoundationDB.

the class QueryPlanFullySortedTest method setup.

protected void setup(@Nullable RecordMetaDataHook hook) {
    RecordMetaDataBuilder builder = RecordMetaData.newBuilder().setRecords(TestRecords1Proto.getDescriptor());
    if (hook != null) {
        hook.apply(builder);
    }
    metaData = builder.getRecordMetaData();
    planner = useRewritePlanner ? new CascadesPlanner(metaData, new RecordStoreState(null, null)) : new RecordQueryPlanner(metaData, new RecordStoreState(null, null));
}
Also used : RecordMetaDataBuilder(com.apple.foundationdb.record.RecordMetaDataBuilder) RecordQueryPlanner(com.apple.foundationdb.record.query.plan.RecordQueryPlanner) RecordStoreState(com.apple.foundationdb.record.RecordStoreState) CascadesPlanner(com.apple.foundationdb.record.query.plan.temp.CascadesPlanner)

Aggregations

CascadesPlanner (com.apple.foundationdb.record.query.plan.temp.CascadesPlanner)11 FDBQueriedRecord (com.apple.foundationdb.record.provider.foundationdb.FDBQueriedRecord)10 FDBRecordContext (com.apple.foundationdb.record.provider.foundationdb.FDBRecordContext)10 RecordQuery (com.apple.foundationdb.record.query.RecordQuery)10 RecordQueryPlan (com.apple.foundationdb.record.query.plan.plans.RecordQueryPlan)10 Message (com.google.protobuf.Message)10 BooleanSource (com.apple.test.BooleanSource)9 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)9 HashSet (java.util.HashSet)4 OrComponent (com.apple.foundationdb.record.query.expressions.OrComponent)2 RecordQueryPlanner (com.apple.foundationdb.record.query.plan.RecordQueryPlanner)2 ExecuteProperties (com.apple.foundationdb.record.ExecuteProperties)1 PlanHashable (com.apple.foundationdb.record.PlanHashable)1 RecordCursorIterator (com.apple.foundationdb.record.RecordCursorIterator)1 RecordMetaDataBuilder (com.apple.foundationdb.record.RecordMetaDataBuilder)1 RecordStoreState (com.apple.foundationdb.record.RecordStoreState)1 TestHelpers.assertDiscardedAtMost (com.apple.foundationdb.record.TestHelpers.assertDiscardedAtMost)1 TestHelpers.assertDiscardedExactly (com.apple.foundationdb.record.TestHelpers.assertDiscardedExactly)1 TestHelpers.assertDiscardedNone (com.apple.foundationdb.record.TestHelpers.assertDiscardedNone)1 TestHelpers.assertLoadRecord (com.apple.foundationdb.record.TestHelpers.assertLoadRecord)1