@API(value=MAINTAINED) public interface IndexMaintenanceFilter
FDBRecordStore.indexMaintenanceFilter
Modifier and Type | Interface and Description |
---|---|
static class |
IndexMaintenanceFilter.IndexValues
Whether to maintain a subset of the indexable values for the given record.
|
Modifier and Type | Field and Description |
---|---|
static IndexMaintenanceFilter |
NO_NULLS
Do not put
null values into the index. |
static IndexMaintenanceFilter |
NORMAL
All records should be added to the index.
|
Modifier and Type | Method and Description |
---|---|
IndexMaintenanceFilter.IndexValues |
maintainIndex(Index index,
MessageOrBuilder record) |
default boolean |
maintainIndexValue(Index index,
MessageOrBuilder record,
IndexEntry indexEntry)
Get whether a specific index entry should be maintained.
|
static final IndexMaintenanceFilter NORMAL
static final IndexMaintenanceFilter NO_NULLS
null
values into the index.IndexMaintenanceFilter.IndexValues maintainIndex(@Nonnull Index index, @Nonnull MessageOrBuilder record)
default boolean maintainIndexValue(@Nonnull Index index, @Nonnull MessageOrBuilder record, @Nonnull IndexEntry indexEntry)
SOME
was returned from maintainIndex(com.apple.foundationdb.record.metadata.Index, com.google.protobuf.MessageOrBuilder)
.index
- index to checkrecord
- record that led to the index entryindexEntry
- potential entry in the indextrue
if the given entry should be maintained in the given index