Show / Hide Table of Contents

Struct NpgsqlTsVector.Lexeme

Represents a lexeme. A lexeme consists of a text string and optional word entry positions.

Implements
System.IEquatable<NpgsqlTsVector.Lexeme>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: NpgsqlTypes
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
System.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
Type Name Description
System.String text
System.Collections.Generic.List<NpgsqlTsVector.Lexeme.WordEntryPos> wordEntryPositions

Properties

Count

Gets the number of word entry positions.

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32

Item[Int32]

Gets a word entry position.

Declaration
public NpgsqlTsVector.Lexeme.WordEntryPos this[int index] { get; }
Parameters
Type Name Description
System.Int32 index
Property Value
Type Description
NpgsqlTsVector.Lexeme.WordEntryPos

Text

Gets or sets the text.

Declaration
public string Text { get; set; }
Property Value
Type Description
System.String

Methods

Equals(NpgsqlTsVector.Lexeme)

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

Declaration
public bool Equals(NpgsqlTsVector.Lexeme o)
Parameters
Type Name Description
NpgsqlTsVector.Lexeme o
Returns
Type Description
System.Boolean

Equals(Object)

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

Declaration
public override bool Equals(object o)
Parameters
Type Name Description
System.Object o
Returns
Type Description
System.Boolean
Overrides
System.ValueType.Equals(System.Object)

GetHashCode()

Gets a hash code for the current object.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.ValueType.GetHashCode()

ToString()

Creates a string representation in PostgreSQL's format.

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.ValueType.ToString()

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
Type Name Description
NpgsqlTsVector.Lexeme left
NpgsqlTsVector.Lexeme right
Returns
Type Description
System.Boolean

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
Type Name Description
NpgsqlTsVector.Lexeme left
NpgsqlTsVector.Lexeme right
Returns
Type Description
System.Boolean

Implements

System.IEquatable<T>
Back to top Generated by DocFX