io.deephaven.engine.table.iterators.SerialByteColumnIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-engine-api Show documentation
Show all versions of deephaven-engine-api Show documentation
Engine API: Engine API module, suitable as a compile-time dependency for most queries
The newest version!
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
// ****** AUTO-GENERATED CLASS - DO NOT EDIT MANUALLY
// ****** Edit SerialCharacterColumnIterator and run "./gradlew replicateColumnIterators" to regenerate
//
// @formatter:off
package io.deephaven.engine.table.iterators;
import io.deephaven.engine.rowset.RowSet;
import io.deephaven.engine.table.ColumnSource;
import org.jetbrains.annotations.NotNull;
/**
* Serial {@link ByteColumnIterator} implementation for {@link ColumnSource column sources} of primitive bytes.
*/
public final class SerialByteColumnIterator
extends SerialColumnIterator
implements ByteColumnIterator {
/**
* Create a new SerialByteColumnIterator.
*
* @param columnSource The {@link ColumnSource} to fetch values from
* @param rowSet The {@link RowSet} to iterate over
* @param firstRowKey The first row key from {@code rowSet} to iterate
* @param length The total number of rows to iterate
*/
public SerialByteColumnIterator(
@NotNull final ColumnSource columnSource,
@NotNull final RowSet rowSet,
final long firstRowKey,
final long length) {
super(columnSource, rowSet, firstRowKey, length);
}
/**
* Create a new SerialByteColumnIterator.
*
* @param columnSource The {@link ColumnSource} to fetch values from
* @param rowSet The {@link RowSet} to iterate over
*/
public SerialByteColumnIterator(
@NotNull final ColumnSource columnSource,
@NotNull final RowSet rowSet) {
this(columnSource, rowSet, rowSet.firstRowKey(), rowSet.size());
}
@Override
public byte nextByte() {
return columnSource.getByte(advanceAndGetNextRowKey());
}
}