@Override
  public IndexOutput createTempOutput(String prefix, String suffix, IOContext context)
      throws IOException {
    String name = prefix + "_temp_" + UUID.randomUUID() + suffix;
    final File file = fs.createTemporaryFile(name);
    final OutputStream out = file.getOutputStream();

    return new OutputStreamIndexOutput(name, name, out, 1000);
  }
Create a region directory with a given file and chunk region. These regions may be bucket
regions or they may be replicated regions.
geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/directory/RegionDirectory.java