1
0
Fork 0

Added stubs to get an index iterator from an index with VPackSlices

This commit is contained in:
Michael Hackstein 2016-02-19 16:29:14 +01:00
parent b406a062ca
commit ff07376fc9
3 changed files with 21 additions and 0 deletions

View File

@ -925,6 +925,16 @@ IndexIterator* HashIndex::iteratorForCondition(
return new HashIndexIterator(trx, this, searchValues);
}
////////////////////////////////////////////////////////////////////////////////
/// @brief creates an IndexIterator for the given VelocyPackSlices
////////////////////////////////////////////////////////////////////////////////
IndexIterator* HashIndex::iteratorForSlices(
arangodb::Transaction* trx, IndexIteratorContext* context,
std::shared_ptr<std::vector<VPackSlice>> slides, bool reverse) const {
return nullptr;
}
////////////////////////////////////////////////////////////////////////////////
/// @brief specializes the condition for use with the index
////////////////////////////////////////////////////////////////////////////////

View File

@ -165,6 +165,11 @@ class HashIndex final : public PathBasedIndex {
arangodb::aql::Variable const*,
bool) const override;
IndexIterator* iteratorForSlices(
arangodb::Transaction*, IndexIteratorContext*,
std::shared_ptr<std::vector<arangodb::velocypack::Slice>>,
bool) const override;
arangodb::aql::AstNode* specializeCondition(
arangodb::aql::AstNode*, arangodb::aql::Variable const*) const override;

View File

@ -374,6 +374,12 @@ class Index {
arangodb::aql::Variable const*,
bool) const;
virtual IndexIterator* iteratorForSlices(
arangodb::Transaction*, IndexIteratorContext*,
std::shared_ptr<std::vector<arangodb::velocypack::Slice>>, bool) const {
THROW_ARANGO_EXCEPTION(TRI_ERROR_NOT_IMPLEMENTED);
}
virtual arangodb::aql::AstNode* specializeCondition(
arangodb::aql::AstNode*, arangodb::aql::Variable const*) const;