public static enum SpanWeight.Postings extends Enum<SpanWeight.Postings>
Modifier and Type | Method and Description |
---|---|
SpanWeight.Postings |
atLeast(SpanWeight.Postings postings) |
abstract int |
getRequiredPostings() |
static SpanWeight.Postings |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpanWeight.Postings[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpanWeight.Postings POSITIONS
public static final SpanWeight.Postings PAYLOADS
public static final SpanWeight.Postings OFFSETS
public static SpanWeight.Postings[] values()
for (SpanWeight.Postings c : SpanWeight.Postings.values()) System.out.println(c);
public static SpanWeight.Postings 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 nullpublic abstract int getRequiredPostings()
public SpanWeight.Postings atLeast(SpanWeight.Postings postings)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.