1
0
Fork 0

skiplists

This commit is contained in:
Jan Steemann 2012-05-15 15:27:43 +02:00
parent 85f24a72f0
commit d4da126bcb
3 changed files with 17 additions and 1 deletions

View File

@ -182,13 +182,13 @@ TRI_aql_index_t* TRI_DetermineIndexAql (TRI_aql_context_t* const context,
switch (idx->_type) {
case TRI_IDX_TYPE_GEO1_INDEX:
case TRI_IDX_TYPE_GEO2_INDEX:
case TRI_IDX_TYPE_SKIPLIST_INDEX:
case TRI_IDX_TYPE_PRIORITY_QUEUE_INDEX:
case TRI_IDX_TYPE_CAP_CONSTRAINT:
// ignore all these index types for now
continue;
case TRI_IDX_TYPE_PRIMARY_INDEX:
case TRI_IDX_TYPE_HASH_INDEX:
case TRI_IDX_TYPE_SKIPLIST_INDEX:
// these indexes are candidates
break;
}

View File

@ -328,6 +328,14 @@ function AHUACATL_GET_DOCUMENTS_HASH (collection, idx, example) {
return internal.db[collection].BY_EXAMPLE_HASH(idx, example).documents;
}
////////////////////////////////////////////////////////////////////////////////
/// @brief get documents from the specified collection using a skiplist
////////////////////////////////////////////////////////////////////////////////
function AHUACATL_GET_DOCUMENTS_SKIPLIST (collection, idx, example) {
return internal.db[collection].BY_EXAMPLE_SKIPLIST(idx, example).documents;
}
////////////////////////////////////////////////////////////////////////////////
/// @}
////////////////////////////////////////////////////////////////////////////////

View File

@ -330,6 +330,14 @@ static string JS_server_ahuacatl =
"}\n"
"\n"
"////////////////////////////////////////////////////////////////////////////////\n"
"/// @brief get documents from the specified collection using a skiplist\n"
"////////////////////////////////////////////////////////////////////////////////\n"
"\n"
"function AHUACATL_GET_DOCUMENTS_SKIPLIST (collection, idx, example) {\n"
" return internal.db[collection].BY_EXAMPLE_SKIPLIST(idx, example).documents;\n"
"}\n"
"\n"
"////////////////////////////////////////////////////////////////////////////////\n"
"/// @}\n"
"////////////////////////////////////////////////////////////////////////////////\n"
"\n"