public static class ContextMapping.Context
extends java.lang.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 |
---|
Context(java.util.SortedMap<java.lang.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 Context(java.util.SortedMap<java.lang.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 wrap