->GTS
gts encoder conversion multivariateThe ->GTS
function converts an encoder into one GTS per type in the encoder. The result is a map, with key describing the type. If defined, name, labels and attributes are kept in the result.
Function also accepts wrapped or raw-wrapped encoders.
Since 2.4.0:
->GTS
function can also take a conversion MAP input. Using this conversion MAP, the output is always a list of GTS.- The conversion map can also take a list of selectors for each output type.
- The conversion map can be empty: In this case, the GTS type is enforced by the type of the first element in the encoder input.
- The first selector match stops the research. It means key order matters. See Examples.
- A new '.type' label is added to each output GTS. This could be overridden with the 'label.type' parameter of the conversion MAP.
->GTS
function can handle encoders, or list of encoders.
What is an encoder ?
A Geo Time Series™ is limited to the type of the first value stored. An encoder is very similar to a Geo Time Series™, it differs by its ability to store values of all four types (LONG, DOUBLE, BOOLEAN, STRING) and since 2.1 also BINARY content. The set of operations which can be performed on encoders is more limited than those that can be performed on GTS.