Enum Segments
- All Implemented Interfaces:
Serializable,Comparable<Segments>
This enum is used as a parameter for several methods in
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 Summary
Enum ConstantsEnum ConstantDescriptionSpecifies that visible as well as overshadowed segments should be included in results.Specifies that only visible segments should be included in results. -
Method Summary
-
Enum Constant Details
-
ONLY_VISIBLE
Specifies that only visible segments should be included in results. -
INCLUDING_OVERSHADOWED
Specifies that visible as well as overshadowed segments should be included in results.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-