|
||||||||||
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 org.apache.lucene.analysis.shingle.ShingleMatrixFilter.SimpleThreeDimensionalTokenSettingsCodec
public static class ShingleMatrixFilter.SimpleThreeDimensionalTokenSettingsCodec
A full featured codec not to be used for something serious. It takes complete control of payload for weight and the bit flags for positioning in the matrix. Mainly exist for demonstrational purposes.
Constructor Summary | |
---|---|
ShingleMatrixFilter.SimpleThreeDimensionalTokenSettingsCodec()
|
Method Summary | |
---|---|
ShingleMatrixFilter.TokenPositioner |
getTokenPositioner(Token token)
Retrieves information on how a Token is to be inserted to a ShingleMatrixFilter.Matrix . |
float |
getWeight(Token token)
Returns a 32 bit float from the payload, or 1f it null. |
void |
setTokenPositioner(Token token,
ShingleMatrixFilter.TokenPositioner tokenPositioner)
Sets the TokenPositioner as token flags int value. |
void |
setWeight(Token token,
float weight)
Stores a 32 bit float in the payload, or set it to null if 1f; |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShingleMatrixFilter.SimpleThreeDimensionalTokenSettingsCodec()
Method Detail |
---|
public ShingleMatrixFilter.TokenPositioner getTokenPositioner(Token token) throws IOException
ShingleMatrixFilter.TokenSettingsCodec
Token
is to be inserted to a ShingleMatrixFilter.Matrix
.
getTokenPositioner
in class ShingleMatrixFilter.TokenSettingsCodec
token
-
IOException
public void setTokenPositioner(Token token, ShingleMatrixFilter.TokenPositioner tokenPositioner)
setTokenPositioner
in class ShingleMatrixFilter.TokenSettingsCodec
token
- tokenPositioner
- public float getWeight(Token token)
getWeight
in class ShingleMatrixFilter.TokenSettingsCodec
token
-
public void setWeight(Token token, float weight)
setWeight
in class ShingleMatrixFilter.TokenSettingsCodec
token
- weight
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |