Struct NpgsqlTsVector.Lexeme.WordEntryPos
Represents a word entry position and an optional weight.
Assembly: Npgsql.dll
Syntax
public struct WordEntryPos : IEquatable<NpgsqlTsVector.Lexeme.WordEntryPos>
Constructors
WordEntryPos(Int32, NpgsqlTsVector.Lexeme.Weight)
Creates a WordEntryPos with a given position and weight.
Declaration
public WordEntryPos(int pos, NpgsqlTsVector.Lexeme.Weight weight = default (NpgsqlTsVector.Lexeme.Weight))
Parameters
Type |
Name |
Description |
System.Int32 |
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
Pos
The position is a 14-bit unsigned integer indicating the position in the text this lexeme occurs. Cannot be 0.
Declaration
Property Value
Type |
Description |
System.Int32 |
|
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
Methods
Equals(NpgsqlTsVector.Lexeme.WordEntryPos)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(NpgsqlTsVector.Lexeme.WordEntryPos o)
Parameters
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 |
|
GetHashCode()
Gets a hash code for the current object.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
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 |
System.String |
|
Operators
Equality(NpgsqlTsVector.Lexeme.WordEntryPos, NpgsqlTsVector.Lexeme.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
Returns
Type |
Description |
System.Boolean |
|
Inequality(NpgsqlTsVector.Lexeme.WordEntryPos, NpgsqlTsVector.Lexeme.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
Returns
Type |
Description |
System.Boolean |
|
Implements
IEquatable<>