use of io.confluent.ksql.planner.plan.LookupConstraint 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);
}
Aggregations