public interface FlatFieldFormat extends FieldFormat
FieldFormat
for flat stream formats
(i.e. CSV, delimited and fixed length).Modifier and Type | Method and Description |
---|---|
int |
getPosition()
Returns the field position.
|
extract, getSize, insertField, insertValue, isLazy, isNillable
int getPosition()
In a delimited/CSV stream format, the position is the index of the field in the record starting at 0. For example, the position of field2 in the following comma delimited record is 1:
field1,field2,field3
In a fixed length stream format, the position is the index of the first character of the field in the record, also starting at 0. For example, the position of field2 in the following record is 6:
field1field2field3