Search in sources :

Example 6 with StreamSource

use of io.confluent.ksql.execution.plan.StreamSource in project ksql by confluentinc.

the class PlanInfoExtractorTest method setUp.

@Before
public void setUp() {
    streamSource = new StreamSource(new ExecutionStepPropertiesV1(queryContext), "s1", formats, Optional.empty(), schema, OptionalInt.of(SystemColumns.CURRENT_PSEUDOCOLUMN_VERSION_NUMBER));
    tableSource = new TableSource(new ExecutionStepPropertiesV1(queryContext), "t1", formats, Optional.empty(), schema, SystemColumns.CURRENT_PSEUDOCOLUMN_VERSION_NUMBER, formats);
    streamSourceRepartitioned = new StreamSelectKey<>(new ExecutionStepPropertiesV1(queryContext), streamSource, ImmutableList.of(repartitionKey));
    streamAndTableJoined = new StreamTableJoin<>(new ExecutionStepPropertiesV1(queryContext), JoinType.LEFT, joinKey, formats, streamSource, tableSource);
    streamRepartitionedAndTableJoined = new StreamTableJoin<>(new ExecutionStepPropertiesV1(queryContext), JoinType.LEFT, joinKey, formats, streamSourceRepartitioned, tableSource);
    streamAndTableJoinedRepartitioned = new StreamSelectKey<>(new ExecutionStepPropertiesV1(queryContext), streamAndTableJoined, ImmutableList.of(repartitionKey));
    planInfoExtractor = new PlanInfoExtractor();
}
Also used : TableSource(io.confluent.ksql.execution.plan.TableSource) StreamSource(io.confluent.ksql.execution.plan.StreamSource) ExecutionStepPropertiesV1(io.confluent.ksql.execution.plan.ExecutionStepPropertiesV1) PlanInfoExtractor(io.confluent.ksql.execution.plan.PlanInfoExtractor) Before(org.junit.Before)

Aggregations

StreamSource (io.confluent.ksql.execution.plan.StreamSource)6 WindowedStreamSource (io.confluent.ksql.execution.plan.WindowedStreamSource)5 ExecutionStepPropertiesV1 (io.confluent.ksql.execution.plan.ExecutionStepPropertiesV1)3 LogicalSchema (io.confluent.ksql.schema.ksql.LogicalSchema)2 GenericKey (io.confluent.ksql.GenericKey)1 GenericRow (io.confluent.ksql.GenericRow)1 MaterializationInfo (io.confluent.ksql.execution.materialization.MaterializationInfo)1 ExecutionKeyFactory (io.confluent.ksql.execution.plan.ExecutionKeyFactory)1 KStreamHolder (io.confluent.ksql.execution.plan.KStreamHolder)1 KTableHolder (io.confluent.ksql.execution.plan.KTableHolder)1 PlanInfo (io.confluent.ksql.execution.plan.PlanInfo)1 PlanInfoExtractor (io.confluent.ksql.execution.plan.PlanInfoExtractor)1 SourceStep (io.confluent.ksql.execution.plan.SourceStep)1 TableSource (io.confluent.ksql.execution.plan.TableSource)1 TableSourceV1 (io.confluent.ksql.execution.plan.TableSourceV1)1 WindowedTableSource (io.confluent.ksql.execution.plan.WindowedTableSource)1 RuntimeBuildContext (io.confluent.ksql.execution.runtime.RuntimeBuildContext)1 AddKeyAndPseudoColumns (io.confluent.ksql.execution.streams.SourceBuilderUtils.AddKeyAndPseudoColumns)1 SourceBuilderUtils.buildSchema (io.confluent.ksql.execution.streams.SourceBuilderUtils.buildSchema)1 SourceBuilderUtils.buildSourceConsumed (io.confluent.ksql.execution.streams.SourceBuilderUtils.buildSourceConsumed)1