UniqueKeyIndex
which can be built as follows:
UniqueKeyIndex<DataLocation, K> uki = UniqueKeyIndex.from(consumer, DataLocation.class)
.usingBean(k);
DataLocation m = uki.findMatch(k);
where K
is a class declaring key field paths members, annotated with
FieldPath
, and k
is an instance of
K
that is the key to find the unique DataLocation
object.@Deprecated public class DataLocationPrimaryKeyIndex extends com.netflix.hollow.api.consumer.index.AbstractHollowUniqueKeyIndex<OfflineDirectoryAPI,DataLocation> implements com.netflix.hollow.api.consumer.index.HollowUniqueKeyIndex<DataLocation>
Constructor and Description |
---|
DataLocationPrimaryKeyIndex(com.netflix.hollow.api.consumer.HollowConsumer consumer)
Deprecated.
|
DataLocationPrimaryKeyIndex(com.netflix.hollow.api.consumer.HollowConsumer consumer,
boolean isListenToDataRefresh)
Deprecated.
|
DataLocationPrimaryKeyIndex(com.netflix.hollow.api.consumer.HollowConsumer consumer,
boolean isListenToDataRefresh,
java.lang.String... fieldPaths)
Deprecated.
|
DataLocationPrimaryKeyIndex(com.netflix.hollow.api.consumer.HollowConsumer consumer,
java.lang.String... fieldPaths)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
DataLocation |
findMatch(java.lang.Object... keys)
Deprecated.
|
public DataLocationPrimaryKeyIndex(com.netflix.hollow.api.consumer.HollowConsumer consumer)
public DataLocationPrimaryKeyIndex(com.netflix.hollow.api.consumer.HollowConsumer consumer, boolean isListenToDataRefresh)
public DataLocationPrimaryKeyIndex(com.netflix.hollow.api.consumer.HollowConsumer consumer, java.lang.String... fieldPaths)
public DataLocationPrimaryKeyIndex(com.netflix.hollow.api.consumer.HollowConsumer consumer, boolean isListenToDataRefresh, java.lang.String... fieldPaths)
public DataLocation findMatch(java.lang.Object... keys)
findMatch
in interface com.netflix.hollow.api.consumer.index.HollowUniqueKeyIndex<DataLocation>
Copyright © 2021. All Rights Reserved.