Package com.illumon.iris.db.util.schemas
Class SchemaFromCsv
java.lang.Object
com.illumon.iris.db.util.schemas.SchemaFromCsv
A utility to read CSV files of table metadata and create schemas based on them. The CSV must contain columns
specifying column names and data types, similar to the Table produced by
Table.view()-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateAndWriteSchemas(Stream<SchemaDescriptor> schemas, File outDirectory) static org.jdom2.Documentstatic StringgenerateSchemaString(SchemaDescriptor schema) Creates a String of Table schema XML with partitioning and merge information.static StringgetLoggerPathAddition(String prefix) static StringgetStructPathAddition(String prefix) static void
-
Constructor Details
-
SchemaFromCsv
public SchemaFromCsv()
-
-
Method Details
-
main
- Throws:
org.apache.commons.cli.ParseExceptionIOException
-
createAndWriteSchemas
public static void createAndWriteSchemas(Stream<SchemaDescriptor> schemas, File outDirectory) throws IOException - Throws:
IOException
-
getLoggerPathAddition
-
getStructPathAddition
-
generateSchemaString
Creates a String of Table schema XML with partitioning and merge information.- Parameters:
schema- A SchemaDescriptor that represents the layout of a Deephaven Table- Returns:
- A string of XML that can be used for a .schema file for the Table
-
generateSchemaElement
-