public enum IndexFieldFilter extends Enum<IndexFieldFilter>
| Enum Constant and Description |
|---|
ALL
Returns all fields independently from their inclusion.
|
INCLUDED_ONLY
Returns fields that are actually included in the schema.
|
| Modifier and Type | Method and Description |
|---|---|
abstract <T> T |
filter(T field,
IndexFieldInclusion inclusion) |
static IndexFieldFilter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IndexFieldFilter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IndexFieldFilter ALL
public static final IndexFieldFilter INCLUDED_ONLY
public static IndexFieldFilter[] values()
for (IndexFieldFilter c : IndexFieldFilter.values()) System.out.println(c);
public static IndexFieldFilter 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 <T> T filter(T field,
IndexFieldInclusion inclusion)
T - The type of field.field - The field to filter.inclusion - The inclusion of that field (see
IndexSchemaObjectNodeBuilder.addField(String, IndexFieldInclusion, IndexFieldType) for example).field if it is included; null otherwise.Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.