io.deephaven.engine.table.impl.sources.UngroupedBoxedLongObjectVectorColumnSource 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_LONG;
/**
* An Ungrouped Column sourced for the Boxed Type Long.
*
* 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 UngroupedBoxedLongObjectVectorColumnSource extends UngroupedObjectVectorColumnSource {
public UngroupedBoxedLongObjectVectorColumnSource(ColumnSource> innerSource) {
super(innerSource);
}
@Override
public long getLong(long rowKey) {
final Long result = get(rowKey);
return result == null ? NULL_LONG : result;
}
@Override
public long getPrevLong(long rowKey) {
final Long result = getPrev(rowKey);
return result == null ? NULL_LONG : result;
}
}