public abstract static class ShingleMatrixFilter.TokenSettingsCodec extends Object
| Constructor and Description |
|---|
ShingleMatrixFilter.TokenSettingsCodec() |
| Modifier and Type | Method and Description |
|---|---|
abstract ShingleMatrixFilter.TokenPositioner |
getTokenPositioner(org.apache.lucene.analysis.Token token)
Retrieves information on how a
Token is to be inserted to a ShingleMatrixFilter.Matrix. |
abstract float |
getWeight(org.apache.lucene.analysis.Token token)
Have this method return 1f in order to 'disable' weights.
|
abstract void |
setTokenPositioner(org.apache.lucene.analysis.Token token,
ShingleMatrixFilter.TokenPositioner tokenPositioner)
Sets information on how a
Token is to be inserted to a ShingleMatrixFilter.Matrix. |
abstract void |
setWeight(org.apache.lucene.analysis.Token token,
float weight)
Have this method do nothing in order to 'disable' weights.
|
public ShingleMatrixFilter.TokenSettingsCodec()
public abstract ShingleMatrixFilter.TokenPositioner getTokenPositioner(org.apache.lucene.analysis.Token token) throws IOException
Token is to be inserted to a ShingleMatrixFilter.Matrix.token - ShingleMatrixFilter.TokenPositionerIOExceptionpublic abstract void setTokenPositioner(org.apache.lucene.analysis.Token token,
ShingleMatrixFilter.TokenPositioner tokenPositioner)
Token is to be inserted to a ShingleMatrixFilter.Matrix.token - tokenPositioner - public abstract float getWeight(org.apache.lucene.analysis.Token token)
token - public abstract void setWeight(org.apache.lucene.analysis.Token token,
float weight)
token - weight - Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.