C - The type of containers this extractor can extract values from.V - The type of values extracted by this extractor.public interface ContainerExtractor<C,V>
Container extractors tell Hibernate Search how to extract values from object properties:
no extractor would mean using the property value directly,
a collection element extractor
would extract each element of a collection,
a map keys extractor
would extract each key of a map,
etc.
ContainerExtractorPath,
BuiltinContainerExtractors| Modifier and Type | Method and Description |
|---|---|
Stream<V> |
extract(C container) |
default boolean |
isMultiValued() |
Stream<V> extract(C container)
container - A container to extract values from.BaseStream.close() by the caller.default boolean isMultiValued()
true if this extractor's extract(Object) method may return streams with more than one value.
false if it will never return streams with more than one value.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.