public final class FixedWidthConfiguration extends BaseObject implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_COLUMN_NAME_LINE |
static int |
NO_COLUMN_NAME_LINE |
Constructor and Description |
---|
FixedWidthConfiguration(int fixedValueWidth) |
FixedWidthConfiguration(int[] valueWidth) |
FixedWidthConfiguration(int columnNameLineNumber,
String encoding,
int fixedValueWidth) |
FixedWidthConfiguration(int columnNameLineNumber,
String encoding,
int[] valueWidths,
boolean failOnInconsistentLineWidth) |
FixedWidthConfiguration(int columnNameLineNumber,
String encoding,
int fixedValueWidth,
boolean failOnInconsistentLineWidth) |
Modifier and Type | Method and Description |
---|---|
protected void |
decorateIdentity(List<Object> identifiers)
Subclasses should implement this method and add all fields to the list
that are to be included in equals(...) and hashCode() evaluation
|
int |
getColumnNameLineNumber()
The line number (1 based) from which to get the names of the columns.
|
String |
getEncoding()
Gets the file encoding to use for reading the file.
|
int |
getFixedValueWidth()
Gets the width of each value within the fixed width value file.
|
int |
getValueWidth(int columnIndex) |
int[] |
getValueWidths() |
boolean |
isConstantValueWidth() |
boolean |
isFailOnInconsistentLineWidth()
Determines if the
DataSet.next() should throw an exception in
case of inconsistent line width in the fixed width value file. |
String |
toString() |
classEquals, equals, hashCode
public static final int NO_COLUMN_NAME_LINE
public static final int DEFAULT_COLUMN_NAME_LINE
public FixedWidthConfiguration(int fixedValueWidth)
public FixedWidthConfiguration(int[] valueWidth)
public FixedWidthConfiguration(int columnNameLineNumber, String encoding, int fixedValueWidth)
public FixedWidthConfiguration(int columnNameLineNumber, String encoding, int fixedValueWidth, boolean failOnInconsistentLineWidth)
public FixedWidthConfiguration(int columnNameLineNumber, String encoding, int[] valueWidths, boolean failOnInconsistentLineWidth)
public int getColumnNameLineNumber()
public String getEncoding()
public int getFixedValueWidth()
public int[] getValueWidths()
public boolean isFailOnInconsistentLineWidth()
DataSet.next()
should throw an exception in
case of inconsistent line width in the fixed width value file.protected void decorateIdentity(List<Object> identifiers)
BaseObject
decorateIdentity
in class BaseObject
public String toString()
toString
in class BaseObject
public boolean isConstantValueWidth()
public int getValueWidth(int columnIndex)
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.