public IterConfig decompress(ByteBuffer iterators) { IterConfig config = new IterConfig(); UnsynchronizedBuffer.Reader in = new UnsynchronizedBuffer.Reader(iterators); int num = in.readVInt(); for (int i = 0; i < num; i++) { String name = symbolTable.get(in.readVInt()); String iterClass = symbolTable.get(in.readVInt()); int prio = in.readVInt(); config.ssiList.add(new IterInfo(prio, iterClass, name)); int numOpts = in.readVInt(); HashMap<String,String> opts = new HashMap<>(); for (int j = 0; j < numOpts; j++) { String key = symbolTable.get(in.readVInt()); String val = symbolTable.get(in.readVInt()); opts.put(key, val); } config.ssio.put(name, opts); } return config; }
public IterConfig decompress(ByteBuffer iterators) { IterConfig config = new IterConfig(); UnsynchronizedBuffer.Reader in = new UnsynchronizedBuffer.Reader(iterators); int num = in.readVInt(); for (int i = 0; i < num; i++) { String name = symbolTable.get(in.readVInt()); String iterClass = symbolTable.get(in.readVInt()); int prio = in.readVInt(); config.ssiList.add(new IterInfo(prio, iterClass, name)); int numOpts = in.readVInt(); HashMap<String,String> opts = new HashMap<>(); for (int j = 0; j < numOpts; j++) { String key = symbolTable.get(in.readVInt()); String val = symbolTable.get(in.readVInt()); opts.put(key, val); } config.ssio.put(name, opts); } return config; }