-
Notifications
You must be signed in to change notification settings - Fork 46
Indexing
niranda perera edited this page Sep 22, 2021
·
1 revision
- Range
- Linear
- Hash
output table -->
if table.index.col_id is in columns:
return table.select_columns(columns).slice(start_idx, end_idx + 1)
else:
return table.select_columns([columns, table.index.col_id]).slice(start_idx, end_idx + 1)input index --> output index
- Range --> Range [start_idx, end_idx]
- Linear --> Linear (set on the corresponding index column)
- Hash --> Hash (set on the corresponding index column)
output table -->
if table.index.col_id is in columns:
return table.select_columns(columns).take(indices)
else:
return table.select_columns([columns, table.index.col_id]).take(indices)input index --> output index
- Range --> Linear index from
indices - Linear --> Linear (set on the corresponding index column)
- Hash --> Hash (set on the corresponding index column)