Class IndexDefinitionsJsonWriter

java.lang.Object
org.apache.sling.feature.cpconverter.index.IndexDefinitionsJsonWriter

public class IndexDefinitionsJsonWriter extends Object
Writes index definitions in a JSON format that can be consumed by the oak-run tool.
See Also:
  • Constructor Details

    • IndexDefinitionsJsonWriter

      public IndexDefinitionsJsonWriter(@NotNull @NotNull IndexDefinitions indexDefinitions)
  • Method Details

    • writeAsJson

      public void writeAsJson(@NotNull @NotNull OutputStream out) throws IOException
      Writes the index definitions to the specified out
      Parameters:
      out - the output stream to write to
      Throws:
      IOException