Permalink
Browse files

Upgrade Krati to 0.3.6

  • Loading branch information...
1 parent ededaf4 commit 06bb3ef5f3ffdc319a8a81f3fd9033210eab3265 @afeinberg afeinberg committed Jan 16, 2011
View
2 .classpath
@@ -49,7 +49,7 @@
<classpathentry kind="lib" path="lib/jackson-core-asl-1.4.0.jar"/>
<classpathentry kind="lib" path="lib/avro-modified-jdk5-1.3.0.jar"/>
<classpathentry kind="lib" path="contrib/hadoop/lib/pig-0.7.1-dev-core.jar"/>
- <classpathentry kind="lib" path="contrib/krati/lib/krati-0.3.4.jar"/>
+ <classpathentry kind="lib" path="contrib/krati/lib/krati-0.3.6.jar"/>
<classpathentry kind="lib" path="lib/jna.jar"/>
<classpathentry kind="lib" path="lib/mockito-all-1.8.5.jar" />
<classpathentry kind="output" path="classes"/>
View
BIN contrib/krati/lib/krati-0.3.4.jar
Binary file not shown.
View
BIN contrib/krati/lib/krati-0.3.6.jar
Binary file not shown.
View
5 contrib/krati/src/java/voldemort/store/krati/KratiStorageConfiguration.java
@@ -2,9 +2,8 @@
import java.io.File;
-import krati.cds.impl.segment.MappedSegmentFactory;
-import krati.cds.impl.segment.SegmentFactory;
-
+import krati.core.segment.MappedSegmentFactory;
+import krati.core.segment.SegmentFactory;
import org.apache.log4j.Logger;
import voldemort.server.VoldemortConfig;
View
8 contrib/krati/src/java/voldemort/store/krati/KratiStorageEngine.java
@@ -12,9 +12,9 @@
import java.util.List;
import java.util.Map;
-import krati.cds.array.DataArray;
-import krati.cds.impl.segment.SegmentFactory;
-import krati.cds.impl.store.DynamicDataStore;
+import krati.array.DataArray;
+import krati.core.segment.SegmentFactory;
+import krati.store.DynamicDataStore;
import krati.util.FnvHashFunction;
import org.apache.log4j.Logger;
@@ -108,7 +108,7 @@ public void truncate() {
List<Pair<ByteArray, Versioned<byte[]>>> returnedList = new ArrayList<Pair<ByteArray, Versioned<byte[]>>>();
DataArray array = datastore.getDataArray();
for(int index = 0; index < array.length(); index++) {
- byte[] returnedBytes = array.getData(index);
+ byte[] returnedBytes = array.get(index);
if(returnedBytes != null) {
// Extract the key value pair from this
// TODO: Move to DynamicDataStore code
View
2 contrib/krati/test/voldemort/store/krati/KratiStorageEngineTest.java
@@ -2,7 +2,7 @@
import java.io.File;
-import krati.cds.impl.segment.MappedSegmentFactory;
+import krati.core.segment.MappedSegmentFactory;
import voldemort.TestUtils;
import voldemort.store.AbstractStorageEngineTest;
import voldemort.store.StorageEngine;

0 comments on commit 06bb3ef

Please sign in to comment.