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, quoteTable
public static final String STEP_ATTRIBUTE_PREFIX
public KettleDatabaseRepositoryStepDelegate(KettleDatabaseRepository repository)
public ObjectId getStepTypeID(String code) throws KettleException
KettleException
public ObjectId[] getStepTypeIDs(String[] codes, int amount) throws KettleException
KettleException
public Map<String,LongObjectId> getStepTypeCodeToIdMap() throws KettleException
KettleException
public ObjectId getStepID(String name, ObjectId id_transformation) throws KettleException
KettleException
public String getStepTypeCode(ObjectId id_database_type) throws KettleException
KettleException
public RowMetaAndData getStep(ObjectId id_step) throws KettleException
KettleException
public RowMetaAndData getStepType(ObjectId id_step_type) throws KettleException
KettleException
public RowMetaAndData getStepAttribute(ObjectId id_step_attribute) throws KettleException
KettleException
public StepMeta loadStepMeta(ObjectId stepId, List<DatabaseMeta> databases, List<PartitionSchema> partitionSchemas) throws KettleException
rep
- stepId
- databases
- counters
- partitionSchemas
- KettleException
public void saveStepMeta(StepMeta stepMeta, ObjectId transformationId) throws KettleException
KettleException
public void saveStepErrorMeta(StepErrorMeta meta, ObjectId id_transformation, ObjectId id_step) throws KettleException
KettleException
public StepErrorMeta loadStepErrorMeta(VariableSpace variables, StepMeta stepMeta, List<StepMeta> steps) throws KettleException
KettleException
public StepPartitioningMeta loadStepPartitioningMeta(ObjectId id_step) throws KettleException
KettleException
public 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 wrongKettleException
public 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
KettleException
public int getNrSteps(ObjectId id_transformation) throws KettleException
KettleException
public int getNrStepAttributes(ObjectId id_step) throws KettleException
KettleException
Copyright © 2018 Hitachi Vantara. All rights reserved.