protected Writer createOrcWriter(CacheWriter cacheWriter, Configuration conf,
        Path path, StructObjectInspector oi) throws IOException {
      // TODO: this is currently broken. We need to set memory manager to a bogus implementation
      //       to avoid problems with memory manager actually tracking the usage.
      return OrcFile.createWriter(path, createOrcWriterOptions(oi, conf, cacheWriter, allocSize));
    }
This class only exists because Java doesn't have yield return. The original method
before this change only needed yield return-s sprinkled here and there; however,
Java developers are usually paid by class, so here we go.
llap-server/src/java/org/apache/hadoop/hive/llap/io/encoded/SerDeEncodedDataReader.java