public enum IndexingLevel extends java.lang.Enum<IndexingLevel>
Enum Constant and Description |
---|
BOTH
Cardinality information is stored and live notifications are dispatched
|
FULL
Full indexing is performed, set of instances is available
|
NONE
No indexing is performed
|
NOTIFICATIONS
Notifications are dispatched about the changes
|
STATISTICS
Only cardinality information is stored.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasInstances()
Tells whether the indexer shall perform instance indexing
|
boolean |
hasStatistics()
Tells whether the indexer shall perform separate statistics calculation for this level
|
IndexingLevel |
merge(IndexingLevel other)
Merge this level with the given other level, The resulting indexing level will provide the
functionality which conforms to both given levels.
|
boolean |
providesLevel(IndexingLevel level)
Returns whether the current indexing level includes all features from the parameter level
|
static IndexingLevel |
toLevel(IndexingService service) |
static IndexingLevel |
toLevel(java.util.Set<IndexingService> services) |
static IndexingLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IndexingLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IndexingLevel NONE
public static final IndexingLevel STATISTICS
NavigationHelper.countAllInstances(org.eclipse.emf.ecore.EClass)
, NavigationHelper.countFeatures(org.eclipse.emf.ecore.EStructuralFeature)
and NavigationHelper.countDataTypeInstances(org.eclipse.emf.ecore.EDataType)
with minimal memory footprint.public static final IndexingLevel NOTIFICATIONS
public static final IndexingLevel BOTH
public static final IndexingLevel FULL
public static IndexingLevel[] values()
for (IndexingLevel c : IndexingLevel.values()) System.out.println(c);
public static IndexingLevel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static IndexingLevel toLevel(IndexingService service)
public static IndexingLevel toLevel(java.util.Set<IndexingService> services)
public IndexingLevel merge(IndexingLevel other)
public boolean hasStatistics()
public boolean hasInstances()
public boolean providesLevel(IndexingLevel level)