Package org.apache.lucene.analysis.sinks
Class TeeSinkTokenFilter.States
- java.lang.Object
-
- org.apache.lucene.analysis.sinks.TeeSinkTokenFilter.States
-
- Enclosing class:
- TeeSinkTokenFilter
private static final class TeeSinkTokenFilter.States extends java.lang.Object
A convenience wrapper for storing the cached states as well the final state of the stream.
-
-
Field Summary
Fields Modifier and Type Field Description private AttributeSource.State
finalState
private java.util.List<AttributeSource.State>
states
-
Constructor Summary
Constructors Constructor Description States()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
add(AttributeSource.State state)
(package private) AttributeSource.State
getFinalState()
(package private) java.util.Iterator<AttributeSource.State>
getStates()
(package private) void
reset()
(package private) void
setFinalState(AttributeSource.State finalState)
-
-
-
Field Detail
-
states
private final java.util.List<AttributeSource.State> states
-
finalState
private AttributeSource.State finalState
-
-
Method Detail
-
setFinalState
void setFinalState(AttributeSource.State finalState)
-
getFinalState
AttributeSource.State getFinalState()
-
add
void add(AttributeSource.State state)
-
getStates
java.util.Iterator<AttributeSource.State> getStates()
-
reset
void reset()
-
-