MCPcopy Create free account
hub / github.com/apache/impala / __init__

Method __init__

tests/comparison/common.py:434–444  ·  view source on GitHub ↗

Item represents the type of array. For example if array type is Int, item should be Column of type Int.

(self, owner, name, item)

Source from the content-addressed store, hash-verified

432class 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):

Callers

nothing calls this directly

Calls 4

get_importFunction · 0.85
ColumnClass · 0.70
__init__Method · 0.45
appendMethod · 0.45

Tested by

no test coverage detected