io.deephaven.engine.table.impl.join.dupcompact.ObjectDupCompactKernel 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
*/
/*
* ---------------------------------------------------------------------------------------------------------------------
* AUTO-GENERATED CLASS - DO NOT EDIT MANUALLY - for any changes edit CharDupCompactKernel and regenerate
* ---------------------------------------------------------------------------------------------------------------------
*/
package io.deephaven.engine.table.impl.join.dupcompact;
import java.util.Objects;
import io.deephaven.chunk.*;
import io.deephaven.chunk.attributes.Any;
import io.deephaven.chunk.attributes.ChunkPositions;
import io.deephaven.engine.rowset.chunkattributes.RowKeys;
import org.jetbrains.annotations.NotNull;
public class ObjectDupCompactKernel implements DupCompactKernel {
static final ObjectDupCompactKernel INSTANCE = new ObjectDupCompactKernel();
private ObjectDupCompactKernel() {
// Use the singleton INSTANCE
}
@Override
public int compactDuplicates(
@NotNull final WritableChunk extends Any> chunkToCompact,
@NotNull final WritableLongChunk rowKeys) {
return compactDuplicates(chunkToCompact.asWritableObjectChunk(), rowKeys);
}
@Override
public int compactDuplicatesPreferFirst(
@NotNull final WritableChunk extends Any> chunkToCompact,
@NotNull final WritableIntChunk chunkPositions) {
return compactDuplicatesPreferFirst(chunkToCompact.asWritableObjectChunk(), chunkPositions);
}
private static int compactDuplicates(
@NotNull final WritableObjectChunk
© 2015 - 2024 Weber Informatics LLC | Privacy Policy