C# Class Lucene.Net.Analysis.Shingle.Codec.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.
Inheritance: TokenSettingsCodec
Afficher le fichier Open project: synhershko/lucene.net

Méthodes publiques

Méthode Description
GetTokenPositioner ( Token token ) : TokenPositioner

GetWeight ( Token token ) : float

Returns a 32 bit float from the payload, or 1f it null.

SetTokenPositioner ( Token token, TokenPositioner tokenPositioner ) : void

Sets the TokenPositioner as token flags int value.

SetWeight ( Token token, float weight ) : void

Stores a 32 bit float in the payload, or set it to null if 1f;

Method Details

GetTokenPositioner() public méthode

public GetTokenPositioner ( Token token ) : TokenPositioner
token Token
Résultat TokenPositioner

GetWeight() public méthode

Returns a 32 bit float from the payload, or 1f it null.
public GetWeight ( Token token ) : float
token Token
Résultat float

SetTokenPositioner() public méthode

Sets the TokenPositioner as token flags int value.
public SetTokenPositioner ( Token token, TokenPositioner tokenPositioner ) : void
token Token
tokenPositioner TokenPositioner
Résultat void

SetWeight() public méthode

Stores a 32 bit float in the payload, or set it to null if 1f;
public SetWeight ( Token token, float weight ) : void
token Token
weight float
Résultat void