code: private void appendPersistentIndex(short[] code) {
  		// write id and code
  		TupleOutput output = new TupleOutput();
  		for (int i = 0; i < numSubVectors; i++) {
  			output.writeShort(code[i]);
  		}
  		DatabaseEntry data = new DatabaseEntry();
  		TupleBinding.outputToEntry(output, data);
  		DatabaseEntry key = new DatabaseEntry();
  		IntegerBinding.intToEntry(loadCounter, key);
  		iidToPqDB.put(null, key, data);
  	}
docs: Appends the persistent index with the given (short) code.
  
  @param code
  The code