All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.deephaven.engine.table.impl.sources.regioned.DeferredColumnRegionDouble Maven / Gradle / Ivy

There is a newer version: 0.37.1
Show newest version
/**
 * Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending
 */
/*
 * ---------------------------------------------------------------------------------------------------------------------
 * AUTO-GENERATED CLASS - DO NOT EDIT MANUALLY - for any changes edit DeferredColumnRegionChar and regenerate
 * ---------------------------------------------------------------------------------------------------------------------
 */
package io.deephaven.engine.table.impl.sources.regioned;

import io.deephaven.chunk.attributes.Any;
import org.jetbrains.annotations.NotNull;

import java.util.function.Supplier;

/**
 * {@link ColumnRegionDouble} implementation for deferred regions, i.e. regions that will be properly constructed on
 * first access.
 */
public class DeferredColumnRegionDouble
        extends DeferredColumnRegionBase>
        implements ColumnRegionDouble {

    DeferredColumnRegionDouble(final long pageMask, @NotNull Supplier> resultRegionFactory) {
        super(pageMask, resultRegionFactory);
    }

    @Override
    public double getDouble(final long elementIndex) {
        return getResultRegion().getDouble(elementIndex);
    }

    @Override
    public double getDouble(@NotNull final FillContext context, final long elementIndex) {
        return getResultRegion().getDouble(context, elementIndex);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy