commit | 80b2675c74bf795e08d6985a8b3b61e5b810748a | [log] [tgz] |
---|---|---|
author | Eliza Margaretha <margaretha@ids-mannheim.de> | Wed Sep 17 16:20:32 2014 +0000 |
committer | Eliza Margaretha <margaretha@ids-mannheim.de> | Wed Sep 17 16:20:32 2014 +0000 |
tree | 65cc7da8838e3249b6109d74643479d9af685ffe | |
parent | 99d7f8a80c27e6f9202c6e7f06914c8a08a495f7 [diff] |
Updated payload order for classnumber
diff --git a/src/main/java/de/ids_mannheim/korap/query/spans/ExpandedExclusionSpans.java b/src/main/java/de/ids_mannheim/korap/query/spans/ExpandedExclusionSpans.java index f406ef2..79c6db4 100644 --- a/src/main/java/de/ids_mannheim/korap/query/spans/ExpandedExclusionSpans.java +++ b/src/main/java/de/ids_mannheim/korap/query/spans/ExpandedExclusionSpans.java
@@ -224,9 +224,9 @@ private byte[] calculateExtensionOffsets(int start, int end) { ByteBuffer buffer = ByteBuffer.allocate(9); - buffer.put(classNumber); buffer.putInt(start); - buffer.putInt(end); + buffer.putInt(end); + buffer.put(classNumber); return buffer.array(); }
diff --git a/src/main/java/de/ids_mannheim/korap/query/spans/ExpandedSpans.java b/src/main/java/de/ids_mannheim/korap/query/spans/ExpandedSpans.java index 9000d4e..1f039cd 100644 --- a/src/main/java/de/ids_mannheim/korap/query/spans/ExpandedSpans.java +++ b/src/main/java/de/ids_mannheim/korap/query/spans/ExpandedSpans.java
@@ -109,10 +109,10 @@ } private byte[] calculateExtensionOffsets(int start, int end) { - ByteBuffer buffer = ByteBuffer.allocate(9); + ByteBuffer buffer = ByteBuffer.allocate(9); + buffer.putInt(start); + buffer.putInt(end); buffer.put(classNumber); - buffer.putInt(start); - buffer.putInt(end); return buffer.array(); }