Search in sources :

Example 1 with Builder

use of io.confluent.ksql.GenericKey.Builder in project ksql by confluentinc.

the class GenericRecordFactory method buildKey.

private static GenericKey buildKey(final LogicalSchema schema, final Map<ColumnName, Object> values) {
    final Builder builder = GenericKey.builder(schema);
    schema.key().stream().map(Column::name).map(values::get).forEach(builder::append);
    return builder.build();
}
Also used : Column(io.confluent.ksql.schema.ksql.Column) Builder(io.confluent.ksql.GenericKey.Builder)

Aggregations

Builder (io.confluent.ksql.GenericKey.Builder)1 Column (io.confluent.ksql.schema.ksql.Column)1