@@ -154,58 +154,58 @@ public byte[] get(byte[] key) throws RocksDBException {
154
154
public byte [] get (ReadOptions opt , byte [] key ) throws RocksDBException {
155
155
return get (nativeHandle_ , opt .nativeHandle_ , key , key .length );
156
156
}
157
-
157
+
158
158
/**
159
159
* Returns a map of keys for which values were found in DB.
160
- *
160
+ *
161
161
* @param keys List of keys for which values need to be retrieved.
162
- * @return Map where key of map is the key passed by user and value for map
162
+ * @return Map where key of map is the key passed by user and value for map
163
163
* entry is the corresponding value in DB.
164
- *
165
- * @see RocksDBException
164
+ *
165
+ * @see RocksDBException
166
166
*/
167
167
public Map <byte [], byte []> multiGet (List <byte []> keys )
168
168
throws RocksDBException {
169
169
List <byte []> values = multiGet (
170
170
nativeHandle_ , keys , keys .size ());
171
-
172
- Map <byte [], byte []> keyValueMap = new HashMap <byte [], byte []>();
171
+
172
+ Map <byte [], byte []> keyValueMap = new HashMap <byte [], byte []>();
173
173
for (int i = 0 ; i < values .size (); i ++) {
174
174
if (values .get (i ) == null ) {
175
175
continue ;
176
176
}
177
-
177
+
178
178
keyValueMap .put (keys .get (i ), values .get (i ));
179
179
}
180
-
180
+
181
181
return keyValueMap ;
182
182
}
183
-
184
-
183
+
184
+
185
185
/**
186
186
* Returns a map of keys for which values were found in DB.
187
- *
187
+ *
188
188
* @param List of keys for which values need to be retrieved.
189
189
* @param opt Read options.
190
- * @return Map where key of map is the key passed by user and value for map
190
+ * @return Map where key of map is the key passed by user and value for map
191
191
* entry is the corresponding value in DB.
192
- *
193
- * @see RocksDBException
192
+ *
193
+ * @see RocksDBException
194
194
*/
195
195
public Map <byte [], byte []> multiGet (ReadOptions opt , List <byte []> keys )
196
196
throws RocksDBException {
197
197
List <byte []> values = multiGet (
198
198
nativeHandle_ , opt .nativeHandle_ , keys , keys .size ());
199
-
200
- Map <byte [], byte []> keyValueMap = new HashMap <byte [], byte []>();
199
+
200
+ Map <byte [], byte []> keyValueMap = new HashMap <byte [], byte []>();
201
201
for (int i = 0 ; i < values .size (); i ++) {
202
202
if (values .get (i ) == null ) {
203
203
continue ;
204
204
}
205
-
205
+
206
206
keyValueMap .put (keys .get (i ), values .get (i ));
207
207
}
208
-
208
+
209
209
return keyValueMap ;
210
210
}
211
211
0 commit comments