Package com.redwood.agent.api.rtx
Interface RTXProducer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
close()
RTXMetadata
getMetadata()
int
getRowNumber()
default RTXReader.StrictMode
getStrictMode()
boolean
hasNext()
Iterator<RTXRow>
iterator()
Iterator<RTXRow>
iterator(String... cols)
Return an iterator with a subset of columns.RTXRow
next()
Iterable<RTXRow>
rows()
Return anIterable
for rows from the current position on, this can only be used to retrieve a single iterator.Iterable<RTXRow>
rows(String... cols)
default void
setStrictMode(RTXReader.StrictMode strictMode)
Sets theRTXReader.StrictMode
, that is, when this RTXProducer does support strictMode.default boolean
supportsStrictMode(RTXReader.StrictMode strictMode)
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
close
void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getMetadata
RTXMetadata getMetadata()
- Returns:
- the metadata of the data, describing the column definitions and sources.
-
getRowNumber
int getRowNumber()
-
getStrictMode
default RTXReader.StrictMode getStrictMode()
-
hasNext
boolean hasNext() throws RTXReaderException
- Returns:
- true, when there is a next row, false otherwise
- Throws:
RTXReaderException
-
iterator
Iterator<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.
-
next
RTXRow next() throws RTXReaderException
- Returns:
- the next row.
- Throws:
RTXReaderException
RTXMetadataRuntimeException
RTXColumnRuntimeException
NoSuchElementException
- when no elements are available (@{link #hasNext} is then false).
-
rows
Iterable<RTXRow> rows()
Return anIterable
for rows from the current position on, this can only be used to retrieve a single iterator.- Returns:
- an
Iterable
.
-
rows
Iterable<RTXRow> rows(String... cols)
Return anIterable
for 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
Iterable
with a subset of columns.
-
setStrictMode
default void setStrictMode(RTXReader.StrictMode strictMode)
Sets theRTXReader.StrictMode
, that is, when this RTXProducer does support strictMode.- Parameters:
strictMode
- the new mode
-
supportsStrictMode
default boolean supportsStrictMode(RTXReader.StrictMode strictMode)
-
-