|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.analysis.Analyzer.ReuseStrategy
public abstract static class Analyzer.ReuseStrategy
Strategy defining how TokenStreamComponents are reused per call to
Analyzer.tokenStream(String, java.io.Reader).
| Constructor Summary | |
|---|---|
Analyzer.ReuseStrategy()
Sole constructor. |
|
| Method Summary | |
|---|---|
abstract Analyzer.TokenStreamComponents |
getReusableComponents(Analyzer analyzer,
String fieldName)
Gets the reusable TokenStreamComponents for the field with the given name. |
protected Object |
getStoredValue(Analyzer analyzer)
Returns the currently stored value. |
abstract void |
setReusableComponents(Analyzer analyzer,
String fieldName,
Analyzer.TokenStreamComponents components)
Stores the given TokenStreamComponents as the reusable components for the field with the give name. |
protected void |
setStoredValue(Analyzer analyzer,
Object storedValue)
Sets the stored value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Analyzer.ReuseStrategy()
| Method Detail |
|---|
public abstract Analyzer.TokenStreamComponents getReusableComponents(Analyzer analyzer,
String fieldName)
analyzer - Analyzer from which to get the reused components. Use
getStoredValue(Analyzer) and setStoredValue(Analyzer, Object)
to access the data on the Analyzer.fieldName - Name of the field whose reusable TokenStreamComponents
are to be retrieved
null
if there was no previous components for the field
public abstract void setReusableComponents(Analyzer analyzer,
String fieldName,
Analyzer.TokenStreamComponents components)
fieldName - Name of the field whose TokenStreamComponents are being setcomponents - TokenStreamComponents which are to be reused for the fieldprotected final Object getStoredValue(Analyzer analyzer)
null if no value is stored
AlreadyClosedException - if the Analyzer is closed.
protected final void setStoredValue(Analyzer analyzer,
Object storedValue)
storedValue - Value to store
AlreadyClosedException - if the Analyzer is closed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||