public class PreviewParseWriter extends Iced implements StreamParseWriter
ParseWriter.ParseErr, ParseWriter.UnsupportedTypeOverride| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String[][] |
_data |
protected ParseWriter.ParseErr[] |
_errs |
protected int |
_invalidLines |
protected int |
_ncols |
protected int |
_nlines |
protected static int |
MAX_PREVIEW_COLS |
protected static int |
MAX_PREVIEW_LINES |
| Modifier | Constructor and Description |
|---|---|
protected |
PreviewParseWriter() |
protected |
PreviewParseWriter(int ncols) |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(ParseWriter.ParseErr err) |
void |
addInvalidCol(int colIdx) |
void |
addNAs(int colIdx,
int nrow) |
void |
addNumCol(int colIdx,
double d) |
void |
addNumCol(int colIdx,
long number,
int exp) |
void |
addStrCol(int colIdx,
BufferedString str) |
StreamParseWriter |
close() |
StreamParseWriter |
close(Futures fs) |
java.lang.String[][] |
guessNAStrings(byte[] types) |
byte[] |
guessTypes() |
boolean |
hasErrors() |
void |
invalidLine(ParseWriter.ParseErr err) |
boolean |
isString(int colIdx) |
long |
lineNum() |
void |
newLine() |
StreamParseWriter |
nextChunk() |
StreamParseWriter |
reduce(StreamParseWriter dout) |
ParseWriter.ParseErr[] |
removeErrors() |
void |
rollbackLine() |
void |
setColumnNames(java.lang.String[] names) |
void |
setIsAllASCII(int colIdx,
boolean b) |
static PreviewParseWriter |
unifyColumnPreviews(PreviewParseWriter prevA,
PreviewParseWriter prevB) |
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonString, write, writeExternal, writeJSONequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasBytes, clone, frozenType, read, readJSON, reloadFromBytes, write, writeJSONprotected static final int MAX_PREVIEW_COLS
protected static final int MAX_PREVIEW_LINES
protected int _nlines
protected int _ncols
protected int _invalidLines
protected java.lang.String[][] _data
protected ParseWriter.ParseErr[] _errs
protected PreviewParseWriter()
protected PreviewParseWriter(int ncols)
public void setColumnNames(java.lang.String[] names)
setColumnNames in interface ParseWriterpublic void newLine()
newLine in interface ParseWriterpublic boolean isString(int colIdx)
isString in interface ParseWriterpublic void addNumCol(int colIdx,
long number,
int exp)
addNumCol in interface ParseWriterpublic void addNumCol(int colIdx,
double d)
addNumCol in interface ParseWriterpublic void addInvalidCol(int colIdx)
addInvalidCol in interface ParseWriterpublic void addNAs(int colIdx,
int nrow)
addNAs in interface ParseWriterpublic void addStrCol(int colIdx,
BufferedString str)
addStrCol in interface ParseWriterpublic void rollbackLine()
rollbackLine in interface ParseWriterpublic void setIsAllASCII(int colIdx,
boolean b)
setIsAllASCII in interface ParseWriterpublic byte[] guessTypes()
public java.lang.String[][] guessNAStrings(byte[] types)
public static PreviewParseWriter unifyColumnPreviews(PreviewParseWriter prevA, PreviewParseWriter prevB)
public void invalidLine(ParseWriter.ParseErr err)
invalidLine in interface ParseWriterpublic void addError(ParseWriter.ParseErr err)
addError in interface ParseWriterpublic boolean hasErrors()
hasErrors in interface ParseWriterpublic ParseWriter.ParseErr[] removeErrors()
removeErrors in interface ParseWriterpublic long lineNum()
lineNum in interface ParseWriterpublic StreamParseWriter nextChunk()
nextChunk in interface StreamParseWriterpublic StreamParseWriter reduce(StreamParseWriter dout)
reduce in interface StreamParseWriterpublic StreamParseWriter close()
close in interface StreamParseWriterpublic StreamParseWriter close(Futures fs)
close in interface StreamParseWriter