Class BaseStreamStepMeta
java.lang.Object
org.pentaho.di.trans.step.BaseStepMeta
org.pentaho.di.core.util.serialization.BaseSerializingMeta
org.pentaho.di.trans.StepWithMappingMeta
org.pentaho.di.trans.streaming.common.BaseStreamStepMeta
- All Implemented Interfaces:
Cloneable,HasRepositoryDirectories,ISubTransAwareMeta,StepAttributesInterface,StepMetaInterface
public abstract class BaseStreamStepMeta
extends StepWithMappingMeta
implements StepMetaInterface, ISubTransAwareMeta
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected Stringstatic final Stringstatic final intstatic final Stringstatic final Stringprotected Stringstatic final Stringprotected Stringstatic final Stringprotected StringFields inherited from class org.pentaho.di.trans.StepWithMappingMeta
directoryPath, fileName, specificationMethod, transName, transObjectIdFields inherited from class org.pentaho.di.trans.step.BaseStepMeta
attributes, databases, log, loggingObject, parentStepMeta, repository, STEP_ATTRIBUTES_FILE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheck(List<org.pentaho.di.core.CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepMeta, org.pentaho.di.core.row.RowMetaInterface prev, String[] input, String[] output, org.pentaho.di.core.row.RowMetaInterface info, org.pentaho.di.core.variables.VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) Checks the settings of this step and puts the findings in a remarks List.voidgetFields(org.pentaho.di.core.row.RowMetaInterface rowMeta, String origin, org.pentaho.di.core.row.RowMetaInterface[] info, StepMeta nextStep, org.pentaho.di.core.variables.VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) Gets the fields.intString[]getResourceDependencies(TransMeta transMeta, StepMeta stepInfo) Get a list of all the resource dependencies that the step is depending on.abstract org.pentaho.di.core.row.RowMetagetRowMeta(String origin, org.pentaho.di.core.variables.VariableSpace space) boolean[]loadReferencedObject(int index, Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.core.variables.VariableSpace space) Load the referenced objectvoidreplaceFileName(String fileName) voidsetBatchDuration(String batchDuration) voidsetBatchSize(String batchSize) voidSet default valuesvoidsetParallelism(String parallelism) voidsetPrefetchCount(String prefetchCount) voidsetSubStep(String subStep) voidsetTransformationPath(String transformationPath) Methods inherited from class org.pentaho.di.trans.StepWithMappingMeta
activateParams, activateParams, addMissingVariables, exportResources, getDirectories, getDirectoryPath, getInputMappings, getOutputMappings, getSpecificationMethod, getSpecificationMethods, getTransName, getTransObjectId, loadMappingMeta, loadMappingMeta, replaceVariableValues, replaceVariableValues, setDirectories, setDirectoryPath, setFileName, setSpecificationMethod, setTransName, setTransObjectIdMethods inherited from class org.pentaho.di.core.util.serialization.BaseSerializingMeta
getXML, loadXML, readRep, saveRep, withVariablesMethods inherited from class org.pentaho.di.trans.step.BaseStepMeta
analyseImpact, analyseImpact, cancelQueries, check, check, clone, createEntry, excludeFromCopyDistributeVerification, excludeFromRowLayoutVerification, exportResources, extractStepMetadataEntries, findAttribute, findParent, findParentEntry, getActiveReferencedObjectDescription, getDescription, getDialogClassName, getFields, getLog, getLogChannelId, getName, getObjectCopy, getObjectId, getObjectRevision, getObjectType, getOptionalStreams, getParent, getParentStepMeta, getRepCode, getRepositoryDirectory, getRequiredFields, getRequiredFields, getSQLStatements, getSQLStatements, getStepInjectionMetadataEntries, getStepIOMeta, getStepIOMeta, getStepMetaInjectionInterface, getSupportedTransformationTypes, getTableFields, getTooltip, getUsedArguments, getUsedDatabaseConnections, getUsedLibraries, getXmlCode, handleStreamSelection, hasChanged, hasRepositoryReferences, isBasic, isDebug, isDetailed, isRowLevel, loadReferencedObject, loadStepAttributes, loadXML, loadXML, logBasic, logBasic, logDebug, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logMinimal, logRowlevel, logRowlevel, lookupRepositoryReferences, readRep, readRep, resetStepIoMeta, saveRep, searchInfoAndTargetSteps, setChanged, setChanged, setParentStepMeta, setStepIOMeta, supportsErrorHandlingMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.pentaho.di.trans.ISubTransAwareMeta
getDirectoryPath, getParentStepMeta, getSpecificationMethod, getTransName, getTransObjectIdMethods inherited from interface org.pentaho.di.trans.step.StepMetaInterface
analyseImpact, analyseImpact, cancelQueries, check, cleanAfterHopFromRemove, cleanAfterHopFromRemove, cleanAfterHopToRemove, clone, excludeFromCopyDistributeVerification, excludeFromRowLayoutVerification, exportResources, exportResources, extractStepMetadataEntries, fetchTransMeta, getActiveReferencedObjectDescription, getDialogClassName, getFields, getOptionalStreams, getParentStepMeta, getRequiredFields, getSQLStatements, getSQLStatements, getStep, getStepData, getStepIOMeta, getStepMetaInjectionInterface, getSupportedTransformationTypes, getTableFields, getUsedArguments, getUsedDatabaseConnections, getUsedLibraries, getXML, handleStreamSelection, hasChanged, hasRepositoryReferences, loadXML, loadXML, lookupRepositoryReferences, passDataToServletOutput, readRep, readRep, resetStepIoMeta, saveRep, saveRep, searchInfoAndTargetSteps, setChanged, setParentStepMeta, supportsErrorHandling
-
Field Details
-
NOT_A_NUMBER
- See Also:
-
TRANSFORMATION_PATH
- See Also:
-
NUM_MESSAGES
- See Also:
-
PREFETCH_COUNT
- See Also:
-
DURATION
- See Also:
-
SUB_STEP
- See Also:
-
PARALLELISM
- See Also:
-
MESSAGE_DATA_TYPE
- See Also:
-
PREFETCH
public static final int PREFETCH- See Also:
-
PREFETCH_DEFAULT
-
transformationPath
-
batchSize
-
prefetchCount
-
batchDuration
-
subStep
-
parallelism
-
-
Constructor Details
-
BaseStreamStepMeta
public BaseStreamStepMeta()
-
-
Method Details
-
getSubStep
-
setSubStep
-
setTransformationPath
-
setBatchSize
-
setPrefetchCount
-
setBatchDuration
-
setParallelism
-
setDefault
public void setDefault()Description copied from interface:StepMetaInterfaceSet default values- Specified by:
setDefaultin interfaceStepMetaInterface
-
getTransformationPath
-
getBatchSize
-
getPrefetchCount
-
getBatchDuration
-
getParallelism
-
getMessageDataType
public int getMessageDataType() -
replaceFileName
- Overrides:
replaceFileNamein classStepWithMappingMeta- Parameters:
fileName- the fileName to set
-
check
public void check(List<org.pentaho.di.core.CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepMeta, org.pentaho.di.core.row.RowMetaInterface prev, String[] input, String[] output, org.pentaho.di.core.row.RowMetaInterface info, org.pentaho.di.core.variables.VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) Description copied from interface:StepMetaInterfaceChecks the settings of this step and puts the findings in a remarks List.- Specified by:
checkin interfaceStepMetaInterface- Overrides:
checkin classBaseStepMeta- Parameters:
remarks- The list to put the remarks in @see org.pentaho.di.core.CheckResultstepMeta- The stepMeta to help checkingprev- The fields coming from the previous stepinput- The input step namesoutput- The output step namesinfo- The fields that are used as information by the stepspace- the variable space to resolve variable expressions withrepository- the repository to use to load Kettle metadata objects impacting the output fieldsmetaStore- the MetaStore to use to load additional external data or metadata impacting the output fields
-
getFileName
- Specified by:
getFileNamein interfaceISubTransAwareMeta- Overrides:
getFileNamein classStepWithMappingMeta- Returns:
- the fileName
-
getResourceDependencies
Description copied from class:BaseStepMetaGet a list of all the resource dependencies that the step is depending on.- Specified by:
getResourceDependenciesin interfaceStepMetaInterface- Overrides:
getResourceDependenciesin classBaseStepMeta- Returns:
- a list of all the resource dependencies that the step is depending on
-
getReferencedObjectDescriptions
- Specified by:
getReferencedObjectDescriptionsin interfaceStepMetaInterface- Overrides:
getReferencedObjectDescriptionsin classBaseStepMeta- Returns:
- The objects referenced in the step, like a mapping, a transformation, a job, ...
-
isReferencedObjectEnabled
public boolean[] isReferencedObjectEnabled()- Specified by:
isReferencedObjectEnabledin interfaceStepMetaInterface- Overrides:
isReferencedObjectEnabledin classBaseStepMeta- Returns:
- true for each referenced object that is enabled or has a valid reference definition.
-
loadReferencedObject
public Object loadReferencedObject(int index, Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.core.variables.VariableSpace space) throws org.pentaho.di.core.exception.KettleException Description copied from interface:StepMetaInterfaceLoad the referenced object- Specified by:
loadReferencedObjectin interfaceStepMetaInterface- Overrides:
loadReferencedObjectin classBaseStepMeta- Parameters:
index- the referenced object index to load (in case there are multiple references)rep- the repositorymetaStore- the MetaStore to usespace- the variable space to use- Returns:
- the referenced object once loaded
- Throws:
org.pentaho.di.core.exception.KettleException
-
getRowMeta
public abstract org.pentaho.di.core.row.RowMeta getRowMeta(String origin, org.pentaho.di.core.variables.VariableSpace space) throws org.pentaho.di.core.exception.KettleStepException - Throws:
org.pentaho.di.core.exception.KettleStepException
-
getFields
public void getFields(org.pentaho.di.core.row.RowMetaInterface rowMeta, String origin, org.pentaho.di.core.row.RowMetaInterface[] info, StepMeta nextStep, org.pentaho.di.core.variables.VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) throws org.pentaho.di.core.exception.KettleStepException Description copied from class:BaseStepMetaGets the fields.- Specified by:
getFieldsin interfaceStepMetaInterface- Overrides:
getFieldsin classBaseStepMeta- Parameters:
rowMeta- the input row meta that is modified in this method to reflect the output row metadata of the steporigin- Name of the step to use as input for the origin field in the valuesinfo- Fields used as extra lookup informationnextStep- the next step that is targetedspace- the space The variable space to use to replace variablesrepository- the repository to use to load Kettle metadata objects impacting the output fieldsmetaStore- the MetaStore to use to load additional external data or metadata impacting the output fields- Throws:
org.pentaho.di.core.exception.KettleStepException- the kettle step exception
-