Class TableSortBuilder<T>
A sort builder specifically for table operations.
public class TableSortBuilder<T> : SortBuilder<T>
Type Parameters
TThe type of the document
- Inheritance
-
SortBuilder<T>TableSortBuilder<T>
- Inherited Members
Methods
Ascending(string)
public TableSortBuilder<T> Ascending(string fieldName)
Parameters
fieldNamestring
Returns
Ascending<TField>(Expression<Func<T, TField>>)
public TableSortBuilder<T> Ascending<TField>(Expression<Func<T, TField>> expression)
Parameters
expressionExpression<Func<T, TField>>
Returns
Type Parameters
TField
Descending(string)
public TableSortBuilder<T> Descending(string fieldName)
Parameters
fieldNamestring
Returns
Descending<TField>(Expression<Func<T, TField>>)
public TableSortBuilder<T> Descending<TField>(Expression<Func<T, TField>> expression)
Parameters
expressionExpression<Func<T, TField>>
Returns
Type Parameters
TField
Lexical(string, string)
Adds a lexical sort.
public TableSortBuilder<T> Lexical(string columnName, string value)
Parameters
Returns
Lexical<TField>(Expression<Func<T, TField>>, string)
Adds a lexical sort.
public TableSortBuilder<T> Lexical<TField>(Expression<Func<T, TField>> column, string value)
Parameters
columnExpression<Func<T, TField>>valuestring
Returns
Type Parameters
TField
Vector(string, float[])
Adds a vector sort.
public TableSortBuilder<T> Vector(string fieldName, float[] vector)
Parameters
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
expressionExpression<Func<T, TField>>The expression representing the sort field.
vectorfloat[]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
fieldNamestringThe name of the field to sort by.
valueToVectorizestringThe 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
expressionExpression<Func<T, TField>>The expression representing the sort field.
valueToVectorizestringThe string value to be vectorized.
Returns
- TableSortBuilder<T>
The table sort builder.
Type Parameters
TFieldThe type of the field to sort by.