Search Results for

    Show / Hide Table of Contents

    Struct NpgsqlTsVector.Lexeme

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

    Implements
    IEquatable<><Lexeme>
    Namespace: NpgsqlTypes
    Assembly: Npgsql.dll
    Syntax
    public struct NpgsqlTsVector.Lexeme : IEquatable<NpgsqlTsVector.Lexeme>

    Constructors

    | Improve this Doc View Source

    Lexeme(string, List<WordEntryPos>?)

    Creates a lexeme with word entry positions.

    Declaration
    public Lexeme(string text, List<NpgsqlTsVector.Lexeme.WordEntryPos>? wordEntryPositions)
    Parameters
    Type Name Description
    string text
    List<><WordEntryPos>? wordEntryPositions
    | Improve this Doc View Source

    Lexeme(string)

    Creates a lexeme with no word entry positions.

    Declaration
    public Lexeme(string text)
    Parameters
    Type Name Description
    string text

    Properties

    | Improve this Doc View Source

    Count

    Gets the number of word entry positions.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int
    | Improve this Doc View Source

    this[int]

    Gets a word entry position.

    Declaration
    public NpgsqlTsVector.Lexeme.WordEntryPos this[int index] { get; }
    Parameters
    Type Name Description
    int index
    Property Value
    Type Description
    NpgsqlTsVector.Lexeme.WordEntryPos
    | Improve this Doc View Source

    Text

    Gets or sets the text.

    Declaration
    public string Text { readonly get; set; }
    Property Value
    Type Description
    string

    Methods

    | Improve this Doc View Source

    Equals(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
    bool
    | Improve this Doc View Source

    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
    Type Description
    bool
    | Improve this Doc View Source

    GetHashCode()

    Gets a hash code for the current object.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    | Improve this Doc View Source

    ToString()

    Creates a string representation in PostgreSQL's format.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    Operators

    | Improve this Doc View Source

    operator ==(Lexeme, 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
    bool
    | Improve this Doc View Source

    operator !=(Lexeme, 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
    bool

    Implements

    IEquatable<>
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team