public abstract static class ShingleMatrixFilter.TokenSettingsCodec
extends java.lang.Object
| Constructor and Description |
|---|
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 abstract ShingleMatrixFilter.TokenPositioner getTokenPositioner(org.apache.lucene.analysis.Token token) throws java.io.IOException
Token is to be inserted to a ShingleMatrixFilter.Matrix.token - ShingleMatrixFilter.TokenPositionerjava.io.IOExceptionpublic 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-2022 Apache Software Foundation. All Rights Reserved.