(self, write_context, value)
| 425 | super().__init__(type_resolver, pd.RangeIndex) |
| 426 | |
| 427 | def write(self, write_context, value): |
| 428 | start = value.start |
| 429 | stop = value.stop |
| 430 | step = value.step |
| 431 | if type(start) is int: |
| 432 | write_context.write_int16(NOT_NULL_INT64_FLAG) |
| 433 | write_context.write_varint64(start) |
| 434 | else: |
| 435 | if start is None: |
| 436 | write_context.write_int8(NULL_FLAG) |
| 437 | else: |
| 438 | write_context.write_int8(NOT_NULL_VALUE_FLAG) |
| 439 | write_context.write_no_ref(start) |
| 440 | if type(stop) is int: |
| 441 | write_context.write_int16(NOT_NULL_INT64_FLAG) |
| 442 | write_context.write_varint64(stop) |
| 443 | else: |
| 444 | if stop is None: |
| 445 | write_context.write_int8(NULL_FLAG) |
| 446 | else: |
| 447 | write_context.write_int8(NOT_NULL_VALUE_FLAG) |
| 448 | write_context.write_no_ref(stop) |
| 449 | if type(step) is int: |
| 450 | write_context.write_int16(NOT_NULL_INT64_FLAG) |
| 451 | write_context.write_varint64(step) |
| 452 | else: |
| 453 | if step is None: |
| 454 | write_context.write_int8(NULL_FLAG) |
| 455 | else: |
| 456 | write_context.write_int8(NOT_NULL_VALUE_FLAG) |
| 457 | write_context.write_no_ref(step) |
| 458 | write_context.write_ref(value.dtype) |
| 459 | write_context.write_ref(value.name) |
| 460 | |
| 461 | def read(self, read_context): |
| 462 | if read_context.read_int8() == NULL_FLAG: |
nothing calls this directly
no test coverage detected