Context
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.context
Constructor | Description |
---|---|
ContextSnapshot(T context) |
Creates a snapshot of a given
Context |
Modifier and Type | Method | 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, selectedHeaders, stop
public int currentColumn()
Context
currentColumn
in interface Context
currentColumn
in class ContextWrapper<T extends Context>
public long currentRecord()
Context
currentRecord
in interface Context
currentRecord
in class ContextWrapper<T extends Context>