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
Fields Modifier and Type Field Description protected StringbatchDurationprotected StringbatchSizestatic StringDURATIONstatic StringMESSAGE_DATA_TYPEstatic StringNOT_A_NUMBERstatic StringNUM_MESSAGESprotected Stringparallelismstatic StringPARALLELISMstatic intPREFETCHstatic StringPREFETCH_COUNTstatic StringPREFETCH_DEFAULTprotected StringprefetchCountstatic StringSUB_STEPprotected StringsubStepstatic StringTRANSFORMATION_PATHprotected StringtransformationPath-
Fields inherited from class org.pentaho.di.trans.StepWithMappingMeta
directoryPath, fileName, specificationMethod, transName, transObjectId
-
Fields inherited from class org.pentaho.di.trans.step.BaseStepMeta
attributes, databases, log, loggingObject, parentStepMeta, repository, STEP_ATTRIBUTES_FILE
-
-
Constructor Summary
Constructors Constructor Description BaseStreamStepMeta()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcheck(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.StringgetBatchDuration()StringgetBatchSize()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.StringgetFileName()intgetMessageDataType()StringgetParallelism()StringgetPrefetchCount()String[]getReferencedObjectDescriptions()List<ResourceReference>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)StringgetSubStep()StringgetTransformationPath()boolean[]isReferencedObjectEnabled()ObjectloadReferencedObject(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)voidsetDefault()Set 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, setTransObjectId
-
Methods inherited from class org.pentaho.di.core.util.serialization.BaseSerializingMeta
getXML, loadXML, readRep, saveRep, withVariables
-
Methods 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, supportsErrorHandling
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.di.trans.ISubTransAwareMeta
getDirectoryPath, getParentStepMeta, getSpecificationMethod, getTransName, getTransObjectId
-
Methods 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 Detail
-
NOT_A_NUMBER
public static final String NOT_A_NUMBER
- See Also:
- Constant Field Values
-
TRANSFORMATION_PATH
public static final String TRANSFORMATION_PATH
- See Also:
- Constant Field Values
-
NUM_MESSAGES
public static final String NUM_MESSAGES
- See Also:
- Constant Field Values
-
PREFETCH_COUNT
public static final String PREFETCH_COUNT
- See Also:
- Constant Field Values
-
DURATION
public static final String DURATION
- See Also:
- Constant Field Values
-
SUB_STEP
public static final String SUB_STEP
- See Also:
- Constant Field Values
-
PARALLELISM
public static final String PARALLELISM
- See Also:
- Constant Field Values
-
MESSAGE_DATA_TYPE
public static final String MESSAGE_DATA_TYPE
- See Also:
- Constant Field Values
-
PREFETCH
public static final int PREFETCH
- See Also:
- Constant Field Values
-
PREFETCH_DEFAULT
public static final String PREFETCH_DEFAULT
-
transformationPath
protected String transformationPath
-
batchSize
protected String batchSize
-
prefetchCount
protected String prefetchCount
-
batchDuration
protected String batchDuration
-
subStep
protected String subStep
-
parallelism
protected String parallelism
-
-
Method Detail
-
getSubStep
public String getSubStep()
-
setSubStep
public void setSubStep(String subStep)
-
setTransformationPath
public void setTransformationPath(String transformationPath)
-
setBatchSize
public void setBatchSize(String batchSize)
-
setPrefetchCount
public void setPrefetchCount(String prefetchCount)
-
setBatchDuration
public void setBatchDuration(String batchDuration)
-
setParallelism
public void setParallelism(String parallelism)
-
setDefault
public void setDefault()
Description copied from interface:StepMetaInterfaceSet default values- Specified by:
setDefaultin interfaceStepMetaInterface
-
getTransformationPath
public String getTransformationPath()
-
getBatchSize
public String getBatchSize()
-
getPrefetchCount
public String getPrefetchCount()
-
getBatchDuration
public String getBatchDuration()
-
getParallelism
public String getParallelism()
-
getMessageDataType
public int getMessageDataType()
-
replaceFileName
public void replaceFileName(String fileName)
- 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
public String getFileName()
- Specified by:
getFileNamein interfaceISubTransAwareMeta- Overrides:
getFileNamein classStepWithMappingMeta- Returns:
- the fileName
-
getResourceDependencies
public List<ResourceReference> getResourceDependencies(TransMeta transMeta, StepMeta stepInfo)
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
public String[] 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.KettleStepExceptionDescription 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
-
-