Package | Description |
---|---|
alluxio.collections |
Modifier and Type | Method and Description |
---|---|
static <T,V> IndexDefinition<T,V> |
IndexDefinition.ofNonUnique(java.util.function.Function<T,V> definition)
Creates a new, non-unique index definition.
|
static <T,V> IndexDefinition<T,V> |
IndexDefinition.ofUnique(java.util.function.Function<T,V> definition)
Creates a new, unique index definition.
|
Modifier and Type | Method and Description |
---|---|
<V> boolean |
IndexedSet.contains(IndexDefinition<T,V> indexDefinition,
V value)
Whether there is an object with the specified index field value in the set.
|
<V> Set<T> |
IndexedSet.getByField(IndexDefinition<T,V> indexDefinition,
V value)
Gets a subset of objects with the specified field value.
|
<V> T |
IndexedSet.getFirstByField(IndexDefinition<T,V> indexDefinition,
V value)
Gets the object from the set of objects with the specified field value.
|
<V> int |
IndexedSet.removeByField(IndexDefinition<T,V> indexDefinition,
V value)
Removes the subset of objects with the specified index field value.
|
Constructor and Description |
---|
IndexedSet(IndexDefinition<T,?> primaryIndexDefinition,
IndexDefinition<T,?>... otherIndexDefinitions)
Constructs a new
IndexedSet instance with at least one field as the index. |
IndexedSet(IndexDefinition<T,?> primaryIndexDefinition,
IndexDefinition<T,?>... otherIndexDefinitions)
Constructs a new
IndexedSet instance with at least one field as the index. |
NonUniqueFieldIndex(IndexDefinition<T,V> indexDefinition)
Constructs a new
NonUniqueFieldIndex instance. |
UniqueFieldIndex(IndexDefinition<T,V> indexDefinition)
Constructs a new
UniqueFieldIndex instance. |
Copyright © 2023. All Rights Reserved.