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
Modifier and TypeFieldDescriptionprotected String
protected String
static final String
static final String
static final String
static final String
protected String
static final String
static final int
static final String
static final String
protected String
static final String
protected String
static final String
protected String
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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) Checks the settings of this step and puts the findings in a remarks List.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) Gets the fields.int
String[]
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.RowMeta
getRowMeta
(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 objectvoid
replaceFileName
(String fileName) void
setBatchDuration
(String batchDuration) void
setBatchSize
(String batchSize) void
Set default valuesvoid
setParallelism
(String parallelism) void
setPrefetchCount
(String prefetchCount) void
setSubStep
(String subStep) void
setTransformationPath
(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 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:StepMetaInterface
Set default values- Specified by:
setDefault
in interfaceStepMetaInterface
-
getTransformationPath
-
getBatchSize
-
getPrefetchCount
-
getBatchDuration
-
getParallelism
-
getMessageDataType
public int getMessageDataType() -
replaceFileName
- Overrides:
replaceFileName
in 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:StepMetaInterface
Checks the settings of this step and puts the findings in a remarks List.- Specified by:
check
in interfaceStepMetaInterface
- Overrides:
check
in 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:
getFileName
in interfaceISubTransAwareMeta
- Overrides:
getFileName
in classStepWithMappingMeta
- Returns:
- the fileName
-
getResourceDependencies
Description copied from class:BaseStepMeta
Get a list of all the resource dependencies that the step is depending on.- Specified by:
getResourceDependencies
in interfaceStepMetaInterface
- Overrides:
getResourceDependencies
in classBaseStepMeta
- Returns:
- a list of all the resource dependencies that the step is depending on
-
getReferencedObjectDescriptions
- Specified by:
getReferencedObjectDescriptions
in interfaceStepMetaInterface
- Overrides:
getReferencedObjectDescriptions
in classBaseStepMeta
- Returns:
- The objects referenced in the step, like a mapping, a transformation, a job, ...
-
isReferencedObjectEnabled
public boolean[] isReferencedObjectEnabled()- Specified by:
isReferencedObjectEnabled
in interfaceStepMetaInterface
- Overrides:
isReferencedObjectEnabled
in 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:StepMetaInterface
Load the referenced object- Specified by:
loadReferencedObject
in interfaceStepMetaInterface
- Overrides:
loadReferencedObject
in 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:BaseStepMeta
Gets the fields.- Specified by:
getFields
in interfaceStepMetaInterface
- Overrides:
getFields
in 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
-