io.deephaven.server.table.stats.ObjectChunkedStats Maven / Gradle / Ivy
The newest version!
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
// ****** AUTO-GENERATED CLASS - DO NOT EDIT MANUALLY
// ****** Edit CharacterChunkedStats and run "./gradlew replicateColumnStats" to regenerate
//
// @formatter:off
package io.deephaven.server.table.stats;
import java.util.Set;
import java.util.HashSet;
import gnu.trove.map.TObjectLongMap;
import gnu.trove.map.hash.TObjectLongHashMap;
import io.deephaven.engine.rowset.RowSet;
import io.deephaven.engine.table.ColumnSource;
import io.deephaven.engine.table.Table;
import io.deephaven.engine.table.impl.util.ColumnHolder;
import io.deephaven.engine.table.iterators.ObjectColumnIterator;
import io.deephaven.engine.table.iterators.ChunkedObjectColumnIterator;
import io.deephaven.engine.util.TableTools;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
public class ObjectChunkedStats implements ChunkedStatsKernel {
private final int maxUniqueToCollect;
private final int maxUniqueToDisplay;
public ObjectChunkedStats(int maxUniqueToCollect, int maxUniqueToDisplay) {
this.maxUniqueToCollect = maxUniqueToCollect;
this.maxUniqueToDisplay = maxUniqueToDisplay;
}
@Override
public Table processChunks(final RowSet rowSet, final ColumnSource> columnSource, boolean usePrev) {
long count = 0;
int uniqueCount = 0;
final TObjectLongMap