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

io.deephaven.engine.table.impl.BothIncrementalNaturalJoinStateManager Maven / Gradle / Ivy

There is a newer version: 0.37.1
Show newest version
/**
 * Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending
 */
package io.deephaven.engine.table.impl;

import io.deephaven.engine.rowset.RowSequence;
import io.deephaven.engine.rowset.RowSet;
import io.deephaven.engine.table.ColumnSource;
import io.deephaven.engine.table.Context;
import io.deephaven.engine.table.Table;
import io.deephaven.engine.table.impl.sources.LongArraySource;
import io.deephaven.engine.table.impl.util.WritableRowRedirection;
import org.jetbrains.annotations.NotNull;

public interface BothIncrementalNaturalJoinStateManager extends IncrementalNaturalJoinStateManager {
    InitialBuildContext makeInitialBuildContext();

    void buildFromRightSide(final Table rightTable, ColumnSource[] rightSources);
    void decorateLeftSide(RowSet leftRowSet, ColumnSource[] leftSources, InitialBuildContext ibc);
    void compactAll();

    WritableRowRedirection buildRowRedirectionFromRedirections(QueryTable leftTable, boolean exactMatch, InitialBuildContext ibc, JoinControl.RedirectionType redirectionType);

    Context makeProbeContext(ColumnSource[] probeSources, long maxSize);
    Context makeBuildContext(ColumnSource[] buildSources, long maxSize);

    void addRightSide(Context bc, RowSequence rightIndex, ColumnSource [] rightSources, @NotNull final NaturalJoinModifiedSlotTracker modifiedSlotTracker);
    void removeRight(final Context pc, RowSequence rightIndex, ColumnSource[] rightSources, @NotNull final NaturalJoinModifiedSlotTracker modifiedSlotTracker);
    void modifyByRight(Context pc, RowSet modified, ColumnSource[] rightSources, @NotNull final NaturalJoinModifiedSlotTracker modifiedSlotTracker);
    void applyRightShift(Context pc, ColumnSource [] rightSources, RowSet shiftedRowSet, long shiftDelta, @NotNull final NaturalJoinModifiedSlotTracker modifiedSlotTracker);

    void addLeftSide(final Context bc, RowSequence leftIndex, ColumnSource[] leftSources, LongArraySource leftRedirections, NaturalJoinModifiedSlotTracker modifiedSlotTracker);
    void removeLeft(Context pc, RowSequence leftIndex, ColumnSource [] leftSources);
    void applyLeftShift(Context pc, ColumnSource[] leftSources, RowSet shiftedRowSet, long shiftDelta);

    interface InitialBuildContext extends Context {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy