You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ss...@apache.org on 2014/03/18 13:50:43 UTC

git commit: add documentation

Repository: marmotta
Updated Branches:
  refs/heads/develop c5828bb06 -> 605c5ba17


add documentation


Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/605c5ba1
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/605c5ba1
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/605c5ba1

Branch: refs/heads/develop
Commit: 605c5ba17d3903dce0b84270aff9e40a962e3c72
Parents: c5828bb
Author: Sebastian Schaffert <ss...@apache.org>
Authored: Tue Mar 18 13:50:28 2014 +0100
Committer: Sebastian Schaffert <ss...@apache.org>
Committed: Tue Mar 18 13:50:28 2014 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/marmotta/kiwi/io/KiWiIO.java | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/605c5ba1/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/io/KiWiIO.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/io/KiWiIO.java b/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/io/KiWiIO.java
index 2cce40b..5eeffd1 100644
--- a/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/io/KiWiIO.java
+++ b/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/io/KiWiIO.java
@@ -742,7 +742,13 @@ public class KiWiIO {
 
     }
 
-
+    /**
+     * Read a potentially compressed string from the data input.
+     *
+     * @param in
+     * @return
+     * @throws IOException
+     */
     private static String readContent(DataInput in) throws IOException {
         int mode = in.readByte();
 
@@ -792,7 +798,7 @@ public class KiWiIO {
 
             // only use compressed version if it is smaller than the number of bytes used by the string
             if(length < buffer.length) {
-                log.debug("compressed string with {} bytes; compression ratio {}", data.length, (double)length/data.length);
+                log.debug("compressed string with {} bytes; compression ratio {}", data.length, (double) length / data.length);
 
                 out.writeByte(MODE_COMPRESSED);
                 out.writeInt(data.length);