{
  "$schema" : "https://json-schema.org/draft/2020-12/schema",
  "$id" : "https://voltdb.com/voltsp/schemas/sink/file",
  "title" : "File Sink Configuration",
  "description" : "The `file` sink writes streamed data items to files within a specified directory.\n\nEach worker will write data to a different file with a unique random name.\nAs a result it supports parallelism higher than `1`.\n\nAll strings are printed using `UTF-8`. The file is not `f-synced`.\n",
  "type" : "object",
  "properties" : {
    "file" : {
      "type" : "object",
      "properties" : {
        "dirPath" : {
          "type" : "string",
          "description" : "Path to the output directory."
        },
        "delimiter" : {
          "type" : "string",
          "description" : "Event delimiter that will be appended to the file between writing consecutive events."
        },
        "encoder" : {
          "type" : "string",
          "description" : "Code that converts incoming elements to bytes for writing into the file."
        }
      },
      "required" : [ "dirPath" ],
      "additionalProperties" : false
    }
  },
  "required" : [ "file" ],
  "additionalProperties" : false
}
