T- the type that this is an index for
V- the type of the value used for indexing
@ThreadSafe public abstract class IndexDefinition<T,V> extends Object
IndexedSet. For example, if an indexed set stores inodes, and we want to be able to look them up by their "id" field, we would define an index like so:
public class IndexDefinition
|Constructor and Description|
Constructs a new
|Modifier and Type||Method and Description|
Gets the value of the field that serves as index.
public IndexDefinition(boolean isUnique)
isUnique- whether the index is unique. A unique index is an index where each index value only maps to one object; A non-unique index is an index where an index value can map to one or more objects.
Copyright © 2022. All Rights Reserved.