Struct NpgsqlTsVector.Lexeme
- Namespace
- NpgsqlTypes
- Assembly
- Npgsql.dll
Represents a lexeme. A lexeme consists of a text string and optional word entry positions.
public struct NpgsqlTsVector.Lexeme : IEquatable<NpgsqlTsVector.Lexeme>
- Implements
- Inherited Members
Constructors
Lexeme(string)
Creates a lexeme with no word entry positions.
public Lexeme(string text)
Parameters
text
string
Lexeme(string, List<WordEntryPos>?)
Creates a lexeme with word entry positions.
public Lexeme(string text, List<NpgsqlTsVector.Lexeme.WordEntryPos>? wordEntryPositions)
Parameters
text
stringwordEntryPositions
List<NpgsqlTsVector.Lexeme.WordEntryPos>
Properties
Count
Gets the number of word entry positions.
public int Count { get; }
Property Value
this[int]
Gets a word entry position.
public NpgsqlTsVector.Lexeme.WordEntryPos this[int index] { get; }
Parameters
index
int
Property Value
Text
Gets or sets the text.
public string Text { readonly get; set; }
Property Value
Methods
Equals(Lexeme)
Determines whether the specified object is equal to the current object.
public bool Equals(NpgsqlTsVector.Lexeme o)
Parameters
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? o)
Parameters
o
object
Returns
GetHashCode()
Gets a hash code for the current object.
public override int GetHashCode()
Returns
ToString()
Creates a string representation in PostgreSQL's format.
public override string ToString()
Returns
Operators
operator ==(Lexeme, Lexeme)
Determines whether the specified object is equal to the current object.
public static bool operator ==(NpgsqlTsVector.Lexeme left, NpgsqlTsVector.Lexeme right)
Parameters
left
NpgsqlTsVector.Lexemeright
NpgsqlTsVector.Lexeme
Returns
operator !=(Lexeme, Lexeme)
Determines whether the specified object is unequal to the current object.
public static bool operator !=(NpgsqlTsVector.Lexeme left, NpgsqlTsVector.Lexeme right)
Parameters
left
NpgsqlTsVector.Lexemeright
NpgsqlTsVector.Lexeme