Mercurial > hg > Members > nobuyasu > jungle-network
comparison src/main/java/alice/jungle/transaction/JungleUpdater.java @ 192:3202a2a427b1
bug fix
author | tatsuki |
---|---|
date | Tue, 20 Jan 2015 09:30:59 +0900 |
parents | 495ac60d7f5f |
children |
comparison
equal
deleted
inserted
replaced
191:5d0734fd859d | 192:3202a2a427b1 |
---|---|
52 | 52 |
53 private static Either<Error, JungleTreeEditor> _edit(JungleTreeEditor editor, NodePath path, | 53 private static Either<Error, JungleTreeEditor> _edit(JungleTreeEditor editor, NodePath path, |
54 NodeOperation nodeOp, int pos) { | 54 NodeOperation nodeOp, int pos) { |
55 String key = ""; | 55 String key = ""; |
56 Command c = nodeOp.getCommand(); | 56 Command c = nodeOp.getCommand(); |
57 System.out.println("path = " + path.toString()); | |
57 switch (c) { | 58 switch (c) { |
58 case PUT_ATTRIBUTE: | 59 case PUT_ATTRIBUTE: |
59 key = nodeOp.getKey(); | 60 key = nodeOp.getKey(); |
60 ByteBuffer value = nodeOp.getValue(); | 61 ByteBuffer value = nodeOp.getValue(); |
62 System.out.println("key = " + key + " : " + "value = " + new String(value.array())); | |
61 return editor.putAttribute(path, key, value); | 63 return editor.putAttribute(path, key, value); |
62 case DELETE_ATTRIBUTE: | 64 case DELETE_ATTRIBUTE: |
63 key = nodeOp.getKey(); | 65 key = nodeOp.getKey(); |
64 return editor.deleteAttribute(path, key); | 66 return editor.deleteAttribute(path, key); |
65 case APPEND_CHILD: | 67 case APPEND_CHILD: |