Search Results for

    Show / Hide Table of Contents

    Struct NpgsqlTsVector.Lexeme.WordEntryPos

    Represents a word entry position and an optional weight.

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

    Constructors

    | Improve this Doc View Source

    WordEntryPos(int, Weight)

    Creates a WordEntryPos with a given position and weight.

    Declaration
    public WordEntryPos(int pos, NpgsqlTsVector.Lexeme.Weight weight = default)
    Parameters
    Type Name Description
    int pos

    Position values can range from 1 to 16383; larger numbers are silently set to 16383.

    NpgsqlTsVector.Lexeme.Weight weight

    A weight labeled between A and D.

    Properties

    | Improve this Doc View Source

    Pos

    The position is a 14-bit unsigned integer indicating the position in the text this lexeme occurs. Cannot be 0.

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

    Weight

    The weight is labeled from A to D. D is the default, and not printed.

    Declaration
    public NpgsqlTsVector.Lexeme.Weight Weight { get; }
    Property Value
    Type Description
    NpgsqlTsVector.Lexeme.Weight

    Methods

    | Improve this Doc View Source

    Equals(WordEntryPos)

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

    Declaration
    public bool Equals(NpgsqlTsVector.Lexeme.WordEntryPos o)
    Parameters
    Type Name Description
    NpgsqlTsVector.Lexeme.WordEntryPos 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()

    Prints this lexeme in PostgreSQL's format, i.e. position is followed by weight (weight is only printed if A, B or C).

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    Operators

    | Improve this Doc View Source

    operator ==(WordEntryPos, WordEntryPos)

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

    Declaration
    public static bool operator ==(NpgsqlTsVector.Lexeme.WordEntryPos left, NpgsqlTsVector.Lexeme.WordEntryPos right)
    Parameters
    Type Name Description
    NpgsqlTsVector.Lexeme.WordEntryPos left
    NpgsqlTsVector.Lexeme.WordEntryPos right
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    operator !=(WordEntryPos, WordEntryPos)

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

    Declaration
    public static bool operator !=(NpgsqlTsVector.Lexeme.WordEntryPos left, NpgsqlTsVector.Lexeme.WordEntryPos right)
    Parameters
    Type Name Description
    NpgsqlTsVector.Lexeme.WordEntryPos left
    NpgsqlTsVector.Lexeme.WordEntryPos right
    Returns
    Type Description
    bool

    Implements

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