public interface AnalyzerReference extends Closeable
Note that the implementation can be a normalizer (a normalizer is a specific sort of analyzer).
Modifier and Type | Method and Description |
---|---|
void |
close()
Close analyzer if possible
|
<T extends AnalyzerReference> |
is(Class<T> analyzerType)
Check if the analyzer can be represented using a specific class.
|
boolean |
isNormalizer(String fieldName) |
<T extends AnalyzerReference> |
unwrap(Class<T> analyzerType)
Convert this instance to T
|
boolean isNormalizer(String fieldName)
fieldName
- name of the field whose analyzer is to be inspectedtrue
if the analyzer for the field with the given name is
a normalizer, false
otherwise.<T extends AnalyzerReference> boolean is(Class<T> analyzerType)
analyzerType
- an AnalyzerReference
type<T extends AnalyzerReference> T unwrap(Class<T> analyzerType)
T
- an AnalyzerReference
typeanalyzerType
- the class Tvoid close()
close
in interface AutoCloseable
close
in interface Closeable
Copyright © 2006-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.