Modifier and Type | Field and Description |
---|---|
private NormalizedString |
FieldMapping.fieldName |
Modifier and Type | Method and Description |
---|---|
NormalizedString |
FieldMapping.getFieldName()
Returns the column name against which this field is mapped.
|
Modifier and Type | Method and Description |
---|---|
private void |
FieldMapping.determineFieldMapping(HeaderTransformer transformer,
NormalizedString[] headers) |
void |
FieldMapping.setFieldName(NormalizedString fieldName)
Defines the column name against which this field is mapped, overriding any current name derived from
annotations or from the attribute name itself.
|
Constructor and Description |
---|
FieldMapping(java.lang.Class<?> beanClass,
java.lang.reflect.AnnotatedElement target,
PropertyWrapper property,
HeaderTransformer transformer,
NormalizedString[] headers)
Creates the mapping and identifies how it is mapped (by name or by index)
|
Modifier and Type | Field and Description |
---|---|
private NormalizedString[] |
AbstractWriter.dummyHeaderRow |
static NormalizedString[] |
ArgumentUtils.EMPTY_NORMALIZED_STRING_ARRAY |
private NormalizedString[] |
ParserOutput.headers |
protected NormalizedString[] |
AbstractWriter.headers |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<NormalizedString,java.lang.Integer> |
ColumnMap.columnMap |
private java.util.Map<NormalizedString[],java.util.Map<NormalizedString,java.lang.Integer>> |
AbstractWriter.headerIndexes |
private static StringCache<NormalizedString> |
NormalizedString.stringCache |
Modifier and Type | Method and Description |
---|---|
private static <T extends java.util.Collection<NormalizedString>> |
NormalizedString.getCollection(T out,
java.util.Collection<java.lang.String> args) |
private static <T extends java.util.Collection<NormalizedString>> |
NormalizedString.getCollection(T out,
java.lang.String... args) |
Modifier and Type | Method and Description |
---|---|
NormalizedString[] |
ParserOutput.getHeaders()
Returns the sequence of values that represent the headers each field in the input.
|
private NormalizedString[] |
AbstractWriter.getRowProcessorHeaders() |
static NormalizedString |
NormalizedString.literalValueOf(java.lang.String string)
Creates a literal
NormalizedString , meaning it will only match with
other String or NormalizedString if they have the exact same content
including character case and surrounding whitespaces. |
static NormalizedString[] |
NormalizedString.toArray(java.util.Collection<java.lang.String> args)
Converts a collection of plain strings into an array of
NormalizedString |
static NormalizedString[] |
NormalizedString.toArray(java.lang.String... args)
Converts multiple plain strings into an array of
NormalizedString . |
static NormalizedString[] |
NormalizedString.toIdentifierGroupArray(NormalizedString[] strings)
Analyzes a group of NormalizedString to identify any instances whose normalized content will generate
clashes.
|
static NormalizedString[] |
NormalizedString.toIdentifierGroupArray(java.lang.String[] strings)
Analyzes a group of String to identify any instances whose normalized content will generate
clashes.
|
NormalizedString |
NormalizedString.toLiteral()
Returns the literal representation of this
NormalizedString , meaning it will only match with
other String or NormalizedString if they have the exact same content
including character case and surrounding whitespaces. |
static NormalizedString[] |
NormalizedString.toUniqueArray(java.lang.String... args)
Converts multiple plain strings into an array of
NormalizedString , ensuring
no duplicate NormalizedString elements exist, even if their original String s
are different. |
static NormalizedString |
NormalizedString.valueOf(java.lang.Object o)
Creates a non-literal
NormalizedString , meaning it will match with
other String or NormalizedString regardless of different
including character case and surrounding whitespaces. |
static NormalizedString |
NormalizedString.valueOf(java.lang.String string)
Creates a non-literal
NormalizedString , meaning it will match with
other String or NormalizedString regardless of different
including character case and surrounding whitespaces. |
Modifier and Type | Method and Description |
---|---|
static StringCache<NormalizedString> |
NormalizedString.getCache()
Returns the internal string cache to allow users to tweak its size limit or clear it when appropriate
|
static java.util.ArrayList<NormalizedString> |
NormalizedString.toArrayList(java.util.Collection<java.lang.String> args)
Converts multiple plain strings into an
ArrayList of NormalizedString . |
static java.util.ArrayList<NormalizedString> |
NormalizedString.toArrayList(java.lang.String... args)
Converts multiple plain strings into an
ArrayList of NormalizedString . |
static java.util.HashSet<NormalizedString> |
NormalizedString.toHashSet(java.util.Collection<java.lang.String> args)
Converts multiple plain strings into a
HashSet of NormalizedString . |
static java.util.HashSet<NormalizedString> |
NormalizedString.toHashSet(java.lang.String... args)
Converts multiple plain strings into a
HashSet of NormalizedString . |
static java.util.LinkedHashSet<NormalizedString> |
NormalizedString.toLinkedHashSet(java.util.Collection<java.lang.String> args)
Converts multiple plain strings into a
LinkedHashSet of NormalizedString . |
static java.util.LinkedHashSet<NormalizedString> |
NormalizedString.toLinkedHashSet(java.lang.String... args)
Converts multiple plain strings into a
LinkedHashSet of NormalizedString . |
static java.util.TreeSet<NormalizedString> |
NormalizedString.toTreeSet(java.util.Collection<java.lang.String> args)
Converts multiple plain strings into a
TreeSet of NormalizedString . |
static java.util.TreeSet<NormalizedString> |
NormalizedString.toTreeSet(java.lang.String... args)
Converts multiple plain strings into a
TreeSet of NormalizedString . |
Modifier and Type | Method and Description |
---|---|
private void |
AbstractWriter.addValue(NormalizedString[] headersInContext,
NormalizedString headerName,
boolean ignoreOnMismatch,
java.lang.Object value) |
private void |
AbstractWriter.addValue(NormalizedString[] headersInContext,
NormalizedString headerName,
boolean ignoreOnMismatch,
java.lang.Object value) |
int |
NormalizedString.compareTo(NormalizedString o) |
private static <T extends java.util.Collection<java.lang.String>> |
NormalizedString.getCollection(T out,
NormalizedString... args) |
private int |
AbstractWriter.getFieldIndex(NormalizedString[] headersInContext,
NormalizedString headerName,
boolean ignoreOnMismatch)
Calculates the index of a header name in relation to the original
AbstractWriter.headers array defined in this writer |
private int |
AbstractWriter.getFieldIndex(NormalizedString[] headersInContext,
NormalizedString headerName,
boolean ignoreOnMismatch)
Calculates the index of a header name in relation to the original
AbstractWriter.headers array defined in this writer |
static boolean |
NormalizedString.identifyLiterals(NormalizedString[] strings)
Analyzes a group of NormalizedString to identify any instances whose normalized content will generate
clashes.
|
static boolean |
NormalizedString.identifyLiterals(NormalizedString[] strings,
boolean lowercaseIdentifiers,
boolean uppercaseIdentifiers)
Analyzes a group of NormalizedString to identify any instances whose normalized content will generate
clashes.
|
static int |
ArgumentUtils.indexOf(NormalizedString[] array,
NormalizedString element,
FieldSelector fieldSelector)
Returns the index of a header, when headers are selected using a
FieldSelector . |
static int |
ArgumentUtils.indexOf(NormalizedString[] array,
NormalizedString element,
FieldSelector fieldSelector)
Returns the index of a header, when headers are selected using a
FieldSelector . |
private void |
ParserOutput.initializeColumnsToExtract(NormalizedString[] values)
Initializes the sequence of selected fields, if any.
|
boolean |
DefaultConversionProcessor.reverseConversions(boolean executeInReverseOrder,
java.lang.Object[] row,
NormalizedString[] headers,
int[] indexesToWrite)
Executes the sequences of reverse conversions defined using
DefaultConversionProcessor.convertFields(Conversion...) , DefaultConversionProcessor.convertIndexes(Conversion...) and DefaultConversionProcessor.convertAll(Conversion...) , for every field in the given row. |
static java.lang.String[] |
NormalizedString.toArray(NormalizedString... args)
Converts multiple normalized strings into an array of
String . |
static java.util.ArrayList<java.lang.String> |
NormalizedString.toArrayListOfStrings(NormalizedString... args)
Converts multiple normalized strings into a
HashSet of String . |
static java.util.HashSet<java.lang.String> |
NormalizedString.toHashSetOfStrings(NormalizedString... args)
Converts multiple normalized strings into a
HashSet of String . |
static NormalizedString[] |
NormalizedString.toIdentifierGroupArray(NormalizedString[] strings)
Analyzes a group of NormalizedString to identify any instances whose normalized content will generate
clashes.
|
static java.util.LinkedHashSet<java.lang.String> |
NormalizedString.toLinkedHashSetOfStrings(NormalizedString... args)
Converts multiple normalized strings into a
LinkedHashSet of String . |
static java.util.TreeSet<java.lang.String> |
NormalizedString.toTreeSetOfStrings(NormalizedString... args)
Converts multiple normalized strings into a
HashSet of String . |
static java.lang.String |
NormalizedString.valueOf(NormalizedString string)
Converts a
NormalizedString back to its original String representation |
Modifier and Type | Method and Description |
---|---|
private static <T extends java.util.Collection<java.lang.String>> |
NormalizedString.getStringCollection(T out,
java.util.Collection<NormalizedString> args) |
static java.util.ArrayList<java.lang.String> |
NormalizedString.toArrayListOfStrings(java.util.Collection<NormalizedString> args)
Converts multiple normalized strings into a
HashSet of String . |
static java.util.HashSet<java.lang.String> |
NormalizedString.toHashSetOfStrings(java.util.Collection<NormalizedString> args)
Converts multiple normalized strings into a
HashSet of String . |
static java.util.LinkedHashSet<java.lang.String> |
NormalizedString.toLinkedHashSetOfStrings(java.util.Collection<NormalizedString> args)
Converts multiple normalized strings into a
LinkedHashSet of String . |
static java.lang.String[] |
NormalizedString.toStringArray(java.util.Collection<NormalizedString> args)
Converts a collection of normalized strings into an array of
String |
static java.util.TreeSet<java.lang.String> |
NormalizedString.toTreeSetOfStrings(java.util.Collection<NormalizedString> args)
Converts multiple normalized strings into a
HashSet of String . |
Modifier and Type | Method and Description |
---|---|
int[] |
FieldSelector.getFieldIndexes(NormalizedString[] headers)
Returns the indexes of any selected fields that are part of a sequence of headers.
|
int[] |
FieldNameSelector.getFieldIndexes(NormalizedString[] headers) |
int[] |
FieldIndexSelector.getFieldIndexes(NormalizedString[] columns) |
int[] |
FieldEnumSelector.getFieldIndexes(NormalizedString[] headers) |
int[] |
ExcludeFieldNameSelector.getFieldIndexes(NormalizedString[] headers)
Returns the indexes of any that are part of a sequence of headers but not part of the selection.
|
int[] |
ExcludeFieldIndexSelector.getFieldIndexes(NormalizedString[] columns)
Returns the indexes of any that are part of a sequence of headers but not part of the selection.
|
int[] |
ExcludeFieldEnumSelector.getFieldIndexes(NormalizedString[] headers)
Returns the indexes of any that are part of a sequence of headers but not part of the selection.
|
int[] |
AllIndexesSelector.getFieldIndexes(NormalizedString[] headers) |
Modifier and Type | Field and Description |
---|---|
(package private) NormalizedString[] |
OutputValueSwitch.Switch.headers |
private NormalizedString[] |
RowWriterProcessorSwitch.normalizedHeaders |
private NormalizedString[] |
ObjectRowWriterProcessor.normalizedHeaders |
private NormalizedString[] |
BeanWriterProcessor.normalizedHeaders |
Modifier and Type | Method and Description |
---|---|
protected NormalizedString[] |
RowWriterProcessorSwitch.getHeaders()
Returns the headers in use by the current row writer processor implementation, which can vary among row writer processors.
|
protected NormalizedString[] |
OutputValueSwitch.getHeaders() |
abstract NormalizedString[] |
RowWriterProcessorSwitch.getHeaders(java.util.Map headerMapping,
java.util.Map mapInput)
Returns the sequence of headers to use for processing an input record represented by a map
A map of headers can be optionally provided to assign a name to the keys of the input map.
|
NormalizedString[] |
OutputValueSwitch.getHeaders(java.util.Map headerMapping,
java.util.Map mapInput) |
abstract NormalizedString[] |
RowWriterProcessorSwitch.getHeaders(java.lang.Object input)
Returns the sequence of headers to use for processing an input record.
|
NormalizedString[] |
OutputValueSwitch.getHeaders(java.lang.Object input) |
private NormalizedString[] |
OutputValueSwitch.getHeadersFromSwitch(java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
ObjectRowWriterProcessor.write(java.lang.Object[] input,
NormalizedString[] headers,
int[] indexesToWrite)
Executes the sequences of conversions defined using
DefaultConversionProcessor.convertFields(Conversion...) , DefaultConversionProcessor.convertIndexes(Conversion...) and DefaultConversionProcessor.convertAll(Conversion...) , for every field in the given row. |
java.lang.Object[] |
RowWriterProcessorSwitch.write(java.lang.Object input,
NormalizedString[] headers,
int[] indicesToWrite) |
java.lang.Object[] |
RowWriterProcessor.write(T input,
NormalizedString[] headers,
int[] indexesToWrite)
Converts the given input into an Object array that is suitable for writing.
|
java.lang.Object[] |
BeanWriterProcessor.write(T input,
NormalizedString[] headers,
int[] indexesToWrite)
Converts the java bean instance into a sequence of values for writing.
|
Modifier and Type | Field and Description |
---|---|
private NormalizedString |
AbstractInputValueSwitch.columnName |
private NormalizedString[] |
BeanConversionProcessor.syntheticHeaders |
Modifier and Type | Method and Description |
---|---|
protected void |
BeanConversionProcessor.initialize(NormalizedString[] headers)
Identifies and extracts fields annotated with the
Parsed annotation |
private void |
BeanConversionProcessor.mapFieldIndexes(Context context,
java.lang.Object[] row,
NormalizedString[] headers,
int[] indexes,
boolean columnsReordered)
Identifies which fields are associated with which columns in a row.
|
private void |
BeanConversionProcessor.mapFieldsToValues(T instance,
java.lang.Object[] row,
NormalizedString[] headers,
int[] indexes,
boolean columnsReordered)
Iterates over all fields in the java bean instance and extracts its values.
|
(package private) void |
BeanConversionProcessor.processField(java.lang.reflect.AnnotatedElement element,
java.lang.String targetName,
PropertyWrapper propertyDescriptor,
NormalizedString[] headers) |
private void |
BeanConversionProcessor.processNestedField(java.lang.Class nestedType,
java.lang.reflect.AnnotatedElement element,
java.lang.String targetName,
PropertyWrapper propertyDescriptor,
NormalizedString[] headers,
Nested nested) |
java.lang.Object[] |
BeanConversionProcessor.reverseConversions(T bean,
NormalizedString[] headers,
int[] indexesToWrite)
Converts a java bean instance into a sequence of values for writing.
|
Modifier and Type | Method and Description |
---|---|
private NormalizedString[] |
RecordMetaDataImpl.getValidatedHeaders() |
Modifier and Type | Field and Description |
---|---|
(package private) NormalizedString[] |
Lookup.fieldNames |
Modifier and Type | Field and Description |
---|---|
private java.util.List<NormalizedString> |
FixedWidthFields.fieldNames |
Modifier and Type | Method and Description |
---|---|
NormalizedString[] |
FixedWidthFields.getFieldNames()
Returns the name of each field in a fixed-width record, if any
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
Lookup.initializeLookupContext(ParsingContext context,
NormalizedString[] headersToUse) |