public abstract class ContextSnapshot<T extends Context> extends ContextWrapper<T>
Context which retains copies of variable attributes of a given Context to
store the state of the parsing process at a given point in time. All runtime operations such as ContextWrapper.stop()
will still work and affect the current parsing process.| Modifier and Type | Field and Description |
|---|---|
private int |
currentColumn |
private long |
currentRecord |
context| Constructor and Description |
|---|
ContextSnapshot(T context)
Creates a snapshot of a given
Context |
| Modifier and Type | Method and Description |
|---|---|
int |
currentColumn()
Returns the column index of the record being processed.
|
long |
currentRecord()
Returns the index of the last valid record parsed from the input
|
columnsReordered, errorContentLength, extractedFieldIndexes, headers, indexOf, indexOf, isStopped, recordMetaData, selectedHeaders, stop, toRecordprivate final int currentColumn
private final long currentRecord
public int currentColumn()
ContextcurrentColumn in interface ContextcurrentColumn in class ContextWrapper<T extends Context>public long currentRecord()
ContextcurrentRecord in interface ContextcurrentRecord in class ContextWrapper<T extends Context>