Table of Contents

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 string
wordEntryPositions List<NpgsqlTsVector.Lexeme.WordEntryPos>

Properties

Count

Gets the number of word entry positions.

public int Count { get; }

Property Value

int

this[int]

Gets a word entry position.

public NpgsqlTsVector.Lexeme.WordEntryPos this[int index] { get; }

Parameters

index int

Property Value

NpgsqlTsVector.Lexeme.WordEntryPos

Text

Gets or sets the text.

public string Text { readonly get; set; }

Property Value

string

Methods

Equals(Lexeme)

Determines whether the specified object is equal to the current object.

public bool Equals(NpgsqlTsVector.Lexeme o)

Parameters

o NpgsqlTsVector.Lexeme

Returns

bool

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? o)

Parameters

o object

Returns

bool

GetHashCode()

Gets a hash code for the current object.

public override int GetHashCode()

Returns

int

ToString()

Creates a string representation in PostgreSQL's format.

public override string ToString()

Returns

string

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.Lexeme
right NpgsqlTsVector.Lexeme

Returns

bool

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.Lexeme
right NpgsqlTsVector.Lexeme

Returns

bool