View on GitHub

carnival

JVM property graph data unification framework

GenericDataTable

Generic data tables can hold arbitrary tabular data.

docs/groovy/basic/generic-data-table-1.groovy

@Grab(group='org.pmbb', module='carnival-util', version='0.2.6')

import carnival.util.GenericDataTable

def mdt = new GenericDataTable(
  name:"myMappedDataTable"
)


mdt.dataAdd(ID:'1A', NAME:'alex')
mdt.dataAdd(ID:'1A', NAME:'bob')

def currentDir = new File(System.getProperty("user.dir"))
mdt.writeFiles(currentDir)