public abstract class BaseFileOutputMeta extends BaseFileMeta
Modifier and Type | Field and Description |
---|---|
protected boolean |
dateInFilename
Flag: add the date in the filename
|
protected String |
extension
The file extention in case of a generated filename
|
protected String |
fileName
The base name of the output file
|
protected boolean |
partNrInFilename
Flag: add the partition number in the filename
|
protected boolean |
stepNrInFilename
Flag: add the stepnr in the filename
|
protected boolean |
timeInFilename
Flag: add the time in the filename
|
servletOutput
attributes, databases, log, loggingObject, parentStepMeta, repository, STEP_ATTRIBUTES_FILE
Constructor and Description |
---|
BaseFileOutputMeta() |
Modifier and Type | Method and Description |
---|---|
protected String |
buildFilename(String realFileName,
String realExtension,
String stepnr,
String partnr,
String splitnr,
Date date,
boolean ziparchive,
boolean showSamples,
BaseFileOutputMeta meta) |
String |
buildFilename(VariableSpace space,
String stepnr,
String partnr,
String splitnr,
boolean ziparchive) |
String |
buildFilename(VariableSpace space,
String stepnr,
String partnr,
String splitnr,
boolean ziparchive,
boolean showSamples) |
protected String |
buildFilename(VariableSpace space,
String realFileName,
String realExtension,
String stepnr,
String partnr,
String splitnr,
Date date,
boolean ziparchive,
boolean showSamples,
BaseFileOutputMeta meta) |
String |
getDateTimeFormat() |
String |
getExtension() |
String |
getFileCompression() |
String |
getFileName() |
String[] |
getFilePaths(boolean showSamples) |
String[] |
getFiles(VariableSpace space) |
protected String |
getPartPrefix() |
abstract int |
getSplitEvery() |
int |
getSplitEvery(VariableSpace space) |
boolean |
isDateInFilename() |
boolean |
isFileAsCommand() |
boolean |
isPartNrInFilename() |
boolean |
isSpecifyingFormat() |
boolean |
isStepNrInFilename() |
boolean |
isTimeInFilename() |
void |
setDateTimeFormat(String dateTimeFormat) |
void |
setExtension(String extension) |
void |
setFileAsCommand(boolean fileAsCommand) |
void |
setFileCompression(String fileCompression) |
void |
setFileName(String fileName) |
void |
setSpecifyingFormat(boolean specifyingFormat) |
abstract void |
setSplitEvery(int splitEvery) |
passDataToServletOutput, writesToFile
analyseImpact, analyseImpact, cancelQueries, check, check, check, clone, createEntry, excludeFromCopyDistributeVerification, excludeFromRowLayoutVerification, exportResources, exportResources, extractStepMetadataEntries, findAttribute, findParent, findParentEntry, getActiveReferencedObjectDescription, getDescription, getDialogClassName, getFields, getFields, getLog, getLogChannelId, getName, getObjectCopy, getObjectId, getObjectRevision, getObjectType, getOptionalStreams, getParent, getParentStepMeta, getReferencedObjectDescriptions, getRepCode, getRepositoryDirectory, getRequiredFields, getRequiredFields, getResourceDependencies, getSQLStatements, getSQLStatements, getStepInjectionMetadataEntries, getStepIOMeta, getStepIOMeta, getStepMetaInjectionInterface, getSupportedTransformationTypes, getTableFields, getTooltip, getUsedArguments, getUsedDatabaseConnections, getUsedLibraries, getXML, getXmlCode, handleStreamSelection, hasChanged, hasRepositoryReferences, isBasic, isDebug, isDetailed, isReferencedObjectEnabled, isRowLevel, loadReferencedObject, loadReferencedObject, loadStepAttributes, loadXML, loadXML, loadXML, logBasic, logBasic, logDebug, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logMinimal, logRowlevel, logRowlevel, lookupRepositoryReferences, readRep, readRep, readRep, resetStepIoMeta, saveRep, saveRep, searchInfoAndTargetSteps, setChanged, setChanged, setParentStepMeta, setStepIOMeta, supportsErrorHandling
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
analyseImpact, analyseImpact, cancelQueries, check, check, cleanAfterHopFromRemove, cleanAfterHopFromRemove, cleanAfterHopToRemove, clone, excludeFromCopyDistributeVerification, excludeFromRowLayoutVerification, exportResources, exportResources, extractStepMetadataEntries, fetchTransMeta, getActiveReferencedObjectDescription, getDialogClassName, getFields, getFields, getOptionalStreams, getParentStepMeta, getReferencedObjectDescriptions, getRequiredFields, getResourceDependencies, getSQLStatements, getSQLStatements, getStep, getStepData, getStepIOMeta, getStepMetaInjectionInterface, getSupportedTransformationTypes, getTableFields, getUsedArguments, getUsedDatabaseConnections, getUsedLibraries, getXML, handleStreamSelection, hasChanged, hasRepositoryReferences, isReferencedObjectEnabled, loadReferencedObject, loadXML, loadXML, lookupRepositoryReferences, readRep, readRep, resetStepIoMeta, saveRep, saveRep, searchInfoAndTargetSteps, setChanged, setDefault, setParentStepMeta, supportsErrorHandling
protected boolean stepNrInFilename
protected boolean partNrInFilename
protected boolean dateInFilename
protected boolean timeInFilename
protected String extension
protected String fileName
public String getExtension()
public void setExtension(String extension)
public String getFileName()
public void setFileName(String fileName)
public abstract int getSplitEvery()
public int getSplitEvery(VariableSpace space)
public abstract void setSplitEvery(int splitEvery)
public boolean isFileAsCommand()
public void setFileAsCommand(boolean fileAsCommand)
public boolean isSpecifyingFormat()
public void setSpecifyingFormat(boolean specifyingFormat)
public String getDateTimeFormat()
public void setDateTimeFormat(String dateTimeFormat)
public boolean isTimeInFilename()
public boolean isDateInFilename()
public boolean isPartNrInFilename()
public boolean isStepNrInFilename()
public String getFileCompression()
public void setFileCompression(String fileCompression)
public String[] getFiles(VariableSpace space)
protected String getPartPrefix()
public String buildFilename(VariableSpace space, String stepnr, String partnr, String splitnr, boolean ziparchive)
public String buildFilename(VariableSpace space, String stepnr, String partnr, String splitnr, boolean ziparchive, boolean showSamples)
protected String buildFilename(String realFileName, String realExtension, String stepnr, String partnr, String splitnr, Date date, boolean ziparchive, boolean showSamples, BaseFileOutputMeta meta)
protected String buildFilename(VariableSpace space, String realFileName, String realExtension, String stepnr, String partnr, String splitnr, Date date, boolean ziparchive, boolean showSamples, BaseFileOutputMeta meta)
public String[] getFilePaths(boolean showSamples)
getFilePaths
in class BaseFileMeta
showSamples
- determines whether the paths being returned are dummy samples or the "template" representation.
The samples woulc include things like sample step number, partition number etc (
filename_0_1.txt) , while the non-sample path would include a token (
filename_<step>_<partition>.<extension>)Copyright © 2018 Hitachi Vantara. All rights reserved.