|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.cwi.sen1.visplugin.csvexport.Exporter
public class Exporter
CSV export functionality for RTuples
Nested Class Summary | |
---|---|
static class |
Exporter.ExportSelection
Enumeration used to indicate which part of a RTuple should be exported to CSV |
Constructor Summary | |
---|---|
Exporter()
|
Method Summary | |
---|---|
static void |
export(nl.cwi.sen1.relationstores.types.RTuple rTuple,
CsvWriter csvWriter,
Exporter.ExportSelection selection)
Writes the content of a RTupe to a CSV writer |
private static void |
exportColumnTypes(nl.cwi.sen1.relationstores.types.RTypeColumnTypes columnTypes,
CsvWriter writer)
Writes the data types as headers to the CvsWriter |
private static void |
exportData(nl.cwi.sen1.relationstores.types.RTuple rTuple,
CsvWriter csvWriter)
Writes the data of an rTuple to the CvsWriter |
static void |
exportToFile(nl.cwi.sen1.relationstores.types.RTuple rTuple,
java.lang.String fileName,
Exporter.ExportSelection selection)
Writes the content of a RTuple to an CSV formatted file |
private static java.lang.String |
RElemToString(nl.cwi.sen1.relationstores.types.RElem elem)
Converts the value of a simple RElem to a String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Exporter()
Method Detail |
---|
public static void exportToFile(nl.cwi.sen1.relationstores.types.RTuple rTuple, java.lang.String fileName, Exporter.ExportSelection selection) throws java.io.IOException
rTuple
- the RTuple to be exportedfileName
- the name of the output fileselection
- indicates which information has to be exported
java.io.IOException
public static void export(nl.cwi.sen1.relationstores.types.RTuple rTuple, CsvWriter csvWriter, Exporter.ExportSelection selection) throws java.io.IOException
rTuple
- the RTuple to be exportedcsvWriter
- the CSV writer to produce the outputselection
- indicates which information has to be exported
java.io.IOException
private static void exportData(nl.cwi.sen1.relationstores.types.RTuple rTuple, CsvWriter csvWriter) throws java.io.IOException
rTuple
- the RTuple to be exportedcsvWriter
- the CSV writer to produce the output
java.io.IOException
private static void exportColumnTypes(nl.cwi.sen1.relationstores.types.RTypeColumnTypes columnTypes, CsvWriter writer) throws java.io.IOException
columnTypes
- column types information that will be used as headerswriter
- The CSV writer to produce the output
java.io.IOException
private static java.lang.String RElemToString(nl.cwi.sen1.relationstores.types.RElem elem)
elem
- the RElem to be converted
|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |