public class TextConnectorParams extends FileConnectorParams
DataSetConnectorParams
used by TextConnector.TextConnector
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
ALWAYS_QUOTE_PROP
ALWAYS QUOTE property.
|
static String |
DATA_COLS_SAME_AS_FIELDS_PROP
The DATA_COLS_SAME_AS_FIELDS property.
|
static String |
DELIMETER_PROP
The DELIMETER property.
|
static String |
END_ROW_PROP
The END ROW property.
|
static String |
ESCAPE_QUOTE_PROP
ESCAPE QUOTE property.
|
static String |
EXTENSION_PROP
The EXTENSION property.
|
static String |
FIELDS_PROP
The FIELDS property.
|
static String |
FILTER_TRANSFORMATION
The Constant FILTER_TRANSFORMATION.
|
static String |
FIRST_ROW_DATA_PROP
The FIRST ROW HAS DATA property.
|
static String |
HAS_EXTRA_DATA_COLS_PROP
File has extra data columns *.
|
static String |
HEADER_TRANSFORMATION
The Constant HEADER_TRANSFORMATION.
|
static String |
IGNORE_BOM_PROP
IGNORE_BOM property.
|
static String |
LINESEPARATOR_PROP
The LINE SEPARATOR property.
|
static String |
MAX_ROWS_IN_FILE_PROP
MAX NUMBER OF ROWS IN THE FILE property.
|
static String |
METADATA_PROP
The METADATA property.
|
static String |
MULTI_LINE_RECORD_PROP
MULTI LINE RECORD property.
|
static String |
NONAME_COLUMN_NAME_PROP
The NONAME_COLUMN_NAME property.
|
static String |
PREFIX
The PREFIX.
|
static String |
PREPROCESSOR_TRANSFORMATION
The Constant PREPROCESSOR_TRANSFORMATION.
|
static String |
REMOVE_EOL_PROP
REMOVE EOL CHARACTER WHEN CREATING FILE property.
|
static String |
REORDER_PROP
REORDER property.
|
static String |
SKIP_BAD_PROP
SKIP "BAD" ROW WHEN READING DATA property.
|
static String |
SKIP_DATASET_COLUMN_PROP
IGNORE FIEDLS WITH DATASETS property.
|
static String |
SKIP_DATASET_ROW_PROP
IGNORE ROWS WITH DATASETS property.
|
static String |
SKIP_EMPTY_PROP
SKIP EMPTY ROWS WHEN READING DATA property.
|
static String |
SKIP_FEWER_PROP
SKIP ROW WITH FEWER COLUMNS WHEN READING DATA property.
|
static String |
SKIP_FIRST_PROP
SKIP FIRST ROW WHEN READING DATA property.
|
static String |
SKIP_MORE_PROP
SKIP ROW WITH MORE COLUMNS WHEN READING DATA property.
|
static String |
START_ROW_PROP
The START ROW property.
|
static String |
STRIP_NOT_PRINTABLE_PROP
STRIP NOT PRINTABLE property.
|
static String |
SYSTEM_LINE_SEPARATOR
The Constant SYSTEM_LINE_SEPARATOR.
|
static String |
TEXT_ENCODING_PROP
The TEXT encoding property.
|
static String |
TRANSFORMATION_TYPE_PROP
Type of the transformation (filter or preprocessor) property.
|
static String |
UNIX_LINE_SEPARATOR
The Constant UNIX_LINE_SEPARATOR.
|
static String |
VALUE_FOR_NULL_PROP
The VALUE_FOR_NULL property.
|
static String |
WINDOWS_LINE_SEPARATOR
The Constant WINDOWS_LINE_SEPARATOR.
|
ADJUST_DATA_TYPE_PROP, ALL_STRINGS_PROP, BASE64_ENCODE_CLOB_PROP, BOOLEAN_AS_NUMBER_PROP, CONVERT_NULL_PROP, ENCODING_PROP, NAME_TO_SQL_NAME_PROP, NULL_IF_EMPTY_PROP, OVERRIDE_WILCARD_PROP, SPLIT_BY_PROP, SUFFIX_PROP, TEMPALTE_PROP
AUTO_COMMIT_PROP, FILE_NAME_PROP, MAX_ROWS_EXCEEDED_EXCEPTION, PASSWORD_PROP, PROPERTIES_PROP, TRANSPORT_PROP, USE_SELECTED_PROP, USER_ID_PROP
Constructor and Description |
---|
TextConnectorParams()
Instantiates a new TextConnectorParams.
|
TextConnectorParams(CacheProvider<String,Object> cacheProvider,
boolean silent,
int logStep)
Instantiates a new TextConnectorParams.
|
TextConnectorParams(CacheProvider<String,Object> cacheProvider,
boolean silent,
int logStep,
String delimiter,
boolean persistMetaData)
Instantiates a new TextConnectorParams.
|
Modifier and Type | Method and Description |
---|---|
DataSetConnectorParams |
copy()
Create a copy of this object.
|
AtomicInteger |
getBatchNumber()
Gets the batch number.
|
String |
getCharSeparator()
Gets the char separator.
|
AtomicInteger |
getCurrentBatchRow()
Gets the current batch row.
|
String |
getDelimiter()
Gets the delimiter.
|
int |
getEndRow()
Gets the end row.
|
String |
getExt()
Gets the file extension.
|
String |
getFields()
Gets the comma delimited string of field names.
|
String |
getFilter()
Gets the javascript filter.
|
int[] |
getLengthArray()
Gets the length array.
|
String |
getLineSeparator()
Gets the line separator.
|
int |
getMaxRowsInFile()
Gets the max number of rows in file created.
|
String |
getNonameColumnName()
Gets the noname column name.
|
int |
getNumberOfColumnsInFile() |
String |
getPropsHint()
Gets the hint displayed next to the properties editor.
|
String |
getPropsWizardResource(Driver driver,
String connectionDriver)
Gets the name of the xml file used to create a wizard for editing
properties.
|
Character |
getQuotePrefix()
Gets the quote prefix.
|
String |
getRealDelimiter()
Gets the real delimiter.
|
int |
getStartRow()
Gets the start row.
|
String |
getTitleRow()
Gets the title row.
|
String |
getTransformationType()
Gets the transformation type.
|
String |
getValueForNull()
Gets the value for null.
|
Writer |
getWriter()
Gets the writer.
|
boolean |
hasExtraDataCols()
Checks if file has extra data columns.
|
void |
init(Alias alis)
Initializes itself using given alias.
|
void |
init(Map<String,String> props)
Initializes itself using given properties.
|
void |
init(ObjectStorage storage)
Initializes itself using given object storage.
|
boolean |
isAlwaysQuote()
Checks if the property always quote is set.
|
boolean |
isEscapeQuote()
It true escape quotes in CSV.
|
boolean |
isFirstRowData()
Checks if "first row has data" flag was set.
|
boolean |
isIgnoreBom()
Checks if parser should ignore byte order mark (bom).
|
boolean |
isMultiLineRecord()
Checks if "potentially multi line record" flag is set.
|
boolean |
isNumberOfDataColsSameAsFields()
Checks if the number of data columns is the same as fields.
|
boolean |
isPersistMetaData()
Checks if "is persist meta data" flag was set.
|
boolean |
isRemoveEol()
Check if connector needs to remove the EOL characters when creating the file.
|
boolean |
isReorder()
Checks if columns should reordered suing order of vars before creating the files.
|
boolean |
isSkipBad()
Checks if skip bad (not properly formatted) rows flag is enabled.
|
boolean |
isSkipDataSetField()
Checks if "skip column with datasets when writing data" flag was set.
|
boolean |
isSkipDataSetRow()
Checks if "skip rows with dataset column when writing data" flag was set.
|
boolean |
isSkipEmpty()
Checks if "skip empty rows when reading data" flag was set.
|
boolean |
isSkipFirst()
Checks if skip first row flag is enabled.
|
boolean |
isSkipWhenFewerColumns()
Checks if is skip when fewer columns.
|
boolean |
isSkipWhenMoreColumns()
Checks if is skip when more columns.
|
boolean |
isStripNotPrintable()
Checks if system should strip not printable chars when writing.
|
void |
setAlwaysQuote(boolean alwaysQuote)
Sets the always quote property.
|
void |
setCharSeparator(String value)
Sets the char separator.
|
void |
setCleanUpPersistOccurred(boolean value)
Sets the flag "clean up has occurred".
|
void |
setDelimiter(String value)
Sets the delimiter.
|
void |
setEndRow(int endRow)
Sets the end row.
|
void |
setEscapeQuote(boolean escapeQuote)
Sets the escape quote.
|
void |
setExt(String value)
Sets the file extension.
|
void |
setFields(String value)
Sets the fields.
|
void |
setFilter(String filter)
Sets the javascript filter.
|
void |
setFirstRowData(boolean value)
Sets the "first row hash data" flag.
|
void |
setHasExtraDataCols(boolean hasExtraDataCols)
Sets the value of the flag "file has extra data columns".
|
void |
setIgnoreBom(boolean ignoreBom)
Sets the ignore byte order mark (bom) property.
|
void |
setLengthArray(int[] value)
Sets the length array.
|
void |
setLineSeparator(String value)
Sets the line separator.
|
void |
setMaxRowsInFile(int maxRowsInFile)
Sets the max number of rows in file created.
|
void |
setMultiLineRecord(boolean multiLineRecord)
Sets the flag which controls if multi line recorrds exist in the document.
|
void |
setNonameColumnName(String nonameColumnName)
Sets the noname column name.
|
void |
setNumberOfColumnsInFile(int numberOfColumnsInFile) |
void |
setNumberOfDataColsSameAsFields(boolean numberOfDataColsSameAsFields)
Sets the value of the "number of data columns same as fields" flag.
|
void |
setPersistMetaData(boolean value)
Sets the "persist meta data" flag.
|
void |
setQuotePrefix(Character quotePrefix)
Sets the quote prefix.
|
void |
setRemoveEol(boolean removeEol)
Sets the "remove eol" property.
|
void |
setReorder(boolean reorder)
Sets the new value of the reorder flag.
|
void |
setSkipBad(boolean skipBad)
Sets the skip bad rows flag.
|
void |
setSkipDataSetField(boolean value)
Sets the "skip dataset column when writing data" flag.
|
void |
setSkipDataSetRow(boolean value)
Sets the "skip dataset row when writing data" flag.
|
void |
setSkipEmpty(boolean value)
Sets the "skip empty rows when reading data" flag.
|
void |
setSkipFirst(boolean skipFirst)
Sets the skip first row flag.
|
void |
setSkipWhenFewerColumns(boolean skipWhenFewerColumns)
Sets the skip when fewer columns.
|
void |
setSkipWhenMoreColumns(boolean skipWhenMoreColumns)
Sets the skip when more columns.
|
void |
setStartRow(int startRow)
Sets the start row.
|
void |
setStripNotPrintable(boolean stripNotPrintable)
Sets the strip not printable flag.
|
void |
setTitleRow(String titleRow)
Sets the title row.
|
void |
setTransformationType(String transformationType)
Sets the transformation type.
|
void |
setValueForNull(String valueForNull)
Sets the value for null.
|
void |
setWriter(Writer value)
Sets the writer.
|
alias2alias, deserializeToInputStream, getAlias, getCdata, getDateFormat, getDateTimeFormat, getEncoding, getFileName, getFileName, getFileNameIfFileSystem, getFolder, getInitStr, getOriginalAlias, getPassword, getProperties, getRealFileName, getSplitBy, getSuffix, getTemplate, getTemplateToUse, getTimeFormat, getTransport, getUserId, getWildcardUrl, isAdjustDataTypes, isAllStrings, isBooleanAsNumber, isConvertNameToSqlName, isConvertNull, isCurrentStreaming, isDateFormat, isDateTimeFormat, isDisableStreaming, isEncodeClob, isFileNameRequired, isForceExt, isNoOriginalFileName, isNullIfEmpty, isOverrideWildcrad, isParseDates, isTimeFormat, isTrimValue, needToEncode, selfDiscover, setAdjustDataTypes, setAllStrings, setBooleanAsNumber, setCdata, setConvertNameToSqlName, setConvertNull, setDateFormat, setDateTimeFormat, setDisableStreaming, setEncodeClob, setEncoding, setFieldDataType, setFileName, setFileNameRequired, setFolder, setForceExt, setNoOriginalFileName, setNullIfEmpty, setOverrideWildcrad, setParseDates, setPassword, setProperties, setRealFileName, setSplitBy, setSuffix, setTemplate, setTimeFormat, setTransport, setTrimValue, setUserId
getAddFieldValueCallback, getAddRecordCallback, getAfterCallback, getBeforeCallback, getCacheProvider, getCrudAction, getInputStream, getIoProcessor, getLogStep, getMaxRows, getOutputStream, getParams, getReadTracker, getTarget, getTransactionMonitor, hasAddRecordCallback, isCleanUpPersistOccured, isCloseInput, isCloseOutput, isEnabled, isIgnoreEmpty, isIgnoreNoRecords, isMaxRowsExceededException, isPostPersistOccured, isPrePersistOccured, isReadOnlyMetadata, isSilent, isStreaming, prepareForPopulate, setAddFieldValueCallback, setAddRecordCallback, setAfterCallback, setBeforeCallback, setCacheProvider, setCloseInput, setCloseOutput, setCrudAction, setEnabled, setHasAddRecordCallback, setIgnoreEmpty, setIgnoreNoRecords, setInputStream, setIoProcessor, setLogStep, setMaxRows, setOutputStream, setPostPersistOccured, setPrePersistOccured, setReadOnlyMetadata, setReadTracker, setSilent, setTarget, setTransactionMonitor, setUseSelectedDataSet, useSelectedDataSet
public static final String TEXT_ENCODING_PROP
public static final String UNIX_LINE_SEPARATOR
public static final String WINDOWS_LINE_SEPARATOR
public static final String SYSTEM_LINE_SEPARATOR
public static final String PREFIX
public static final String LINESEPARATOR_PROP
public static final String DELIMETER_PROP
public static final String FIELDS_PROP
public static final String METADATA_PROP
public static final String FIRST_ROW_DATA_PROP
public static final String SKIP_EMPTY_PROP
public static final String ALWAYS_QUOTE_PROP
public static final String ESCAPE_QUOTE_PROP
public static final String SKIP_FIRST_PROP
public static final String SKIP_BAD_PROP
public static final String SKIP_FEWER_PROP
public static final String SKIP_MORE_PROP
public static final String HAS_EXTRA_DATA_COLS_PROP
public static final String DATA_COLS_SAME_AS_FIELDS_PROP
public static final String SKIP_DATASET_ROW_PROP
public static final String SKIP_DATASET_COLUMN_PROP
public static final String MAX_ROWS_IN_FILE_PROP
public static final String TRANSFORMATION_TYPE_PROP
public static final String START_ROW_PROP
public static final String END_ROW_PROP
public static final String NONAME_COLUMN_NAME_PROP
public static final String MULTI_LINE_RECORD_PROP
public static final String IGNORE_BOM_PROP
public static final String STRIP_NOT_PRINTABLE_PROP
public static final String VALUE_FOR_NULL_PROP
public static final String EXTENSION_PROP
public static final String REMOVE_EOL_PROP
public static final String REORDER_PROP
public static final String FILTER_TRANSFORMATION
public static final String PREPROCESSOR_TRANSFORMATION
public static final String HEADER_TRANSFORMATION
public TextConnectorParams()
public TextConnectorParams(CacheProvider<String,Object> cacheProvider, boolean silent, int logStep)
cacheProvider
- the cache providersilent
- the "is silent" flaglogStep
- the log steppublic TextConnectorParams(CacheProvider<String,Object> cacheProvider, boolean silent, int logStep, String delimiter, boolean persistMetaData)
cacheProvider
- the cache providersilent
- the "is silent" flaglogStep
- the log stepdelimiter
- the delimiterpersistMetaData
- the "persist meta data" flagpublic DataSetConnectorParams copy()
DataSetConnectorParams
copy
in class DataSetConnectorParams
public AtomicInteger getBatchNumber()
public String getCharSeparator()
public AtomicInteger getCurrentBatchRow()
public String getDelimiter()
public String getExt()
public String getFields()
public int[] getLengthArray()
public String getLineSeparator()
public int getMaxRowsInFile()
public String getPropsHint()
DataSetConnectorParams
getPropsHint
in class DataSetConnectorParams
public String getPropsWizardResource(Driver driver, String connectionDriver)
DataSetConnectorParams
getPropsWizardResource
in class DataSetConnectorParams
driver
- the ETL driverconnectionDriver
- the connection driverpublic Character getQuotePrefix()
public String getRealDelimiter()
public String getTitleRow()
public Writer getWriter()
public void init(Alias alis)
DataSetConnectorParams
init
in class FileConnectorParams
alis
- the aliaspublic void init(Map<String,String> props)
DataSetConnectorParams
init
in class FileConnectorParams
props
- the propertiespublic void init(ObjectStorage storage)
DataSetConnectorParams
init
in class DataSetConnectorParams
storage
- the object storagepublic boolean isFirstRowData()
public boolean isPersistMetaData()
public boolean isSkipDataSetField()
public boolean isSkipDataSetRow()
public boolean isSkipEmpty()
public void setCharSeparator(String value)
value
- the new char separatorpublic void setCleanUpPersistOccurred(boolean value)
DataSetConnectorParams
setCleanUpPersistOccurred
in class DataSetConnectorParams
value
- the new value for the flag "clean up has occurred"public void setDelimiter(String value)
value
- the new delimiterpublic void setExt(String value)
value
- the new file extensionpublic void setFields(String value)
value
- the new fieldspublic void setFirstRowData(boolean value)
value
- the new value for the "first row has data" flagpublic void setLengthArray(int[] value)
value
- the new length arraypublic void setLineSeparator(String value)
value
- the new line separatorpublic void setMaxRowsInFile(int maxRowsInFile)
maxRowsInFile
- the maxRowsInFile to setpublic void setPersistMetaData(boolean value)
value
- the new value for the "persist meta data" flagpublic void setQuotePrefix(Character quotePrefix)
quotePrefix
- the quotePrefix to setpublic void setSkipDataSetField(boolean value)
value
- the new value for the "skip dataset column when writing data" flagpublic void setSkipDataSetRow(boolean value)
value
- the new value for the "skip dataset row when writing data" flagpublic void setSkipEmpty(boolean value)
value
- the new value for the "skip empty rows when reading data" flagpublic void setTitleRow(String titleRow)
titleRow
- the titleRow to setpublic void setWriter(Writer value)
value
- the new writerpublic boolean isSkipFirst()
public void setSkipFirst(boolean skipFirst)
skipFirst
- boolean the new value of the skip first row flagpublic boolean isSkipBad()
public void setSkipBad(boolean skipBad)
skipBad
- boolean the new value of the skip bad rows flagpublic String getFilter()
public void setFilter(String filter)
filter
- the new filterpublic boolean hasExtraDataCols()
public void setHasExtraDataCols(boolean hasExtraDataCols)
hasExtraDataCols
- booleanpublic String getTransformationType()
public void setTransformationType(String transformationType)
transformationType
- the new transformation typepublic int getStartRow()
public void setStartRow(int startRow)
startRow
- the new start rowpublic int getEndRow()
public void setEndRow(int endRow)
endRow
- the new end rowpublic String getNonameColumnName()
public void setNonameColumnName(String nonameColumnName)
nonameColumnName
- the new noname column namepublic boolean isMultiLineRecord()
public void setMultiLineRecord(boolean multiLineRecord)
multiLineRecord
- booleanpublic boolean isNumberOfDataColsSameAsFields()
public void setNumberOfDataColsSameAsFields(boolean numberOfDataColsSameAsFields)
numberOfDataColsSameAsFields
- booleanpublic boolean isIgnoreBom()
public void setIgnoreBom(boolean ignoreBom)
ignoreBom
- the new value of the ignore bom propertypublic boolean isAlwaysQuote()
public void setAlwaysQuote(boolean alwaysQuote)
alwaysQuote
- the new value of the always quote propertypublic boolean isStripNotPrintable()
public void setStripNotPrintable(boolean stripNotPrintable)
stripNotPrintable
- the new value of the strip not printable flagpublic String getValueForNull()
public void setValueForNull(String valueForNull)
valueForNull
- the new value for nullpublic boolean isEscapeQuote()
public void setEscapeQuote(boolean escapeQuote)
escapeQuote
- the new escape quotepublic boolean isSkipWhenFewerColumns()
public void setSkipWhenFewerColumns(boolean skipWhenFewerColumns)
skipWhenFewerColumns
- the new skip when fewer columnspublic boolean isSkipWhenMoreColumns()
public void setSkipWhenMoreColumns(boolean skipWhenMoreColumns)
skipWhenMoreColumns
- the new skip when more columnspublic int getNumberOfColumnsInFile()
public void setNumberOfColumnsInFile(int numberOfColumnsInFile)
public boolean isRemoveEol()
public void setRemoveEol(boolean removeEol)
removeEol
- booleanpublic boolean isReorder()
public void setReorder(boolean reorder)
reorder
- booleanCopyright © 2010-2020 Toolsverse. All Rights Reserved.