io.deephaven.engine.table.impl.sources.UngroupedBoxedFloatObjectVectorColumnSource 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_FLOAT;
/**
* An Ungrouped Column sourced for the Boxed Type Float.
*
* 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 UngroupedBoxedFloatObjectVectorColumnSource extends UngroupedObjectVectorColumnSource {
public UngroupedBoxedFloatObjectVectorColumnSource(ColumnSource> innerSource) {
super(innerSource);
}
@Override
public float getFloat(long rowKey) {
final Float result = get(rowKey);
return result == null ? NULL_FLOAT : result;
}
@Override
public float getPrevFloat(long rowKey) {
final Float result = getPrev(rowKey);
return result == null ? NULL_FLOAT : result;
}
}