delta_trace_db.query.sort.multi_sort

Classes

MultiSort(sort_orders)

(en) A class for specifying multi-dimensional sorting of query return values.

class delta_trace_db.query.sort.multi_sort.MultiSort(sort_orders: List[SingleSort])

Bases: AbstractSort

(en) A class for specifying multi-dimensional sorting of query return values.

(ja) クエリの戻り値について、多次元ソートを指定するためのクラスです。

Parameters:

sort_orders (List[SingleSort]) – A list of sort specifications for individual keys. The sorts are applied in the order listed.

class_name = 'MultiSort'
classmethod from_dict(src: Dict[str, Any]) MultiSort

(en) The appropriate object is automatically detected and restored from the dictionary.

(ja) 辞書から適切なオブジェクトを自動判定して復元します。

Parameters:

src (Dict[str, Any]) – A dictionary made with toDict of this class.

get_comparator() Callable[[Dict[str, Any], Dict[str, Any]], int]

(en) Return a comparator function for sorting.

(ja) ソート用のcomparatorオブジェクトを作成して返します。

to_dict() Dict[str, Any]

(en) Convert the object to a dictionary. The returned dictionary can only contain primitive types, null, lists or dicts with only primitive elements. If you want to include other classes, the target class should inherit from this class and chain calls toDict.

(ja) このオブジェクトを辞書に変換します。 戻り値の辞書にはプリミティブ型かプリミティブ型要素のみのリスト またはマップ等、そしてnullのみを含められます。 それ以外のクラスを含めたい場合、対象のクラスもこのクラスを継承し、 toDictを連鎖的に呼び出すようにしてください。

version = '1'