public static class MiniPlanUnitTestBase.MiniPlanTestBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<Map<String,Object>> |
baselineRecords |
protected Integer |
expectBatchNum |
protected BatchSchema |
expectSchema |
protected boolean |
expectZeroRow |
protected RecordBatch |
root |
| Constructor and Description |
|---|
MiniPlanTestBuilder() |
| Modifier and Type | Method and Description |
|---|---|
MiniPlanUnitTestBase.MiniPlanTestBuilder |
baselineValues(Object... baselineValues)
Specify one row of expected values.
|
MiniPlanUnitTestBase.MiniPlanTestBuilder |
expectBatchNum(int expectBatchNum)
Specify the expected number of batches from operator tree.
|
MiniPlanUnitTestBase.MiniPlanTestBuilder |
expectNullBatch(boolean expectNullBatch)
Specify one special case, where the operator tree should return 0 batch.
|
MiniPlanUnitTestBase.MiniPlanTestBuilder |
expectSchema(BatchSchema batchSchema)
Specify the expected batch schema.
|
MiniPlanUnitTestBase.MiniPlanTestBuilder |
expectZeroRow(boolean expectedZeroRow) |
void |
go() |
MiniPlanUnitTestBase.MiniPlanTestBuilder |
root(RecordBatch root)
Specify the root operator for a MiniPlan.
|
protected RecordBatch root
protected Integer expectBatchNum
protected BatchSchema expectSchema
protected boolean expectZeroRow
public MiniPlanUnitTestBase.MiniPlanTestBuilder root(RecordBatch root)
root - public MiniPlanUnitTestBase.MiniPlanTestBuilder expectSchema(BatchSchema batchSchema)
batchSchema - public MiniPlanUnitTestBase.MiniPlanTestBuilder baselineValues(Object... baselineValues)
baselineValues - public MiniPlanUnitTestBase.MiniPlanTestBuilder expectNullBatch(boolean expectNullBatch)
expectNullBatch - public MiniPlanUnitTestBase.MiniPlanTestBuilder expectBatchNum(int expectBatchNum)
public MiniPlanUnitTestBase.MiniPlanTestBuilder expectZeroRow(boolean expectedZeroRow)
Copyright © 2022 The Apache Software Foundation. All rights reserved.