Table of Contents

Class TableSortBuilder<T>

Namespace
DataStax.AstraDB.DataApi.Core.Query
Assembly
DataStax.AstraDB.DataApi.dll

A sort builder specifically for table operations.

public class TableSortBuilder<T> : SortBuilder<T>

Type Parameters

T

The type of the document

Inheritance
TableSortBuilder<T>
Inherited Members

Methods

Ascending(string)

public TableSortBuilder<T> Ascending(string fieldName)

Parameters

fieldName string

Returns

TableSortBuilder<T>

Ascending<TField>(Expression<Func<T, TField>>)

public TableSortBuilder<T> Ascending<TField>(Expression<Func<T, TField>> expression)

Parameters

expression Expression<Func<T, TField>>

Returns

TableSortBuilder<T>

Type Parameters

TField

Descending(string)

public TableSortBuilder<T> Descending(string fieldName)

Parameters

fieldName string

Returns

TableSortBuilder<T>

Descending<TField>(Expression<Func<T, TField>>)

public TableSortBuilder<T> Descending<TField>(Expression<Func<T, TField>> expression)

Parameters

expression Expression<Func<T, TField>>

Returns

TableSortBuilder<T>

Type Parameters

TField

Lexical(string, string)

Adds a lexical sort.

public TableSortBuilder<T> Lexical(string columnName, string value)

Parameters

columnName string
value string

Returns

TableSortBuilder<T>

Lexical<TField>(Expression<Func<T, TField>>, string)

Adds a lexical sort.

public TableSortBuilder<T> Lexical<TField>(Expression<Func<T, TField>> column, string value)

Parameters

column Expression<Func<T, TField>>
value string

Returns

TableSortBuilder<T>

Type Parameters

TField

Vector(string, float[])

Adds a vector sort.

public TableSortBuilder<T> Vector(string fieldName, float[] vector)

Parameters

fieldName string

The name of the field to sort by.

vector float[]

The vector to sort by.

Returns

TableSortBuilder<T>

The table sort builder.

Vector<TField>(Expression<Func<T, TField>>, float[])

Adds a vector sort.

public TableSortBuilder<T> Vector<TField>(Expression<Func<T, TField>> expression, float[] vector)

Parameters

expression Expression<Func<T, TField>>

The expression representing the sort field.

vector float[]

The vector to sort by.

Returns

TableSortBuilder<T>

The table sort builder.

Type Parameters

TField

Vectorize(string, string)

Adds a vector sort by specifying a string value to be vectorized using the collection's vectorizer.

public TableSortBuilder<T> Vectorize(string fieldName, string valueToVectorize)

Parameters

fieldName string

The name of the field to sort by.

valueToVectorize string

The string value to be vectorized.

Returns

TableSortBuilder<T>

The table sort builder.

Vectorize<TField>(Expression<Func<T, TField>>, string)

Adds a vector sort by specifying a string value to be vectorized using the collection's vectorizer.

public TableSortBuilder<T> Vectorize<TField>(Expression<Func<T, TField>> expression, string valueToVectorize)

Parameters

expression Expression<Func<T, TField>>

The expression representing the sort field.

valueToVectorize string

The string value to be vectorized.

Returns

TableSortBuilder<T>

The table sort builder.

Type Parameters

TField

The type of the field to sort by.