|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.apache.spark.sql.sources.OutputWriter
public abstract class OutputWriter
::Experimental::
OutputWriter
is used together with HadoopFsRelation
for persisting rows to the
underlying file system. Subclasses of OutputWriter
must provide a zero-argument constructor.
An OutputWriter
instance is created and initialized when a new output file is opened on
executor side. This instance is used to persist rows to this single output file.
Constructor Summary | |
---|---|
OutputWriter()
|
Method Summary | |
---|---|
abstract void |
close()
Closes the OutputWriter . |
abstract void |
write(Row row)
Persists a single row. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputWriter()
Method Detail |
---|
public abstract void write(Row row)
row
- (undocumented)public abstract void close()
OutputWriter
. Invoked on the executor side after all rows are persisted, before
the task output is committed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |