Definition at line 39 of file value_wrapper.py.
◆ __init__()
| __init__ |
( |
|
self, |
|
|
Any |
value, |
|
|
ColumnType |
data_type |
|
) |
| |
◆ __eq__()
◆ __hash__()
◆ as_bool()
◆ as_date()
◆ as_decimal()
◆ as_double()
◆ as_duration()
◆ as_edge()
◆ as_embedding_vector()
| as_embedding_vector |
( |
|
self | ) |
|
◆ as_float()
◆ as_int()
◆ as_list()
◆ as_local_datetime()
| as_local_datetime |
( |
|
self | ) |
|
◆ as_local_time()
◆ as_long()
◆ as_node()
◆ as_path()
◆ as_record()
◆ as_string()
◆ as_zoned_datetime()
| as_zoned_datetime |
( |
|
self | ) |
|
◆ as_zoned_time()
◆ cast() [1/3]
◆ cast() [2/3]
| Union[T, TargetType] cast |
( |
|
self, |
|
|
Optional[Type[T]] |
target_type = None |
|
) |
| |
◆ cast() [3/3]
| T cast |
( |
|
self, |
|
|
Type[T] |
target_type |
|
) |
| |
◆ cast_primitive()
| Any cast_primitive |
( |
|
self | ) |
|
Convert the wrapped value to primitive Python types recursively.
For basic types, uses cast()
For composite types (Path, Node, Edge), calls cast_primitive()
For containers (Map, List, Record), recursively calls cast_primitive() on elements
Definition at line 329 of file value_wrapper.py.
◆ is_bool()
Check if the Value is Boolean type
Returns
-------
bool: true if Value's type is COLUMN_TYPE_BOOL
Definition at line 56 of file value_wrapper.py.
◆ is_date()
Check if the Value is Date type
Returns
-------
bool: true if Value's type is COLUMN_TYPE_DATE
Definition at line 194 of file value_wrapper.py.
◆ is_decimal()
Check if the Value is Decimal type
Returns
-------
bool: true if Value's type is COLUMN_TYPE_DECIMAL
Definition at line 234 of file value_wrapper.py.
◆ is_double()
Check if the Value is Double type
Returns
-------
bool: true if Value's type is COLUMN_TYPE_FLOAT64
Definition at line 104 of file value_wrapper.py.
◆ is_duration()
Check if the Value is Duration type
Returns
-------
bool: true if Value's type is COLUMN_TYPE_DURATION
Definition at line 214 of file value_wrapper.py.
◆ is_edge()
Check if the Value is Edge type
Returns
-------
bool: true if Value's type is COLUMN_TYPE_EDGE
Definition at line 144 of file value_wrapper.py.
◆ is_float()
Check if the Value is Float type
Returns
-------
bool: true if Value's type is COLUMN_TYPE_FLOAT32
Definition at line 94 of file value_wrapper.py.
◆ is_int()
Check if the Value is Int type
Returns
-------
bool: true if Value's type is COLUMN_TYPE_UINT8 or COLUMN_TYPE_INT8 or COLUMN_TYPE_UINT16
or COLUMN_TYPE_INT16 or COLUMN_TYPE_UINT32 or COLUMN_TYPE_INT32
Definition at line 76 of file value_wrapper.py.
◆ is_list()
Check if the Value is List type.
Returns
-------
bool: true if Value's type is COLUMN_TYPE_LIST
Definition at line 124 of file value_wrapper.py.
◆ is_local_datetime()
| bool is_local_datetime |
( |
|
self | ) |
|
Check if the Value is Local Datetime type
Returns
-------
bool: true if Value's type is COLUMN_TYPE_LOCALDATETIME
Definition at line 174 of file value_wrapper.py.
◆ is_local_time()
| bool is_local_time |
( |
|
self | ) |
|
Check if the Value is Local Time type.
Returns
-------
bool: true if Value's type is COLUMN_TYPE_LOCALTIME
Definition at line 154 of file value_wrapper.py.
◆ is_long()
Check if the Value is Long type
Returns
-------
bool: true if Value's type is COLUMN_TYPE_UINT64 or COLUMN_TYPE_INT64
Definition at line 66 of file value_wrapper.py.
◆ is_node()
Check if the Value is Node type
Returns
-------
bool: true if Value's type is COLUMN_TYPE_NODE
Definition at line 134 of file value_wrapper.py.
◆ is_null()
If the value is null
Returns
-------
bool: true if value is null
Definition at line 46 of file value_wrapper.py.
◆ is_path()
Check if the Value is Path type
Returns
-------
bool: true if Value's type is COLUMN_TYPE_PATH
Definition at line 224 of file value_wrapper.py.
◆ is_record()
Check if the Value is Record type
Returns
-------
bool: true if Value's type is COLUMN_TYPE_RECORD
Definition at line 204 of file value_wrapper.py.
◆ is_string()
Check if the Value is String type.
Returns
-------
bool: true if Value's type is COLUMN_TYPE_STRING
Definition at line 114 of file value_wrapper.py.
◆ is_zoned_datetime()
| bool is_zoned_datetime |
( |
|
self | ) |
|
Check if the Value is Zoned Datetime type
Returns
-------
bool: true if Value's type is COLUMN_TYPE_ZONEDDATETIME
Definition at line 184 of file value_wrapper.py.
◆ is_zoned_time()
| bool is_zoned_time |
( |
|
self | ) |
|
Check if the Value is Zoned Time type
Returns
-------
bool: true if Value's type is COLUMN_TYPE_ZONEDTIME
Definition at line 164 of file value_wrapper.py.
◆ data_type
◆ value
The documentation for this class was generated from the following file: