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
显示文件 Open project: synhershko/lucene.net

Public Methods

Method 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 method

public GetTokenPositioner ( Token token ) : TokenPositioner
token Token
return TokenPositioner

GetWeight() public method

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

SetTokenPositioner() public method

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

SetWeight() public method

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
return void