public static void setWrappedInputFormat(Class<?> realInputFormatClass, Configuration conf) {
   HadoopUtils.setClassConf(conf, CLASS_CONF_KEY, realInputFormatClass);
 }
 /**
  * Get the queries to run over the indexes These are the queries in the same form as they were
  * passed to {@link #setQueries} above
  *
  * @param conf job conf
  * @return queries as passed to {@link #setQueries}
  * @throws IOException
  */
 @SuppressWarnings("unchecked")
 public static List<String> getQueries(Configuration conf) throws IOException {
   return Preconditions.checkNotNull(
       HadoopUtils.readStringListFromConfAsJson(QUERIES_KEY, conf),
       "You must call LuceneIndexInputFormat.setQueries()");
 }
 public static void setClassConf(Class<?> clazz, Configuration conf) {
   HadoopUtils.setClassConf(conf, CLASS_CONF_KEY, clazz);
 }
 /**
  * Set the queries to run over the indexes These can be Strings suitable for parsing with a
  * QueryParser, or they can be a custom serialized Query object. They have to be Strings so that
  * they can be written to the job conf. They will be deserialized / parsed by the abstract method
  * {@link LuceneIndexRecordReader#deserializeQuery(String)}
  *
  * @param queries queries to run over the indexes
  * @param conf job conf
  * @throws IOException
  */
 public static void setQueries(List<String> queries, Configuration conf) throws IOException {
   Preconditions.checkNotNull(queries);
   Preconditions.checkArgument(!queries.isEmpty());
   HadoopUtils.writeStringListToConfAsJson(QUERIES_KEY, queries, conf);
 }