Class NpgsqlTsVector
Represents a PostgreSQL tsvector.
Inheritance
System.Object
NpgsqlTsVector
Implements
System.Collections.Generic.IEnumerable<NpgsqlTsVector.Lexeme>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: NpgsqlTypes
Assembly: Npgsql.dll
Syntax
public sealed class NpgsqlTsVector : IEnumerable<NpgsqlTsVector.Lexeme>, IEnumerable
Constructors
NpgsqlTsVector(List<NpgsqlTsVector.Lexeme>)
Constructs an NpgsqlTsVector from a list of lexemes. This also sorts and remove duplicates.
Declaration
public NpgsqlTsVector(List<NpgsqlTsVector.Lexeme> lexemes)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<NpgsqlTsVector.Lexeme> | lexemes |
Properties
Count
Gets the number of lexemes.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Item[Int32]
Returns the lexeme at a specific index
Declaration
public NpgsqlTsVector.Lexeme this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type | Description |
---|---|
NpgsqlTsVector.Lexeme |
Methods
GetEnumerator()
Returns an enumerator.
Declaration
public IEnumerator<NpgsqlTsVector.Lexeme> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<NpgsqlTsVector.Lexeme> |
Parse(String)
Parses a tsvector in PostgreSQL's text format.
Declaration
public static NpgsqlTsVector Parse(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value |
Returns
Type | Description |
---|---|
NpgsqlTsVector |
ToString()
Gets a string representation in PostgreSQL's format.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Returns an enumerator.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable