Package com.macrofocus.molap.exporter
Class DelimitedDataFrameWriter
- java.lang.Object
-
- com.macrofocus.molap.exporter.DelimitedDataFrameWriter
-
- All Implemented Interfaces:
DataFrameWriter
public class DelimitedDataFrameWriter extends java.lang.Object implements DataFrameWriter
Created by luc on 02/04/16.
-
-
Constructor Summary
Constructors Constructor Description DelimitedDataFrameWriter(java.lang.StringBuilder writer, int columnCount, java.lang.String delimiter, java.lang.String newLine)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
includeType()
void
nextColumn(boolean hasMore)
void
nextRow()
static java.lang.String
numberToString(java.lang.Number value)
void
setTimeZone(java.util.TimeZone timeZone)
void
start()
void
writeCell(java.lang.Object value, DataFrame dataFrame, java.lang.Object rowKey, java.lang.Object columnKey)
void
writeColumnName(java.lang.String value, boolean hasMore)
void
writeType(java.lang.Class cl, boolean hasMore)
-
-
-
Method Detail
-
start
public void start() throws java.io.IOException
- Specified by:
start
in interfaceDataFrameWriter
- Throws:
java.io.IOException
-
setTimeZone
@GwtIncompatible public void setTimeZone(java.util.TimeZone timeZone)
- Specified by:
setTimeZone
in interfaceDataFrameWriter
-
writeColumnName
public void writeColumnName(java.lang.String value, boolean hasMore) throws java.io.IOException
- Specified by:
writeColumnName
in interfaceDataFrameWriter
- Throws:
java.io.IOException
-
includeType
public boolean includeType()
- Specified by:
includeType
in interfaceDataFrameWriter
-
writeType
public void writeType(java.lang.Class cl, boolean hasMore) throws java.io.IOException
- Specified by:
writeType
in interfaceDataFrameWriter
- Throws:
java.io.IOException
-
writeCell
public void writeCell(java.lang.Object value, DataFrame dataFrame, java.lang.Object rowKey, java.lang.Object columnKey) throws java.io.IOException
- Specified by:
writeCell
in interfaceDataFrameWriter
- Throws:
java.io.IOException
-
numberToString
public static java.lang.String numberToString(java.lang.Number value)
-
nextColumn
public void nextColumn(boolean hasMore) throws java.io.IOException
- Specified by:
nextColumn
in interfaceDataFrameWriter
- Throws:
java.io.IOException
-
nextRow
public void nextRow() throws java.io.IOException
- Specified by:
nextRow
in interfaceDataFrameWriter
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfaceDataFrameWriter
- Throws:
java.io.IOException
-
-