class FieldInfo
extends java.lang.Object
constructor
for valid field specifier
forms. This is a helper class for buffer copy and compare operations performed by RecordBuffer
.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
bufferName
Buffer name (optional)
|
private int |
extentIndex
Zero-based extent field index (-1 if not an extent field)
|
private java.lang.String |
fieldName
Field name (required)
|
private java.lang.String |
fullSpec
Full spec
|
private static java.lang.String |
VALID_CHARS
Valid, non-alphanumeric characters for a field specifier (beside '.', '[', and ']')
|
Constructor and Description |
---|
FieldInfo(java.lang.String fieldSpec)
Constructor which breaks a legacy field specification into its constituent parts.
|
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.String |
getBufferName()
Get lower case buffer name (if any).
|
(package private) int |
getExtentIndex()
Get extent index, if any.
|
(package private) java.lang.String |
getFieldName()
Get lower case field name.
|
(package private) java.lang.String |
getFullSpec()
Get the lower case full spec.
|
private static java.lang.String VALID_CHARS
private final java.lang.String fullSpec
private java.lang.String bufferName
private java.lang.String fieldName
private int extentIndex
FieldInfo(java.lang.String fieldSpec)
fieldSpec
- A legacy field specifier. This can take the following forms:
buffer.field[extent]
buffer.field
field[extent]
field
ErrorConditionException
- if fieldSpec
includes an extent index specifier that is invalid (and
we are not in silent error mode).java.lang.IllegalArgumentException
- if fieldSpec
is otherwise malformed, or we have the extent index
error in silent error mode (which, btw, should not be a valid state).java.lang.String getFullSpec()
java.lang.String getBufferName()
null
).java.lang.String getFieldName()
int getExtentIndex()