gravitino.dto.responses.partition_response.PartitionResponse¶
- class gravitino.dto.responses.partition_response.PartitionResponse(_code: int, _partition: PartitionDTO)¶
Bases:
BaseResponseRepresents a response for a partition.
- __init__(_code: int, _partition: PartitionDTO) None¶
Methods
__init__(_code, _partition)code()from_dict(kvs, *[, infer_missing])from_json(s, *[, parse_float, parse_int, ...])Returns the partition.
schema(*[, infer_missing, only, exclude, ...])to_dict([encode_json])to_json(*[, skipkeys, ensure_ascii, ...])validate()Validates the response code.
Attributes
dataclass_json_config- get_partition() Partition¶
Returns the partition.
- Returns:
Partition: The partition.
- validate()¶
Validates the response code. @throws IllegalArgumentException if code value is negative.