io.deephaven.engine.table.impl.sources.UngroupedBoxedIntObjectVectorColumnSource Maven / Gradle / Ivy
Show all versions of deephaven-engine-table Show documentation
/**
* Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending
*/
/*
* ---------------------------------------------------------------------------------------------------------------------
* AUTO-GENERATED CLASS - DO NOT EDIT MANUALLY - for any changes edit UngroupedBoxedCharObjectVectorColumnSource and regenerate
* ---------------------------------------------------------------------------------------------------------------------
*/
package io.deephaven.engine.table.impl.sources;
import io.deephaven.engine.table.ColumnSource;
import io.deephaven.vector.ObjectVector;
import static io.deephaven.util.QueryConstants.NULL_INT;
/**
* An Ungrouped Column sourced for the Boxed Type Integer.
*
* The UngroupedBoxedC-harVectorColumnSource is replicated to all other types with
* io.deephaven.engine.table.impl.sources.Replicate.
*
* (C-har is deliberately spelled that way in order to prevent Replicate from altering this very comment).
*/
public class UngroupedBoxedIntObjectVectorColumnSource extends UngroupedObjectVectorColumnSource {
public UngroupedBoxedIntObjectVectorColumnSource(ColumnSource> innerSource) {
super(innerSource);
}
@Override
public int getInt(long rowKey) {
final Integer result = get(rowKey);
return result == null ? NULL_INT : result;
}
@Override
public int getPrevInt(long rowKey) {
final Integer result = getPrev(rowKey);
return result == null ? NULL_INT : result;
}
}