Item represents the type of array. For example if array type is Int, item should be Column of type Int.
(self, owner, name, item)
| 432 | class ArrayColumn(CollectionColumn): |
| 433 | |
| 434 | def __init__(self, owner, name, item): |
| 435 | '''Item represents the type of array. For example if array type is Int, item should be |
| 436 | Column of type Int. |
| 437 | ''' |
| 438 | super(ArrayColumn, self).__init__(owner, name) |
| 439 | item.owner = self |
| 440 | item.name = 'item' |
| 441 | self._cols.append(item) |
| 442 | # Arrays have 2 fields: pos and item. Pos is automatically set to BigInt. |
| 443 | self._cols.append(Column( |
| 444 | owner=self, name='pos', exact_type=get_import('BigInt'))) |
| 445 | |
| 446 | def __eq__(self, other): |
| 447 | if not isinstance(other, ArrayColumn): |
nothing calls this directly
no test coverage detected