Row Parsers
  • 27 Jul 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Row Parsers

  • Dark
    Light
  • PDF

Article summary

The row parser is the abstract parent type for other parsers which load data from one or more rows in a source data table.

As an abstract type, it is not possible to instantiate a row type parser - only its child types.

Parser types which inherit from the row type are designed to create and load transposed data in tables where entity IDs are column headers, and rows represent vectors of data for loading.

Variables created will be named from row header values - the row header column is defined by the variable attribute.

Attribute - collection

The collection attribute is required.

{
  "parser_type": "tttt",
  
  // Here, the collection attribute defines a 
  // constant collection name.
  //
  "collection": "collection_name",
  
  "variable": {...}
}

Attribute - variable

The variable attribute is required.

{
  "parser_type": "tttt",
  "collection": "collection_name",
  
  // The variable attribute defines a categorical column parser
  // which specifies the column that contains row headers.
  //
  // These row header values will become variable names
  //
  "variable": {...}
}

Attribute - start

The start attribute is optional.

{
  "parser_type": "tttt",
  "collection": "collection_name",
  "variable": {...},
  
  // The start attribute indicates the index where the 
  // entity columns begin (inclusive)
  "start": 1
}

Attribute - end

The end attribute is optional.

{
  "parser_type": "tttt",
  "collection": "collection_name",
  "variable": {...},
  "start": 1,
  
  // The end attribute indicates the index where the 
  // entity columns end (inclusive)
  "end": 1000
}

Was this article helpful?