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

io.deephaven.engine.table.impl.by.StaticColumnSourceTransformer 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.by;

import io.deephaven.engine.table.ColumnSource;
import org.jetbrains.annotations.NotNull;

import java.util.Map;

class StaticColumnSourceTransformer implements AggregationContextTransformer {

    private final String name;
    private final ColumnSource columnSource;

    StaticColumnSourceTransformer(@NotNull final String name, @NotNull final ColumnSource columnSource) {
        this.name = name;
        this.columnSource = columnSource;
    }

    @Override
    public void resultColumnFixup(@NotNull final Map> resultColumns) {
        resultColumns.put(name, columnSource);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy