Skip to main content

Column-based formats

There are two columns-based formats:

Configuration​

delimiter
string
Default: "\\n"

The character that separates lines.

header
boolean
Default: true

Whether or not to emit a header.

skip_first_line
boolean
Default: false

Whether or not to skip the first line of the input.

comment_prefix
string
Default: "#"

Lines starting with this prefix are ignored.

real_precision
integer
Default: 17

Output all real numbers with at most n digits of precision. The valid range for this setting is between 0 and 31 (inclusive), and other values result in an undefined behavior.

By default, the precision is 17, to correctly and losslessly encode all IEEE 754 double precision floating point numbers.

ts_origin
boolean
Default: true

If set, include the origin timestamp in the output.

ts_received
boolean
Default: true

If set, include the received timestamp in the output.

sequence
boolean
Default: true

If set, include the sequence number in the output.

data
boolean
Default: true

If set, include the data in the output.

offset
boolean
Default: true

If set, include the offset between origin and received timestamp in the output.

{
  • "delimiter": "\\n",
  • "header": true,
  • "skip_first_line": false,
  • "comment_prefix": "#",
  • "real_precision": 17,
  • "ts_origin": true,
  • "ts_received": true,
  • "sequence": true,
  • "data": true,
  • "offset": true
}

Implementation​

The source code of the format-type is available here: https://github.com/VILLASframework/node/blob/master/lib/formats/column.cpp