Package com.epimorphics.converters
Interface RawDataSource
-
- All Known Implementing Classes:
CSVDataSource
public interface RawDataSource extends Iterable<Map<String,Object>>, Iterator<Map<String,Object>>
Data stream to be converted by some DataConverter. Current abstraction is of a series of records each of which has a set of named fields. The field values are unconstrained and in particular may include structured values reported as Maps. Simple field values will be reported boxed as Value instances. Experimental - only suited to tabluar structure data.- Author:
- Dave Reynolds
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>getFieldNames()Return the set of top level field names in each recordbooleanhasNext()Return true if more record values are available.Iterator<Map<String,Object>>iterator()Return itself as an iteratorMap<String,Object>next()Return the next record value.longsize()Return the total number of rows in the source or -1 if this information is not available-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Field Detail
-
ROW
static final String ROW
variable name under which the row of data will be bound in the environment- See Also:
- Constant Field Values
-
INDEX
static final String INDEX
variable name under which the index of the row will be bound in the environment- See Also:
- Constant Field Values
-
-
Method Detail
-
hasNext
boolean hasNext()
Return true if more record values are available.
-
size
long size()
Return the total number of rows in the source or -1 if this information is not available
-
-