public class KettleDatabaseRepositoryStepDelegate extends KettleDatabaseRepositoryBaseDelegate
| Modifier and Type | Field and Description |
|---|---|
static String |
STEP_ATTRIBUTE_PREFIX |
log, repository| Constructor and Description |
|---|
KettleDatabaseRepositoryStepDelegate(KettleDatabaseRepository repository) |
| Modifier and Type | Method and Description |
|---|---|
int |
getNrStepAttributes(ObjectId id_step) |
int |
getNrSteps(ObjectId id_transformation) |
RowMetaAndData |
getStep(ObjectId id_step) |
RowMetaAndData |
getStepAttribute(ObjectId id_step_attribute) |
ObjectId |
getStepID(String name,
ObjectId id_transformation) |
RowMetaAndData |
getStepType(ObjectId id_step_type) |
String |
getStepTypeCode(ObjectId id_database_type) |
Map<String,LongObjectId> |
getStepTypeCodeToIdMap() |
ObjectId |
getStepTypeID(String code) |
ObjectId[] |
getStepTypeIDs(String[] codes,
int amount) |
ObjectId |
insertStep(ObjectId id_transformation,
String name,
String description,
String steptype,
boolean distribute,
long copies,
long gui_location_x,
long gui_location_y,
boolean gui_draw,
String copiesString) |
StepErrorMeta |
loadStepErrorMeta(VariableSpace variables,
StepMeta stepMeta,
List<StepMeta> steps) |
StepMeta |
loadStepMeta(ObjectId stepId,
List<DatabaseMeta> databases,
List<PartitionSchema> partitionSchemas)
Create a new step by loading the metadata from the specified repository.
|
StepPartitioningMeta |
loadStepPartitioningMeta(ObjectId id_step) |
void |
saveStepErrorMeta(StepErrorMeta meta,
ObjectId id_transformation,
ObjectId id_step) |
void |
saveStepMeta(StepMeta stepMeta,
ObjectId transformationId) |
void |
saveStepPartitioningMeta(StepPartitioningMeta meta,
ObjectId id_transformation,
ObjectId id_step)
Saves partitioning properties in the repository for the given step.
|
quote, quoteTablepublic static final String STEP_ATTRIBUTE_PREFIX
public KettleDatabaseRepositoryStepDelegate(KettleDatabaseRepository repository)
public ObjectId getStepTypeID(String code) throws KettleException
KettleExceptionpublic ObjectId[] getStepTypeIDs(String[] codes, int amount) throws KettleException
KettleExceptionpublic Map<String,LongObjectId> getStepTypeCodeToIdMap() throws KettleException
KettleExceptionpublic ObjectId getStepID(String name, ObjectId id_transformation) throws KettleException
KettleExceptionpublic String getStepTypeCode(ObjectId id_database_type) throws KettleException
KettleExceptionpublic RowMetaAndData getStep(ObjectId id_step) throws KettleException
KettleExceptionpublic RowMetaAndData getStepType(ObjectId id_step_type) throws KettleException
KettleExceptionpublic RowMetaAndData getStepAttribute(ObjectId id_step_attribute) throws KettleException
KettleExceptionpublic StepMeta loadStepMeta(ObjectId stepId, List<DatabaseMeta> databases, List<PartitionSchema> partitionSchemas) throws KettleException
rep - stepId - databases - counters - partitionSchemas - KettleExceptionpublic void saveStepMeta(StepMeta stepMeta, ObjectId transformationId) throws KettleException
KettleExceptionpublic void saveStepErrorMeta(StepErrorMeta meta, ObjectId id_transformation, ObjectId id_step) throws KettleException
KettleExceptionpublic StepErrorMeta loadStepErrorMeta(VariableSpace variables, StepMeta stepMeta, List<StepMeta> steps) throws KettleException
KettleExceptionpublic StepPartitioningMeta loadStepPartitioningMeta(ObjectId id_step) throws KettleException
KettleExceptionpublic void saveStepPartitioningMeta(StepPartitioningMeta meta, ObjectId id_transformation, ObjectId id_step) throws KettleException
meta - the partitioning metadata to store.id_transformation - the ID of the transformationid_step - the ID of the stepKettleDatabaseException - In case anything goes wrongKettleExceptionpublic ObjectId insertStep(ObjectId id_transformation, String name, String description, String steptype, boolean distribute, long copies, long gui_location_x, long gui_location_y, boolean gui_draw, String copiesString) throws KettleException
KettleExceptionpublic int getNrSteps(ObjectId id_transformation) throws KettleException
KettleExceptionpublic int getNrStepAttributes(ObjectId id_step) throws KettleException
KettleExceptionCopyright © 2018 Hitachi Vantara. All rights reserved.