UniqueKeyIndex
which can be built as follows:
UniqueKeyIndex<OfflineAddressBook, K> uki = UniqueKeyIndex.from(consumer, OfflineAddressBook.class)
.usingBean(k);
OfflineAddressBook 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 OfflineAddressBook
object.@Deprecated public class OfflineAddressBookPrimaryKeyIndex extends com.netflix.hollow.api.consumer.index.AbstractHollowUniqueKeyIndex<OfflineDirectoryAPI,OfflineAddressBook> implements com.netflix.hollow.api.consumer.index.HollowUniqueKeyIndex<OfflineAddressBook>
Constructor and Description |
---|
OfflineAddressBookPrimaryKeyIndex(com.netflix.hollow.api.consumer.HollowConsumer consumer)
Deprecated.
|
OfflineAddressBookPrimaryKeyIndex(com.netflix.hollow.api.consumer.HollowConsumer consumer,
boolean isListenToDataRefresh)
Deprecated.
|
OfflineAddressBookPrimaryKeyIndex(com.netflix.hollow.api.consumer.HollowConsumer consumer,
boolean isListenToDataRefresh,
java.lang.String... fieldPaths)
Deprecated.
|
OfflineAddressBookPrimaryKeyIndex(com.netflix.hollow.api.consumer.HollowConsumer consumer,
java.lang.String... fieldPaths)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
OfflineAddressBook |
findMatch(java.lang.Object... keys)
Deprecated.
|
public OfflineAddressBookPrimaryKeyIndex(com.netflix.hollow.api.consumer.HollowConsumer consumer)
public OfflineAddressBookPrimaryKeyIndex(com.netflix.hollow.api.consumer.HollowConsumer consumer, boolean isListenToDataRefresh)
public OfflineAddressBookPrimaryKeyIndex(com.netflix.hollow.api.consumer.HollowConsumer consumer, java.lang.String... fieldPaths)
public OfflineAddressBookPrimaryKeyIndex(com.netflix.hollow.api.consumer.HollowConsumer consumer, boolean isListenToDataRefresh, java.lang.String... fieldPaths)
public OfflineAddressBook findMatch(java.lang.Object... keys)
findMatch
in interface com.netflix.hollow.api.consumer.index.HollowUniqueKeyIndex<OfflineAddressBook>
Copyright © 2021. All Rights Reserved.