PgTsPosition
Namespace: Ankus
Assembly: Ankus.Runtime.dll
Holds one position of a tsvector lexeme and its label.
public readonly struct PgTsPosition : IEquatable<PgTsPosition>Implements: IEquatable<PgTsPosition>
Constructors
Section titled “Constructors”PgTsPosition(ushort, PgTsWeight)
Section titled “PgTsPosition(ushort, PgTsWeight)”Holds one position of a tsvector lexeme and its label.
public PgTsPosition(ushort Position, PgTsWeight Weight)Parameters:
Position — ushort
The word’s position in the document, from 1 to 16383.
Weight — PgTsWeight
The position’s label.
Methods
Section titled “Methods”Deconstruct(out ushort, out PgTsWeight)
Section titled “Deconstruct(out ushort, out PgTsWeight)”public void Deconstruct(out ushort Position, out PgTsWeight Weight)Parameters:
Position — ushort
Weight — PgTsWeight
Equals(PgTsPosition)
Section titled “Equals(PgTsPosition)”public bool Equals(PgTsPosition other)Parameters:
other — PgTsPosition
Returns: bool
Equals(object)
Section titled “Equals(object)”public override bool Equals(object obj)Parameters:
obj — object
Returns: bool
GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()Returns: int
ToString()
Section titled “ToString()”public override string ToString()Returns: string
Properties
Section titled “Properties”Position
Section titled “Position”The word’s position in the document, from 1 to 16383.
public ushort Position { get; init; }Value: ushort
Weight
Section titled “Weight”The position’s label.
public PgTsWeight Weight { get; init; }Value: PgTsWeight
Operators
Section titled “Operators”operator ==(PgTsPosition, PgTsPosition)
Section titled “operator ==(PgTsPosition, PgTsPosition)”public static bool operator ==(PgTsPosition left, PgTsPosition right)Parameters:
left — PgTsPosition
right — PgTsPosition
Returns: bool
operator !=(PgTsPosition, PgTsPosition)
Section titled “operator !=(PgTsPosition, PgTsPosition)”public static bool operator !=(PgTsPosition left, PgTsPosition right)Parameters:
left — PgTsPosition
right — PgTsPosition
Returns: bool