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

com.netflix.hollow.core.index.TestableUniqueKeyIndex Maven / Gradle / Ivy

There is a newer version: 7.13.0
Show newest version
package com.netflix.hollow.core.index;

import java.util.Collection;

/**
 * This package is for internal use. Do not depend on it.
 *
 * This interface allows us to re-use tests for two very similar classes. If we
 * merge {@link HollowPrimaryKeyIndex} and {@link HollowUniqueKeyIndex}, then this
 * interface won't be necessary.
 */
@SuppressWarnings({"DeprecatedIsStillUsed", "override"})
@Deprecated
interface TestableUniqueKeyIndex {
    void listenForDeltaUpdates();

    int getMatchingOrdinal(Object key);
    int getMatchingOrdinal(Object key1, Object key2);
    int getMatchingOrdinal(Object key1, Object key2, Object key3);

    Object[] getRecordKey(int ordinal);

    boolean containsDuplicates();

    Collection getDuplicateKeys();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy