Mercurial > hg > Database > Alice
changeset 575:fe55be1ce12d dispose
add ids compress local
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Dec 2015 16:46:24 +0900 |
parents | ea21af9a4762 |
children | 2df12c110ebc |
files | src/main/java/alice/datasegment/DataSegmentKey.java |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/alice/datasegment/DataSegmentKey.java Tue Dec 15 11:49:07 2015 +0900 +++ b/src/main/java/alice/datasegment/DataSegmentKey.java Tue Dec 15 16:46:24 2015 +0900 @@ -1,5 +1,6 @@ package alice.datasegment; +import java.io.IOException; import java.util.ArrayList; import java.util.Iterator; @@ -85,6 +86,13 @@ } public void replyValue(Command cmd, DataSegmentValue data, boolean cFlag){ + if (cFlag){ + try { + data.rData.zip(); + } catch (IOException e) { + e.printStackTrace(); + } + } Command rCmd = new Command(CommandType.REPLY, null, null, data.rData, data.index, cmd.seq, null, null, data.from); rCmd.setCompressFlag(cFlag);