From 36c23fee82392014557ff06d4cf7ca42db39f2d3 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Mon, 7 Apr 2008 01:16:19 +0000 Subject: Clean up use of MergeSortBuffer. --- .../com/amazon/carbonado/repo/sleepycat/BDBStorage.java | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'src/main/java/com/amazon/carbonado/repo/sleepycat') diff --git a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java index 126e40f..6c4d4e0 100644 --- a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java +++ b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java @@ -42,7 +42,6 @@ import com.amazon.carbonado.UniqueConstraintException; import com.amazon.carbonado.capability.IndexInfo; -import com.amazon.carbonado.cursor.ArraySortBuffer; import com.amazon.carbonado.cursor.EmptyCursor; import com.amazon.carbonado.cursor.MergeSortBuffer; import com.amazon.carbonado.cursor.SingletonCursor; @@ -119,8 +118,6 @@ abstract class BDBStorage implements Storage, Storag /** Reference to query engine, defined later in this class */ private QueryEngine mQueryEngine; - private Storage mRootStorage; - final TriggerManager mTriggerManager; /** @@ -260,18 +257,7 @@ abstract class BDBStorage implements Storage, Storag } public SortBuffer createSortBuffer() { - // FIXME: This is messy. If Storables had built-in serialization - // support, then MergeSortBuffer would not need a root storage. - if (mRootStorage == null) { - try { - mRootStorage = mRepository.getRootRepository().storageFor(getStorableType()); - } catch (RepositoryException e) { - LogFactory.getLog(BDBStorage.class).warn(null, e); - return new ArraySortBuffer(); - } - } - - return new MergeSortBuffer(mRootStorage); + return new MergeSortBuffer(); } public long countAll() throws FetchException { -- cgit v1.2.3