public class FlowFileEnumerator extends Object implements org.apache.calcite.linq4j.Enumerator<Object>
Modifier and Type | Field and Description |
---|---|
private Object |
currentRow |
private int[] |
fields |
private FlowFile |
flowFile |
private ComponentLog |
logger |
private InputStream |
rawIn |
private RecordReader |
recordParser |
private RecordReaderFactory |
recordParserFactory |
private int |
recordsRead |
private ProcessSession |
session |
Constructor and Description |
---|
FlowFileEnumerator(ProcessSession session,
FlowFile flowFile,
ComponentLog logger,
RecordReaderFactory parserFactory,
int[] fields) |
Modifier and Type | Method and Description |
---|---|
private Object |
cast(Object o) |
void |
close() |
Object |
current() |
private Object |
filterColumns(Record record) |
protected int |
getRecordsRead() |
boolean |
moveNext() |
protected void |
onFinish() |
void |
reset() |
private final ProcessSession session
private final FlowFile flowFile
private final ComponentLog logger
private final RecordReaderFactory recordParserFactory
private final int[] fields
private InputStream rawIn
private Object currentRow
private RecordReader recordParser
private int recordsRead
public FlowFileEnumerator(ProcessSession session, FlowFile flowFile, ComponentLog logger, RecordReaderFactory parserFactory, int[] fields)
public Object current()
current
in interface org.apache.calcite.linq4j.Enumerator<Object>
public boolean moveNext()
moveNext
in interface org.apache.calcite.linq4j.Enumerator<Object>
protected int getRecordsRead()
protected void onFinish()
public void reset()
reset
in interface org.apache.calcite.linq4j.Enumerator<Object>
public void close()
close
in interface AutoCloseable
close
in interface org.apache.calcite.linq4j.Enumerator<Object>
Copyright © 2020 Apache NiFi Project. All rights reserved.