delta_trace_db.query.nodes.logical_node

Classes

AndNode(conditions)

(en) Query node for AND operation.

NotNode(condition)

(en) Query node for Not operation.

OrNode(conditions)

(en) Query node for Or operation.

class delta_trace_db.query.nodes.logical_node.AndNode(conditions: list[QueryNode])

Bases: QueryNode

(en) Query node for AND operation.

(ja) AND演算のためのクエリノード。

Parameters:

conditions (list[QueryNode]) – A list of child nodes.

evaluate(data: dict) bool

(en) Returns true if the object matches the calculation.

(ja) 計算と一致するオブジェクトだった場合はtrueを返します。

classmethod from_dict(src: Dict[str, Any])

(en) Restore this object from the dictionary.

(ja) このオブジェクトを辞書から復元します。

Parameters:

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

to_dict() dict

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

class delta_trace_db.query.nodes.logical_node.NotNode(condition: QueryNode)

Bases: QueryNode

(en) Query node for Not operation.

(ja) Not演算のためのクエリノード。

Parameters:

condition (QueryNode) – A child node.

evaluate(data: dict) bool

(en) Returns true if the object matches the calculation.

(ja) 計算と一致するオブジェクトだった場合はtrueを返します。

classmethod from_dict(src: dict)

(en) Restore this object from the dictionary.

(ja) このオブジェクトを辞書から復元します。

Parameters:

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

to_dict() dict

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

class delta_trace_db.query.nodes.logical_node.OrNode(conditions: list[QueryNode])

Bases: QueryNode

(en) Query node for Or operation.

(ja) Or演算のためのクエリノード。

Parameters:

conditions (list[QueryNode]) – A list of child nodes.

evaluate(data: dict) bool

(en) Returns true if the object matches the calculation.

(ja) 計算と一致するオブジェクトだった場合はtrueを返します。

classmethod from_dict(src: dict)

(en) Restore this object from the dictionary.

(ja) このオブジェクトを辞書から復元します。

Parameters:

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

to_dict() dict

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