Esempio n. 1
0
 value_type operator()() {
     auto idx = std::dynamic_pointer_cast<InvertedIndex<ValueType>>(_index);
     auto v = static_cast<IndexValue<ValueType>*>(_indexValue);
     storage::pos_list_t *result = new storage::pos_list_t(idx->getPositionsForKey(v->value));
     return result;
 }
Esempio n. 2
0
  storage::pos_list_t * operator()() {
    auto idx = std::dynamic_pointer_cast<hyrise::storage::PagedIndex>(_index);
    auto v = static_cast<IndexValue<ValueType>*>(_indexValue);

    return idx->getPositionsForKey(v->value, _column, _inputTable);
  }