Skip to content

Commit

Permalink
V1 version of SBTree
Browse files Browse the repository at this point in the history
  • Loading branch information
laa committed Jun 26, 2019
1 parent 63c71af commit 811120c
Show file tree
Hide file tree
Showing 25 changed files with 2,016 additions and 2,668 deletions.
Expand Up @@ -25,18 +25,14 @@
import com.orientechnologies.orient.core.db.record.OIdentifiable;
import com.orientechnologies.orient.core.encryption.OEncryption;
import com.orientechnologies.orient.core.id.ORID;
import com.orientechnologies.orient.core.index.OIndexAbstractCursor;
import com.orientechnologies.orient.core.index.OIndexCursor;
import com.orientechnologies.orient.core.index.OIndexDefinition;
import com.orientechnologies.orient.core.index.OIndexException;
import com.orientechnologies.orient.core.index.OIndexKeyCursor;
import com.orientechnologies.orient.core.index.OIndexKeyUpdater;
import com.orientechnologies.orient.core.index.*;
import com.orientechnologies.orient.core.index.engine.OIndexEngine;
import com.orientechnologies.orient.core.iterator.OEmptyIterator;
import com.orientechnologies.orient.core.metadata.schema.OType;
import com.orientechnologies.orient.core.record.impl.ODocument;
import com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage;
import com.orientechnologies.orient.core.storage.index.sbtree.local.OSBTree;
import com.orientechnologies.orient.core.storage.index.sbtree.local.v1.OSBTreeV1;

import java.io.IOException;
import java.util.Iterator;
Expand All @@ -54,14 +50,14 @@ public class OSBTreeIndexEngine implements OIndexEngine {
public static final String NULL_BUCKET_FILE_EXTENSION = ".nbt";

private final OSBTree<Object, Object> sbTree;
private final int version;
private final String name;
private final int version;
private final String name;

public OSBTreeIndexEngine(String name, OAbstractPaginatedStorage storage, int version) {
this.name = name;
this.version = version;

sbTree = new OSBTree<>(name, DATA_FILE_EXTENSION, NULL_BUCKET_FILE_EXTENSION, storage);
sbTree = new OSBTreeV1<>(name, DATA_FILE_EXTENSION, NULL_BUCKET_FILE_EXTENSION, storage);
}

@Override
Expand Down

0 comments on commit 811120c

Please sign in to comment.