Mercurial > hg > Database > Alice
comparison src/alice/datasegment/LocalDataSegmentManager.java @ 293:f5d7654b90ff
remove unused method
author | sugi |
---|---|
date | Sun, 20 Oct 2013 18:26:49 +0900 |
parents | b4690114a0cd |
children | a8255a831ade |
comparison
equal
deleted
inserted
replaced
292:8e36904676af | 293:f5d7654b90ff |
---|---|
58 } | 58 } |
59 return dataSegmentKey; | 59 return dataSegmentKey; |
60 } | 60 } |
61 | 61 |
62 @Override | 62 @Override |
63 public void put(String key, byte[] val) { | |
64 put(key, val); | |
65 } | |
66 | |
67 @Override | |
68 public void put(String key, Object val) { | 63 public void put(String key, Object val) { |
69 DataSegmentKey dataSegmentKey = getDataSegmentKey(key); | 64 DataSegmentKey dataSegmentKey = getDataSegmentKey(key); |
70 Command cmd = new Command(CommandType.PUT, null, key, val, 0, 0, null, null, reverseKey); | 65 Command cmd = new Command(CommandType.PUT, null, key, val, 0, 0, null, null, reverseKey); |
71 dataSegmentKey.runCommand(cmd); | 66 dataSegmentKey.runCommand(cmd); |
72 if (logger.isDebugEnabled()) | 67 if (logger.isDebugEnabled()) |
73 logger.debug(cmd.getCommandString()); | 68 logger.debug(cmd.getCommandString()); |
74 } | |
75 | |
76 @Override | |
77 public void quickPut(String key, byte[] val) { | |
78 put(key, val); | |
79 } | 69 } |
80 | 70 |
81 @Override | 71 @Override |
82 public void quickPut(String key, Object val) { | 72 public void quickPut(String key, Object val) { |
83 put(key, val); | 73 put(key, val); |
86 /** | 76 /** |
87 * Enqueue update command to the queue of each DataSegment key | 77 * Enqueue update command to the queue of each DataSegment key |
88 */ | 78 */ |
89 | 79 |
90 @Override | 80 @Override |
91 public void update(String key, byte[] val) { | |
92 update(key, val); | |
93 } | |
94 | |
95 @Override | |
96 public void update(String key, Object val) { | 81 public void update(String key, Object val) { |
97 DataSegmentKey dataSegmentKey = getDataSegmentKey(key); | 82 DataSegmentKey dataSegmentKey = getDataSegmentKey(key); |
98 Command cmd = new Command(CommandType.UPDATE, null, key, val, 0, 0, null, null, reverseKey); | 83 Command cmd = new Command(CommandType.UPDATE, null, key, val, 0, 0, null, null, reverseKey); |
99 dataSegmentKey.runCommand(cmd); | 84 dataSegmentKey.runCommand(cmd); |
100 if (logger.isDebugEnabled()) | 85 if (logger.isDebugEnabled()) |
101 logger.debug(cmd.getCommandString()); | 86 logger.debug(cmd.getCommandString()); |
102 } | 87 } |
103 | 88 |
104 @Override | |
105 public void quickUpdate(String key, byte[] val) { | |
106 update(key, val); | |
107 } | |
108 | 89 |
109 @Override | 90 @Override |
110 public void quickUpdate(String key, Object val) { | 91 public void quickUpdate(String key, Object val) { |
111 update(key, val); | 92 update(key, val); |
112 } | 93 } |