TurtleDB
A mini distributed database system
ca.uqac.dim.turtledb.TableParser Class Reference

List of all members.

Static Public Member Functions

static Table parseFromCsv (String name, String s)

Detailed Description

Parses a table from a character string.

Author:
sylvain

Definition at line 25 of file TableParser.java.


Member Function Documentation

static Table ca.uqac.dim.turtledb.TableParser.parseFromCsv ( String  name,
String  s 
) [static]

Builds a table from a character string. The string must follow these conventions:

  • Any leading or trailing whitespace on a line is ignored
  • Empty lines and lines starting with # or --- are ignored
  • The first non-ignored line is a comma- or space-separated list of attribute names
  • The remaining non-ignored lines are comma- or space-separated list of attribute values, making a tuple
Parameters:
nameThe table's name
dataThe data

Definition at line 42 of file TableParser.java.


The documentation for this class was generated from the following file: