use of io.confluent.ksql.schema.ksql.LogicalSchema.Builder in project ksql by confluentinc.
the class QueryStreamHandler method preparePushProjectionSchema.
private LogicalSchema preparePushProjectionSchema(final LogicalSchema schema) {
final Builder projectionSchema = LogicalSchema.builder();
schema.value().forEach(projectionSchema::valueColumn);
return projectionSchema.build();
}
use of io.confluent.ksql.schema.ksql.LogicalSchema.Builder in project ksql by confluentinc.
the class PushQueryPublisher method valueColumnOnly.
private static LogicalSchema valueColumnOnly(final LogicalSchema logicalSchema) {
// Push queries only return value columns, but query metadata schema includes key and meta:
final Builder builder = LogicalSchema.builder();
logicalSchema.value().forEach(builder::valueColumn);
return builder.build();
}
Aggregations