Skip to content

Commit 9f740b7

Browse files
committed
temp, testing Ken's varint code
1 parent b1ca2e9 commit 9f740b7

File tree

2 files changed

+132
-216
lines changed

2 files changed

+132
-216
lines changed

core/sail/lmdb/src/main/java/org/eclipse/rdf4j/sail/lmdb/ValueStore.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,7 @@ private LmdbIRI data2uri(long id, byte[] data, LmdbIRI value) throws IOException
16121612
ByteBuffer bb = ByteBuffer.wrap(data);
16131613
// skip type marker
16141614
bb.get();
1615-
long nsID = Varint.readUnsignedHeap(bb);
1615+
long nsID = Varint.readUnsigned(bb);
16161616
String namespace = getNamespace(nsID);
16171617
String localName = new String(data, bb.position(), bb.remaining(), StandardCharsets.UTF_8);
16181618

@@ -1639,7 +1639,7 @@ private LmdbLiteral data2literal(long id, byte[] data, LmdbLiteral value) throws
16391639
// skip type marker
16401640
bb.get();
16411641
// Get datatype
1642-
long datatypeID = Varint.readUnsignedHeap(bb);
1642+
long datatypeID = Varint.readUnsigned(bb);
16431643
IRI datatype = null;
16441644
if (datatypeID != LmdbValue.UNKNOWN_ID) {
16451645
datatype = (IRI) getValue(datatypeID);

0 commit comments

Comments
 (0)