public static enum FacetRequest.FacetArraysSource extends Enum<FacetRequest.FacetArraysSource>
FacetArrays should be used to resolve
values. When set to INT or FLOAT, allows creating an
optimized FacetResultsHandler, which does not call
FacetRequest.getValueOf(FacetArrays, int) for every ordinals.
If set to BOTH, the FacetResultsHandler will use
FacetRequest.getValueOf(FacetArrays, int) to resolve ordinal
values, although it is recommended that you consider writing a specialized
FacetResultsHandler.
| Modifier and Type | Method and Description |
|---|---|
static FacetRequest.FacetArraysSource |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FacetRequest.FacetArraysSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FacetRequest.FacetArraysSource INT
public static final FacetRequest.FacetArraysSource FLOAT
public static final FacetRequest.FacetArraysSource BOTH
public static FacetRequest.FacetArraysSource[] values()
for (FacetRequest.FacetArraysSource c : FacetRequest.FacetArraysSource.values()) System.out.println(c);
public static FacetRequest.FacetArraysSource 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 © 2000-2013 Apache Software Foundation. All Rights Reserved.