Struct NpgsqlTsVector.Lexeme
Represents a lexeme. A lexeme consists of a text string and optional word entry positions.
Assembly: Npgsql.dll
Syntax
public struct Lexeme : IEquatable<NpgsqlTsVector.Lexeme>
Constructors
Lexeme(String)
Creates a lexeme with no word entry positions.
Declaration
public Lexeme(string text)
Parameters
Type |
Name |
Description |
String |
text |
|
Lexeme(String, List<NpgsqlTsVector.Lexeme.WordEntryPos>)
Creates a lexeme with word entry positions.
Declaration
public Lexeme(string text, List<NpgsqlTsVector.Lexeme.WordEntryPos> wordEntryPositions)
Parameters
Properties
Count
Gets the number of word entry positions.
Declaration
public readonly int Count { get; }
Property Value
Item[Int32]
Gets a word entry position.
Declaration
public NpgsqlTsVector.Lexeme.WordEntryPos this[int index] { get; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
Text
Declaration
public string Text { readonly get; set; }
Property Value
Methods
Equals(NpgsqlTsVector.Lexeme)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(NpgsqlTsVector.Lexeme o)
Parameters
Returns
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object o)
Parameters
Type |
Name |
Description |
Object |
o |
|
Returns
Overrides
GetHashCode()
Gets a hash code for the current object.
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Creates a string representation in PostgreSQL's format.
Declaration
public override string ToString()
Returns
Overrides
Operators
Equality(NpgsqlTsVector.Lexeme, NpgsqlTsVector.Lexeme)
Determines whether the specified object is equal to the current object.
Declaration
public static bool operator ==(NpgsqlTsVector.Lexeme left, NpgsqlTsVector.Lexeme right)
Parameters
Returns
Inequality(NpgsqlTsVector.Lexeme, NpgsqlTsVector.Lexeme)
Determines whether the specified object is unequal to the current object.
Declaration
public static bool operator !=(NpgsqlTsVector.Lexeme left, NpgsqlTsVector.Lexeme right)
Parameters
Returns
Implements