io.deephaven.kafka.ingest.GenericRecordFieldCopier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-extensions-kafka Show documentation
Show all versions of deephaven-extensions-kafka Show documentation
Kafka: Integrating Engine tables with Kafka
The newest version!
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package io.deephaven.kafka.ingest;
import org.apache.avro.Schema;
import java.util.regex.Pattern;
public abstract class GenericRecordFieldCopier implements FieldCopier {
protected final int[] fieldPath;
protected GenericRecordFieldCopier(final String fieldPathStr, final Pattern separator, final Schema schema) {
this.fieldPath = GenericRecordUtil.getFieldPath(fieldPathStr, separator, schema);
}
}