public static class ShingleMatrixFilter.SimpleThreeDimensionalTokenSettingsCodec extends ShingleMatrixFilter.TokenSettingsCodec
| Constructor and Description |
|---|
ShingleMatrixFilter.SimpleThreeDimensionalTokenSettingsCodec() |
| Modifier and Type | Method and Description |
|---|---|
ShingleMatrixFilter.TokenPositioner |
getTokenPositioner(org.apache.lucene.analysis.Token token)
Retrieves information on how a
Token is to be inserted to a ShingleMatrixFilter.Matrix. |
float |
getWeight(org.apache.lucene.analysis.Token token)
Returns a 32 bit float from the payload, or 1f it null.
|
void |
setTokenPositioner(org.apache.lucene.analysis.Token token,
ShingleMatrixFilter.TokenPositioner tokenPositioner)
Sets the TokenPositioner as token flags int value.
|
void |
setWeight(org.apache.lucene.analysis.Token token,
float weight)
Stores a 32 bit float in the payload, or set it to null if 1f;
|
public ShingleMatrixFilter.SimpleThreeDimensionalTokenSettingsCodec()
public ShingleMatrixFilter.TokenPositioner getTokenPositioner(org.apache.lucene.analysis.Token token) throws IOException
ShingleMatrixFilter.TokenSettingsCodecToken is to be inserted to a ShingleMatrixFilter.Matrix.getTokenPositioner in class ShingleMatrixFilter.TokenSettingsCodectoken - IOExceptionpublic void setTokenPositioner(org.apache.lucene.analysis.Token token,
ShingleMatrixFilter.TokenPositioner tokenPositioner)
setTokenPositioner in class ShingleMatrixFilter.TokenSettingsCodectoken - tokenPositioner - public float getWeight(org.apache.lucene.analysis.Token token)
getWeight in class ShingleMatrixFilter.TokenSettingsCodectoken - public void setWeight(org.apache.lucene.analysis.Token token,
float weight)
setWeight in class ShingleMatrixFilter.TokenSettingsCodectoken - weight - Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.