public interface TupleWriter
| Modifier and Type | Method and Description |
|---|---|
void |
abortTA(Long TAId)
Aborts the transaction with the given id.
|
void |
addTuple(Collection<String> tuple)
Adds a tuple to the stream without TA-Control.
|
void |
addTuple(Long TAId,
Collection<String> tuple)
Adds a tuple to the stream without TA-Control.
|
long |
beginTA()
Starts a transaction and returns a unique id for it.
|
void |
commitTA(Long TAId)
Commits the transaction with the given id.
|
Collection<String> |
getAttNames()
Returns the names of attributes to which data belong.
|
String |
getEncoding()
Returns the encoding in which data shall be stored.
|
Hashtable<Character,String> |
getEscapeTable()
This method returns the current escape table for this TupleWriter
|
File |
getFile()
Returns the output file.
|
String |
getSeperator()
Returns the seperator with which the data will be departed on stream.
|
Boolean |
isDistinct()
Returns true if this tuple writer stores values more than one times, if
they are equal
|
void |
setAttNames(Collection<String> attNames)
Sets the names of attributes to which data belong.
|
void |
setDistinct(Boolean distinct)
Set the distinct value for this tuple writer.
|
void |
setEncoding(String encoding)
Sets the encoding in which data shall be stored.
|
void |
setEscapeTable(Hashtable<Character,String> escapeTable)
This method sets the table of escape sequences
|
void |
setEscaping(boolean escape)
Sets an internal flag which specifies whether special chars should be
escaped
|
void |
setFile(File out)
Sets the output file to the given.
|
void |
setSeperator(String seperator)
Sets the seperator with which the data will be departed on stream.
|
void setEncoding(String encoding)
encoding - in which data shall be storedvoid setEscaping(boolean escape)
escape - true, if special chars should be escaped and false, if not.void setEscapeTable(Hashtable<Character,String> escapeTable)
escapeTable - the tableHashtable<Character,String> getEscapeTable()
String getEncoding()
void setSeperator(String seperator)
seperator - with which the data will be departed on streamString getSeperator()
void setAttNames(Collection<String> attNames)
attNames - - names of attributes to which data belongCollection<String> getAttNames()
void setDistinct(Boolean distinct)
distinct - true if values shall be stored distinct.Boolean isDistinct()
void setFile(File out)
File getFile()
void addTuple(Collection<String> tuple) throws FileNotFoundException
tuple - - the tuple which shall be storedFileNotFoundExceptionlong beginTA()
void commitTA(Long TAId) throws FileNotFoundException
TAId - - transactional id which is returned by beginTA()FileNotFoundExceptionvoid abortTA(Long TAId)
TAId - - transactional id which is returned by beginTA()void addTuple(Long TAId, Collection<String> tuple) throws FileNotFoundException
TAId - - transactional id to which this adding belongs (returned by
beginTA())tuple - - the tuple which shall be storedFileNotFoundExceptionCopyright © 2010–2019 Humboldt-Universität zu Berlin, INRIA. All rights reserved.