public static class ContextMapping.Context extends Object
ContextMapping
s, their ContextMapping.ContextConfig
uration and a
Document form a complete ContextMapping.Context
. Since this Object provides all information used
to setup a suggestion, it can be used to wrap the entire TokenStream
used to build a
path within the FST
.Constructor and Description |
---|
ContextMapping.Context(SortedMap<String,ContextMapping.ContextConfig> contexts,
ParseContext.Document doc) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.analysis.TokenStream |
wrapTokenStream(org.apache.lucene.analysis.TokenStream tokenStream)
Wrap the
TokenStream according to the provided informations of ContextMapping.ContextConfig
and a related ParseContext.Document . |
public ContextMapping.Context(SortedMap<String,ContextMapping.ContextConfig> contexts, ParseContext.Document doc)
public org.apache.lucene.analysis.TokenStream wrapTokenStream(org.apache.lucene.analysis.TokenStream tokenStream)
TokenStream
according to the provided informations of ContextMapping.ContextConfig
and a related ParseContext.Document
.tokenStream
- TokenStream
to wrapCopyright © 2009–2016. All rights reserved.