io.deephaven.engine.table.impl.sources.regioned.DeferredColumnRegionChar Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-engine-table Show documentation
Show all versions of deephaven-engine-table Show documentation
Engine Table: Implementation and closely-coupled utilities
/**
* Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending
*/
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 ColumnRegionChar} implementation for deferred regions, i.e. regions that will be properly constructed on
* first access.
*/
public class DeferredColumnRegionChar
extends DeferredColumnRegionBase>
implements ColumnRegionChar {
DeferredColumnRegionChar(final long pageMask, @NotNull Supplier> resultRegionFactory) {
super(pageMask, resultRegionFactory);
}
@Override
public char getChar(final long elementIndex) {
return getResultRegion().getChar(elementIndex);
}
@Override
public char getChar(@NotNull final FillContext context, final long elementIndex) {
return getResultRegion().getChar(context, elementIndex);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy