code: private static void addFieldValue(OlapDocument document, String fieldName, String value, String idFieldName) {
          if (fieldName.equals(idFieldName)) {
              document.setId(value);
          } else if (fieldName.equals("_table")) {
              document.setTable(value);
          } else if (fieldName.equals("_deleted")) {
              document.setDeleted("true".equals(value));
          } else {
              document.addField(fieldName, value);
          }
      }
docs: addFieldValues