public interface TupleReader
| Modifier and Type | Method and Description |
|---|---|
Integer |
characterSize()
Returns the number of characters contained in this tuple reader.
|
Integer |
characterSize(Integer fieldIndex)
Returns the number of characters contained in the field given by
fieldIndex of this tuple reader. |
String |
getEncoding()
Returns the encoding in which data shall be stored.
|
File |
getFile()
Returns the
|
Integer |
getNumOfTuples()
Returns the number of read tuples.
|
String |
getSeperator()
Returns the seperator with which the data will be departed on stream.
|
Collection<String> |
getTuple()
Returns a the tuple which is next in datasource.
|
Collection<String> |
getTuple(Integer index)
Returns the tuple at position index.
|
Collection<Collection<String>> |
getTuples()
Returns all currently read tuples.
|
void |
readFile()
Reads the given file and creates an internal list of read tuples.
|
void |
restart()
Sets internal tuple pointer to start, so that getTuple() returns all
tuples from beginning.
|
void |
setEncoding(String encoding)
Sets the encoding in which data shall be stored.
|
void |
setFile(File inFile)
Sets the file from which the tuples shall come, so called datasource.
|
void |
setSeperator(String seperator)
Sets the seperator with which the data will be departed on stream.
|
Integer |
size()
Returns the number of tuples contained in this tuple reader.
|
void setFile(File inFile)
inFile - - datasourceFile getFile()
void setSeperator(String seperator)
seperator - with which the data will be departed on streamString getSeperator()
void setEncoding(String encoding)
encoding - in which data shall be storedString getEncoding()
Collection<Collection<String>> getTuples()
Collection<String> getTuple() throws IOException
IOExceptionInteger getNumOfTuples()
Collection<String> getTuple(Integer index) throws IOException
index - position of tuple to returnIOExceptionvoid restart()
Integer size()
Integer characterSize()
Integer characterSize(Integer fieldIndex)
fieldIndex of this tuple reader.fieldIndex - the index of the fieldvoid readFile()
throws IOException
IOExceptionCopyright © 2010–2015 Humboldt-Universität zu Berlin, INRIA. All rights reserved.