public class ContainerExtractorPath extends Object
container extractors to be applied one after the other to a property value,
in order to extract other values.
The extractors are either represented:
["map-values", "collection"],
meaning "apply the 'map-values' extractor to the property value, then apply the 'collection' extractor to the map values".
Names are either built-in
or registered at bootstrap.
defaultExtractors()),
which means "whatever default Hibernate Search manages to apply using its internal extractor resolution algorithm".
This second form may result in different "resolved" paths depending on the type of the property it is applied to.
ContainerExtractor,
BuiltinContainerExtractors| Modifier and Type | Method and Description |
|---|---|
static ContainerExtractorPath |
defaultExtractors() |
boolean |
equals(Object obj) |
static ContainerExtractorPath |
explicitExtractor(String extractorName) |
static ContainerExtractorPath |
explicitExtractors(List<String> extractorNames) |
List<String> |
getExplicitExtractorNames() |
int |
hashCode() |
boolean |
isDefault() |
boolean |
isEmpty() |
static ContainerExtractorPath |
noExtractors() |
String |
toString() |
public static ContainerExtractorPath defaultExtractors()
public static ContainerExtractorPath noExtractors()
public static ContainerExtractorPath explicitExtractor(String extractorName)
extractorName - A container extractor referenced by its name.BuiltinContainerExtractorspublic static ContainerExtractorPath explicitExtractors(List<String> extractorNames)
extractorNames - A list of container extractors referenced by their name.public boolean isDefault()
true if this path represents the default extractor(s),
which will be determined automatically based on the property type.
false otherwise.public boolean isEmpty()
true if this path is empty,
i.e. it represents direct access to the property value.
false otherwise.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.