|
|||||||||
| 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 | |
|---|---|
void |
close()
Closes the ReuseStrategy, freeing any resources |
abstract Analyzer.TokenStreamComponents |
getReusableComponents(String fieldName)
Gets the reusable TokenStreamComponents for the field with the given name |
protected Object |
getStoredValue()
Returns the currently stored value |
abstract void |
setReusableComponents(String fieldName,
Analyzer.TokenStreamComponents components)
Stores the given TokenStreamComponents as the reusable components for the field with the give name |
protected void |
setStoredValue(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(String fieldName)
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(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()
null if no value is stored
AlreadyClosedException - if the ReuseStrategy is closed.protected final void setStoredValue(Object storedValue)
storedValue - Value to store
AlreadyClosedException - if the ReuseStrategy is closed.public void close()
close in interface Closeable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||