Search in sources :

Example 1 with KsqlKey

use of io.confluent.ksql.execution.streams.materialization.Locator.KsqlKey in project ksql by confluentinc.

the class PullPhysicalPlan method getKeys.

public List<KsqlKey> getKeys() {
    final List<KsqlKey> list = new ArrayList<>();
    for (LookupConstraint c : lookupConstraints) {
        if (c instanceof KeyConstraint) {
            final KeyConstraint kc = (KeyConstraint) c;
            list.add(kc.getKsqlKey());
        } else {
            // we shouldn't see any NonKeyContraints here
            return Collections.emptyList();
        }
    }
    return ImmutableList.copyOf(list);
}
Also used : LookupConstraint(io.confluent.ksql.planner.plan.LookupConstraint) KeyConstraint(io.confluent.ksql.planner.plan.KeyConstraint) KsqlKey(io.confluent.ksql.execution.streams.materialization.Locator.KsqlKey) ArrayList(java.util.ArrayList)

Aggregations

KsqlKey (io.confluent.ksql.execution.streams.materialization.Locator.KsqlKey)1 KeyConstraint (io.confluent.ksql.planner.plan.KeyConstraint)1 LookupConstraint (io.confluent.ksql.planner.plan.LookupConstraint)1 ArrayList (java.util.ArrayList)1