io.deephaven.kafka.KeyOrValueProcessorImpl 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
/**
* Copyright (c) 2016-2023 Deephaven Data Labs and Patent Pending
*/
package io.deephaven.kafka;
import io.deephaven.chunk.ObjectChunk;
import io.deephaven.chunk.WritableChunk;
import io.deephaven.chunk.attributes.Values;
import io.deephaven.kafka.ingest.FieldCopier;
import io.deephaven.kafka.ingest.KafkaIngesterException;
import io.deephaven.kafka.ingest.KeyOrValueProcessor;
import java.util.List;
import java.util.Objects;
final class KeyOrValueProcessorImpl implements KeyOrValueProcessor {
private final int[] chunkOffsets;
private final List copiers;
private final boolean allowNulls;
public KeyOrValueProcessorImpl(final int[] chunkOffsets, List copiers, boolean allowNulls) {
this.chunkOffsets = Objects.requireNonNull(chunkOffsets);
this.copiers = Objects.requireNonNull(copiers);
this.allowNulls = allowNulls;
}
@Override
public void handleChunk(ObjectChunk
© 2015 - 2024 Weber Informatics LLC | Privacy Policy