Skip to content
No description or website provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
example
gradle/wrapper
lib/embulk/formatter
project
src
.gitignore
LICENSE.txt
README.md
build.gradle
build.sbt
gradlew
gradlew.bat
setting.gradle

README.md

Fast JSONL formatter plugin for Embulk

Format json as 1 json in single line.

Overview

  • Plugin type: formatter

Configuration

  • encoding: output encoding. must be one of "UTF-8", "UTF-16LE", "UTF-32BE", "UTF-32LE" or "UTF-32BE" (string default: 'UTF-8')
  • newline: newline character. (string default: 'LF')
    • CRLF, LF, CR
  • default_timezone: timezone. "JST" (string default: UTC)
  • default_timestamp_format: date format,. (string default: '%Y-%m-%d %H:%M:%S.%6N %z')
  • explode_json_columns: json column's explode to top fields. (array default:[])
  • json_columns: json formatted as string column name. (array default:[])

additional mode

  • suffix_key: append suffix of key and value.(map Map[String,String]: {} )

Example

out:
  type: any output input plugin type
  formatter:
    type: fast_jsonl
    explode_json_columns: 
      - JSON_COLUMN_1
      - JSON_COLUMN_2
    suffix_key:
     append_key: append_value

Run Examples

./gradlew classpath
embulk run example/config.yml -Ilib

Build

$ ./gradlew gem  # -t to watch change of files and rebuild continuously
You can’t perform that action at this time.