public enum Segments extends Enum<Segments>
IndexerMetadataStorageCoordinator, specifying whether
only visible segments, or visible as well as overshadowed segments should be included in results.
Visibility (and overshadowness - these terms are antonyms) may be defined on an interval (or a series of intervals).
Consider the following example:
|----| I
|----| S'
|-------| S
Here, I denotes an interval in question, S and S' are segments. S' is newer (has a higher version) than S.
Segment S is overshadowed (by S') on the interval I, though it's visible (non-overshadowed) outside of I: more
specifically, it's visible on the interval [end of S', end of S].
A segment is considered visible on a series of intervals if it's visible on any of the intervals in the series. A
segment is considered (fully) overshadowed on a series of intervals if it's overshadowed (= non-visible) on all of
the intervals in the series.
If not specified otherwise, visibility (or overshadowness) should be assumed on the interval (-inf, +inf).| Enum Constant and Description |
|---|
INCLUDING_OVERSHADOWED
Specifies that visible as well as overshadowed segments should be included in results.
|
ONLY_VISIBLE
Specifies that only visible segments should be included in results.
|
| Modifier and Type | Method and Description |
|---|---|
static Segments |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Segments[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Segments ONLY_VISIBLE
public static final Segments INCLUDING_OVERSHADOWED
public static Segments[] values()
for (Segments c : Segments.values()) System.out.println(c);
public static Segments valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.