Modifier and Type | Method and Description |
---|---|
FieldDef |
FieldDef.copy()
Copy field.
|
FieldDef |
FieldDef.copyEssential(FieldDef to)
Copy essential attributes.
|
FieldDef |
FieldDef.getBestMatch()
Gets the best match.
|
FieldDef |
DataSet.getFieldDef(int pos)
Gets the field by index.
|
FieldDef |
DataSet.getFieldDef(String name)
Gets the field by name.
|
Modifier and Type | Method and Description |
---|---|
TypedKeyValue<FieldDef,DataSet> |
DataSet.addField(String fieldName,
int fieldType,
String nativeType,
Object value,
String... separator)
Add the field and the value to the data set.
|
TypedKeyValue<FieldDef,DataSet> |
DataSet.addField(String fieldName,
Object value,
String... separator)
Add the field and the value to the data set.
|
TypedKeyValue<FieldDef,DataSet> |
DataSet.addFieldWithType(String fieldName,
int fieldType,
String nativeType,
Object value)
Add the field and the value to the data set.
|
TypedKeyValue<FieldDef,DataSet> |
DataSet.findField(String fieldName,
String... separator)
Find field.
|
List<FieldDef> |
FieldsRepository.getFieldDef(String key,
int type)
Gets the list of field definitions by given key and type.
|
static Map<String,FieldDef> |
CommonEtlUtils.getFieldsExceptExcluded(String excludedFields,
Map<String,FieldDef> dataSetFields)
Returns the map of the fields except given excluded fields.
|
TypedKeyValue<FieldDef,Object> |
DataSet.getFieldValueWithNested(DataSetRecord record,
String fieldName)
Gets the field value from the nested dataset.
|
TypedKeyValue<FieldDef,Object> |
DataSet.getFieldValueWithNested(int row,
String fieldName)
Gets the field value from the nested dataset.
|
static Map<String,FieldDef> |
CommonEtlUtils.getKeyFields(String keys,
Map<String,FieldDef> dataSetFields)
Returns the map of the key fields for the given keys.
|
TreeMap<String,FieldDef> |
DataSet.getNonCaseSensitiveFields()
Gets the non case sensitive fields.
|
TypedKeyValue<FieldDef,Object> |
DataSet.getNullableFieldValueWithNested(DataSetRecord record,
String fieldName)
Gets the field value from the nested dataset.
|
TypedKeyValue<FieldDef,Object> |
DataSet.getNullableFieldValueWithNested(int row,
String fieldName)
Gets the field value from the nested dataset.
|
List<FieldDef> |
DataSet.getSortedFields()
Gets the sorted by index fields.
|
List<FieldDef> |
DataSetFields.getSortedList()
Gets the sorted by index list of fields.
|
static List<TypedKeyValue<Integer,FieldDef>> |
CommonEtlUtils.reorderFields(DataSetFields fields,
String pattern)
Reorder fields according to the pattern.
|
Modifier and Type | Method and Description |
---|---|
void |
DataSet.addField(FieldDef fieldDef)
Adds the field.
|
void |
DataSet.addField(FieldDef fieldDef,
int index)
Adds the field at the index.
|
void |
DataSet.addUniqueField(FieldDef fieldDef,
int column)
Adds the field.
|
void |
FieldDef.copyDataType(FieldDef to)
Copy data type.
|
FieldDef |
FieldDef.copyEssential(FieldDef to)
Copy essential attributes.
|
Object |
DataSet.decode(FieldDef fieldDef,
String fieldValue,
Driver driver,
Map<String,String> params)
Decodes value of the field using Base64 algorithm.
|
Object |
DataSet.decode(FieldDef fieldDef,
String fieldValue,
Driver driver,
Map<String,String> params,
boolean decode)
Decodes value of the field using Base64 algorithm.
|
String |
DataSet.encode(FieldDef fieldDef,
Object fieldValue,
Driver driver,
Map<String,String> params,
boolean encode,
boolean booleanToNumber)
Encodes value of the field using Base64 algorithm.
|
Object |
DataSet.getDisplayFieldValue(Object value,
FieldDef field,
int rowIndex)
Gets the display value of the field for the field.
|
String |
DataSet.getFieldAttr(FieldDef fieldDef,
String name)
Gets the field's attribute by given name.
|
int |
DataSet.getFieldIndex(FieldDef field)
Gets the field index.
|
Object |
DataSet.getFieldValue(DataSetRecord record,
FieldDef field)
Gets the value of the field from the record by the field.
|
Object |
DataSet.getNullableFieldValue(DataSetRecord record,
FieldDef field)
Gets the value of the field from the record by the field.
|
boolean |
DataSet.isFieldEncoded(FieldDef fieldDef)
Checks if field is encoded.
|
void |
DataSet.removeField(FieldDef fieldDef)
Removes the field.
|
void |
FieldDef.setBestMatch(FieldDef value)
Sets the best match.
|
void |
DataSet.setField(FieldDef fieldDef)
Replaces current field defined by field.getName() on the given field.
|
void |
DataSet.setFieldAttr(FieldDef fieldDef,
String name,
String value)
Sets the attribute of the field.
|
void |
FieldMapping.updateField(FieldDef field,
FieldDef original)
Update field.
|
Modifier and Type | Method and Description |
---|---|
static Map<String,FieldDef> |
CommonEtlUtils.getFieldsExceptExcluded(String excludedFields,
Map<String,FieldDef> dataSetFields)
Returns the map of the fields except given excluded fields.
|
static String |
CommonEtlUtils.getKey(DataSet dataSet,
DataSetRecord record,
Map<String,FieldDef> keys,
boolean ignoreCase,
boolean doTrim)
Gets the string representation of the key for the given record and map of
key fields.
|
static Map<String,FieldDef> |
CommonEtlUtils.getKeyFields(String keys,
Map<String,FieldDef> dataSetFields)
Returns the map of the key fields for the given keys.
|
void |
DataSetData.sort(List<TypedKeyValue<Integer,DataSetData.SortType>> orderBy,
List<FieldDef> fields)
Sorts data using given order by list with field indexes.
|
TypedKeyValue<List<String>,List<String>> |
DataSet.updateFromMetadata(LinkedHashMap<String,FieldDef> metadata,
boolean source,
boolean dest,
boolean create,
boolean alter,
boolean orderAndType,
boolean typeOnly,
ListHashMap<String,Variable> variables)
Update fields from metadata.
|
Modifier and Type | Method and Description |
---|---|
void |
AddFieldValueCallback.onAddFieldValue(DataSet dataSet,
Driver driver,
DataSetRecord record,
FieldDef fieldDef)
Called when value is set for the field.
|
void |
FileConnectorParams.setFieldDataType(FieldDef field,
int sqlDataType,
String nativeDataType)
Sets the field data type.
|
Modifier and Type | Method and Description |
---|---|
List<FieldDef> |
EtlConfig.getFieldDef(String key,
int type) |
Modifier and Type | Method and Description |
---|---|
Map<String,FieldDef> |
Destination.getMetaData()
Gets the meta data.
|
List<FieldDef> |
Destination.updateFields(Driver driver,
boolean add)
Updates fields visibility based on variable.isInclude() flag.
|
Modifier and Type | Method and Description |
---|---|
void |
Destination.setMetaData(Map<String,FieldDef> value)
Sets the meta data.
|
Modifier and Type | Method and Description |
---|---|
int |
DefFunctions.getSqlType(Variable var,
FieldDef fieldDef)
Gets the sql type.
|
Modifier and Type | Method and Description |
---|---|
String |
SimpleDriver.getAlterTableAddColumnSql(String name,
FieldDef column,
FieldsRepository fieldsRepository) |
String |
Driver.getAlterTableAddColumnSql(String name,
FieldDef column,
FieldsRepository fieldsRepository)
Gets the alter table add column sql.
|
String |
AbstractDriver.getAlterTableAddColumnSql(String name,
FieldDef column,
FieldsRepository fieldsRepository) |
String |
Driver.getAlterTableAddColumnSql(String name,
FieldDef column,
FieldsRepository fieldsRepository,
boolean withNotNull)
Gets the alter table add column sql.
|
String |
AbstractDriver.getAlterTableAddColumnSql(String name,
FieldDef column,
FieldsRepository fieldsRepository,
boolean withNotNull) |
String |
Driver.getNativeType(FieldDef fieldDef,
String key,
FieldsRepository fieldsRepository)
Gets the native field from native field type.
|
String |
AbstractDriver.getNativeType(FieldDef fieldDef,
String key,
FieldsRepository fieldsRepository) |
Object |
SimpleDriver.getObject(ResultSet rs,
int index,
FieldDef fieldDef) |
Object |
GenericJdbcDriverNoErrorOnGetObject.getObject(ResultSet rs,
int index,
FieldDef fieldDef) |
Object |
Driver.getObject(ResultSet rs,
int index,
FieldDef fieldType)
Gets the object from result set.
|
Object |
CallableDriver.getObject(ResultSet rs,
int index,
FieldDef fieldDef) |
String |
SimpleDriver.getType(FieldDef fieldDef,
String key,
FieldsRepository fieldsRepository) |
String |
Driver.getType(FieldDef fieldDef,
String key,
FieldsRepository fieldsRepository)
Gets the native field type.
|
Modifier and Type | Method and Description |
---|---|
Object |
Db2Driver.getObject(ResultSet rs,
int index,
FieldDef fieldDef) |
String |
Db2Driver.getType(FieldDef fieldDef,
String key,
FieldsRepository fieldsRepository) |
Modifier and Type | Method and Description |
---|---|
Object |
InformixDriver.getObject(ResultSet rs,
int index,
FieldDef fieldDef) |
String |
InformixDriver.getType(FieldDef fieldDef,
String key,
FieldsRepository fieldsRepository) |
Modifier and Type | Method and Description |
---|---|
String |
MySqlDriver.getType(FieldDef fieldDef,
String key,
FieldsRepository fieldsRepository) |
Modifier and Type | Method and Description |
---|---|
String |
OracleDriver.getType(FieldDef fieldDef,
String key,
FieldsRepository fieldsRepository) |
Modifier and Type | Method and Description |
---|---|
String |
RedshiftDriver.getNativeType(FieldDef fieldDef,
String key,
FieldsRepository fieldsRepository) |
String |
RedshiftDriver.getType(FieldDef fieldDef,
String key,
FieldsRepository fieldsRepository) |
String |
PostgresDriver.getType(FieldDef fieldDef,
String key,
FieldsRepository fieldsRepository) |
Modifier and Type | Method and Description |
---|---|
String |
SnowflakeDriver.getType(FieldDef fieldDef,
String key,
FieldsRepository fieldsRepository) |
Modifier and Type | Method and Description |
---|---|
Object |
MsSqlDriver.getObject(ResultSet rs,
int index,
FieldDef fieldDef) |
String |
SybaseDriver.getType(FieldDef fieldDef,
String key,
FieldsRepository fieldsRepository) |
String |
MsSqlDriver.getType(FieldDef fieldDef,
String key,
FieldsRepository fieldsRepository) |
Modifier and Type | Method and Description |
---|---|
Map<Integer,List<FieldDef>> |
Metadata.discoverDatabaseTypes()
Discovers database types.
|
Map<Integer,List<FieldDef>> |
JdbcMetadata.discoverDatabaseTypes() |
Map<Integer,List<FieldDef>> |
FileMetadata.discoverDatabaseTypes() |
Map<String,FieldDef> |
MetadataProvider.getMetaData(String objectName)
Gets the field definitions for the object.
|
Map<String,FieldDef> |
MetadataExtractor.getMetaData(String objectName,
Connection connection,
Driver driver,
String sql,
boolean useTypes,
boolean keepOrder)
Extracts fields definitions for the object or given sql.
|
Map<String,FieldDef> |
GenericMetadataExtractor.getMetaData(String objectName,
Connection connection,
Driver driver,
String sql,
boolean useTypes,
boolean keepOrder) |
Map<String,FieldDef> |
MetadataCollector.getMetadataByName(String name)
Gets the object's metadata by name.
|
Modifier and Type | Method and Description |
---|---|
Map<String,FieldDef> |
SqlServiceImpl.getMetaData(SqlRequest sqlRequest) |
Map<String,FieldDef> |
SqlService.getMetaData(SqlRequest sqlRequest)
Gets the meta data for the database object (table, view or synonym).
|
Modifier and Type | Method and Description |
---|---|
static String |
SqlUtils.convertDataType(FieldDef source,
FieldDef dest)
Converts source data type into destination data type using given source
and dest field definitions.
|
static String |
SqlUtils.getFullNativeType(FieldDef fieldDef)
Gets the native data type.
|
static Object |
SqlUtils.getObject(ResultSet rs,
int index,
FieldDef fieldDef,
Driver driver)
Gets the object from result set.
|
static boolean |
SqlUtils.isBinaryTimestamp(Object fieldValue,
FieldDef fieldDef)
Checks if field is binary timestamp.
|
Copyright © 2010-2020 Toolsverse. All Rights Reserved.