public class KeyValueConnectorParams extends FileConnectorParams
DataSetConnectorParams
used by KeyValueConnector.KeyValueConnector
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
DELIMETER_PROP
The DELIMETER property.
|
static String |
END_ROW_PROP
The END ROW property.
|
static String |
EXTENSION_PROP
The EXTENSION property.
|
static String |
FILTER_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 |
NONAME_COLUMN_NAME_PROP
The NONAME_COLUMN_NAME property.
|
static String |
PREFIX
The PREFIX.
|
static String |
PREPROCESSOR_TRANSFORMATION |
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 |
START_ROW_PROP
The START ROW 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 |
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 |
---|
KeyValueConnectorParams()
Instantiates a new TextConnectorParams.
|
KeyValueConnectorParams(CacheProvider<String,Object> cacheProvider,
boolean silent,
int logStep)
Instantiates a new TextConnectorParams.
|
KeyValueConnectorParams(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.
|
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 |
getFilter()
Gets the javascript filter.
|
String |
getLineSeparator()
Gets the line separator.
|
int |
getMaxRowsInFile()
Gets the max number of rows in file created.
|
String |
getNonameColumnName()
Gets the noname column name.
|
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.
|
String |
getRealDelimiter()
Gets the real delimiter.
|
int |
getStartRow()
Gets the start row.
|
String |
getTransformationType()
Gets the transformation type.
|
Writer |
getWriter()
Gets the writer.
|
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 |
isIgnoreBom()
Checks if parser should ignore byte order mark (bom).
|
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.
|
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 |
setExt(String value)
Sets the file extension.
|
void |
setFilter(String filter)
Sets the javascript filter.
|
void |
setIgnoreBom(boolean ignoreBom)
Sets the ignore byte order mark (bom) property.
|
void |
setLineSeparator(String value)
Sets the line separator.
|
void |
setMaxRowsInFile(int maxRowsInFile)
Sets the max number of rows in file created.
|
void |
setNonameColumnName(String nonameColumnName)
Sets the noname column name.
|
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 |
setStartRow(int startRow)
Sets the start row.
|
void |
setTransformationType(String transformationType)
Sets the transformation type.
|
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 SKIP_EMPTY_PROP
public static final String SKIP_BAD_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 EXTENSION_PROP
public static final String IGNORE_BOM_PROP
public static final String FILTER_TRANSFORMATION
public static final String PREPROCESSOR_TRANSFORMATION
public KeyValueConnectorParams()
public KeyValueConnectorParams(CacheProvider<String,Object> cacheProvider, boolean silent, int logStep)
cacheProvider
- the cache providersilent
- the "is silent" flaglogStep
- the log steppublic KeyValueConnectorParams(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 AtomicInteger getCurrentBatchRow()
public String getDelimiter()
public String getExt()
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 String getRealDelimiter()
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 isSkipDataSetField()
public boolean isSkipDataSetRow()
public boolean isSkipEmpty()
public 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 setLineSeparator(String value)
value
- the new line separatorpublic void setMaxRowsInFile(int maxRowsInFile)
maxRowsInFile
- the maxRowsInFile 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 setWriter(Writer value)
value
- the new writerpublic 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 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 isIgnoreBom()
public void setIgnoreBom(boolean ignoreBom)
ignoreBom
- the new value of the ignore bom propertyCopyright © 2010-2020 Toolsverse. All Rights Reserved.