public abstract class TsIterator extends java.lang.Object implements java.util.Iterator<TsEntry>, ProcessingChainNode
It contains meta data with schema and processing chain for information purposes.
| Modifier and Type | Field and Description |
|---|---|
protected TsSchema |
schema
Meta data as schema.
|
| Constructor and Description |
|---|
TsIterator(TsSchema schema)
Create iterator with schema.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getNames()
Get data schema names (column names).
|
TsSchema |
getSchema()
Get schema (meta data).
|
static boolean |
isLive(java.util.Iterator<?> it)
Check if iterator contains elements.
|
static boolean |
isNotLive(java.util.Iterator<?> it)
Check if iterator does not contain elements.
|
static TsSchema[] |
toSchemas(TsIterator[] input_iterators)
Get array of schemas from array of iterators.
|
java.lang.String |
toString()
Get Text of title, schema names and processing chain.
|
TimeSeries |
toTimeSeries()
Collect all remaining elements into TimeSeries Object.
|
TimestampSeries |
toTimestampSeries(java.lang.String name)
Collect all remaining elements into TimestampSeries Object.
|
void |
writeConsole()
Write all remaining elements to console.
|
void |
writeConsole(int n)
Write (at most) next n elements to console.
|
void |
writeCSV(java.lang.String filename)
Write all remaining elements to CSV-file.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProcessingChain, getProcessingTitlecreateUnknown, ofcreateUnknownprotected final TsSchema schema
public TsIterator(TsSchema schema)
schema - public TsSchema getSchema()
public java.lang.String[] getNames()
public java.lang.String toString()
toString in class java.lang.Objectpublic void writeCSV(java.lang.String filename)
filename - public void writeConsole()
filename - public void writeConsole(int n)
filename - public TimeSeries toTimeSeries()
filename - public TimestampSeries toTimestampSeries(java.lang.String name)
filename - public static TsSchema[] toSchemas(TsIterator[] input_iterators)
input_iterators - public static boolean isLive(java.util.Iterator<?> it)
it - (nullable)public static boolean isNotLive(java.util.Iterator<?> it)
it - (nullable)