Package com.redwood.scheduler.api.rtx
Interface RTXProducer
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidclose()RTXMetadatagetMetadata()intgetRowNumber()default RTXReader.StrictModegetStrictMode()booleanhasNext()Iterator<RTXRow>iterator()Iterator<RTXRow>iterator(String... cols)Return an iterator with a subset of columns.RTXRownext()Iterable<RTXRow>rows()Return anIterablefor rows from the current position on, this can only be used to retrieve a single iterator.Iterable<RTXRow>rows(String... cols)default voidsetStrictMode(RTXReader.StrictMode strictMode)Sets theRTXReader.StrictMode, that is, when this RTXProducer does support strictMode.default booleansupportsStrictMode(RTXReader.StrictMode strictMode)- 
Methods inherited from interface java.lang.IterableforEach, spliterator
 
- 
 
- 
- 
- 
Method Detail- 
closevoid close() - Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
 
 - 
getMetadataRTXMetadata getMetadata() - Returns:
- the metadata of the data, describing the column definitions and sources.
 
 - 
getRowNumberint getRowNumber() 
 - 
getStrictModedefault RTXReader.StrictMode getStrictMode() 
 - 
hasNextboolean hasNext() throws RTXReaderException- Returns:
- true, when there is a next row, false otherwise
- Throws:
- RTXReaderException
 
 - 
iteratorIterator<RTXRow> iterator(String... cols) Return an iterator with a subset of columns.- Parameters:
- cols- a list of columns
- Returns:
- an iterator with a subset of columns.
 
 - 
nextRTXRow next() throws RTXReaderException - Returns:
- the next row.
- Throws:
- RTXReaderException
- RTXMetadataRuntimeException
- RTXColumnRuntimeException
- NoSuchElementException- when no elements are available (@{link #hasNext} is then false).
 
 - 
rowsIterable<RTXRow> rows() Return anIterablefor rows from the current position on, this can only be used to retrieve a single iterator.- Returns:
- an Iterable.
 
 - 
rowsIterable<RTXRow> rows(String... cols) Return anIterablefor rows from the current position on, with a subset of columns, this can only be used to retrieve a single iterator.- Parameters:
- cols- a list of columns
- Returns:
- an Iterablewith a subset of columns.
 
 - 
setStrictModedefault void setStrictMode(RTXReader.StrictMode strictMode) Sets theRTXReader.StrictMode, that is, when this RTXProducer does support strictMode.- Parameters:
- strictMode- the new mode
 
 - 
supportsStrictModedefault boolean supportsStrictMode(RTXReader.StrictMode strictMode) 
 
- 
 
-