|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.analysis.shingle.ShingleMatrixFilter.TokenSettingsCodec
public abstract static class ShingleMatrixFilter.TokenSettingsCodec
Strategy used to code and decode meta data of the tokens from the input stream regarding how to position the tokens in the matrix, set and retreive weight, et c.
Constructor Summary | |
---|---|
ShingleMatrixFilter.TokenSettingsCodec()
|
Method Summary | |
---|---|
abstract ShingleMatrixFilter.TokenPositioner |
getTokenPositioner(Token token)
Retrieves information on how a Token is to be inserted to a ShingleMatrixFilter.Matrix . |
abstract float |
getWeight(Token token)
Have this method return 1f in order to 'disable' weights. |
abstract void |
setTokenPositioner(Token token,
ShingleMatrixFilter.TokenPositioner tokenPositioner)
Sets information on how a Token is to be inserted to a ShingleMatrixFilter.Matrix . |
abstract void |
setWeight(Token token,
float weight)
Have this method do nothing in order to 'disable' weights. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShingleMatrixFilter.TokenSettingsCodec()
Method Detail |
---|
public abstract ShingleMatrixFilter.TokenPositioner getTokenPositioner(Token token) throws IOException
Token
is to be inserted to a ShingleMatrixFilter.Matrix
.
token
-
ShingleMatrixFilter.TokenPositioner
IOException
public abstract void setTokenPositioner(Token token, ShingleMatrixFilter.TokenPositioner tokenPositioner)
Token
is to be inserted to a ShingleMatrixFilter.Matrix
.
token
- tokenPositioner
- public abstract float getWeight(Token token)
token
-
public abstract void setWeight(Token token, float weight)
token
- weight
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |