|
||||||||||
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.OneDimensionalNonWeightedTokenSettingsCodec
public static class ShingleMatrixFilter.OneDimensionalNonWeightedTokenSettingsCodec
Using this codec makes a ShingleMatrixFilter
act like ShingleFilter
.
It produces the most simple sort of shingles, ignoring token position increments, et c.
It adds each token as a new column.
Constructor Summary | |
---|---|
ShingleMatrixFilter.OneDimensionalNonWeightedTokenSettingsCodec()
|
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)
Have this method return 1f in order to 'disable' weights. |
void |
setTokenPositioner(Token token,
ShingleMatrixFilter.TokenPositioner tokenPositioner)
Sets information on how a Token is to be inserted to a ShingleMatrixFilter.Matrix . |
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.OneDimensionalNonWeightedTokenSettingsCodec()
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
ShingleMatrixFilter.TokenPositioner
IOException
public void setTokenPositioner(Token token, ShingleMatrixFilter.TokenPositioner tokenPositioner)
ShingleMatrixFilter.TokenSettingsCodec
Token
is to be inserted to a ShingleMatrixFilter.Matrix
.
setTokenPositioner
in class ShingleMatrixFilter.TokenSettingsCodec
public float getWeight(Token token)
ShingleMatrixFilter.TokenSettingsCodec
getWeight
in class ShingleMatrixFilter.TokenSettingsCodec
public void setWeight(Token token, float weight)
ShingleMatrixFilter.TokenSettingsCodec
setWeight
in class ShingleMatrixFilter.TokenSettingsCodec
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |