public class Const extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Const.ReleaseType
Release Type
|
Modifier and Type | Field and Description |
---|---|
static int |
ARROW_WIDTH
The default width of an arrow in the Graphical Views
|
static String |
CHEF_LOG_FILE
The base name of the Chef logfile
|
static String |
COPYRIGHT_YEAR
Copyright year
|
static String |
CR
CR: operating systems specific Carriage Return
|
static String |
DEFAULT_CURRENCY_SYMBOL
The default currency symbol
|
static char |
DEFAULT_DECIMAL_SEPARATOR
The default decimal separator .
|
static char |
DEFAULT_GROUPING_SEPARATOR
The default grouping separator , or .
|
static Locale |
DEFAULT_LOCALE
The default locale for the kettle environment (system defined)
|
static String |
DEFAULT_NUMBER_FORMAT
The default number format
|
static String |
DEFAULT_PLUGIN_BASE_FOLDERS
the default comma separated list of base plugin folders.
|
static String |
DOSCR
DOSCR: MS-DOS specific Carriage Return
|
static String |
EMPTY_STRING
An empty ("") String.
|
static int |
ERROR
UI-agnostic flag for warnings
|
static int |
FETCH_SIZE
Fetch size in rows when querying a database
|
static String |
FILE_SEPARATOR
What's the file systems file separator on this operating system?
|
static int |
FORM_MARGIN
The horizontal and vertical margin of a dialog box.
|
static String |
GENERALIZED_DATE_TIME_FORMAT
Generalized date/time format: Wherever dates are used, date and time values are organized from the most to the
least significant.
|
static String |
GENERALIZED_DATE_TIME_FORMAT_MILLIS |
static int |
HISTORY_LINES_FETCH_SIZE
The default fetch size for lines of history.
|
static int |
INFO
UI-agnostic flag for warnings
|
static String[] |
INTERNAL_JOB_VARIABLES
All the internal job variables
|
static String[] |
INTERNAL_TRANS_VARIABLES
All the internal transformation variables
|
static String |
INTERNAL_VARIABLE_CLUSTER_MASTER
Is this transformation running clustered, on the master?
|
static String |
INTERNAL_VARIABLE_CLUSTER_RUN_ID
The internal clustered run ID, unique across a clustered execution, important while doing parallel clustered runs
|
static String |
INTERNAL_VARIABLE_CLUSTER_SIZE
The size of the cluster : number of slaves
|
static String |
INTERNAL_VARIABLE_JOB_FILENAME_DIRECTORY
The job filename directory
|
static String |
INTERNAL_VARIABLE_JOB_FILENAME_NAME
The job filename name
|
static String |
INTERNAL_VARIABLE_JOB_NAME
The job name
|
static String |
INTERNAL_VARIABLE_JOB_REPOSITORY_DIRECTORY
The job directory
|
static String |
INTERNAL_VARIABLE_JOB_RUN_ATTEMPTNR
The job run attempt nr
|
static String |
INTERNAL_VARIABLE_JOB_RUN_ID
The job run ID
|
static String |
INTERNAL_VARIABLE_KETTLE_BUILD_DATE
The build date as an internal variable
|
static String |
INTERNAL_VARIABLE_KETTLE_BUILD_VERSION
The build version as an internal variable
|
static String |
INTERNAL_VARIABLE_KETTLE_VERSION
The version number as an internal variable
|
static String |
INTERNAL_VARIABLE_PREFIX
The prefix that all internal kettle variables should have
|
static String |
INTERNAL_VARIABLE_SLAVE_SERVER_NAME
The slave transformation name
|
static String |
INTERNAL_VARIABLE_SLAVE_SERVER_NUMBER
The slave transformation number
|
static String |
INTERNAL_VARIABLE_STEP_COPYNR
The step copy nr
|
static String |
INTERNAL_VARIABLE_STEP_NAME
The step name
|
static String |
INTERNAL_VARIABLE_STEP_PARTITION_ID
The step partition ID
|
static String |
INTERNAL_VARIABLE_STEP_PARTITION_NR
The step partition number
|
static String |
INTERNAL_VARIABLE_STEP_UNIQUE_COUNT
The size of the cluster : number of slaves
|
static String |
INTERNAL_VARIABLE_STEP_UNIQUE_NUMBER
The slave transformation number
|
static String |
INTERNAL_VARIABLE_TRANSFORMATION_FILENAME_DIRECTORY
The transformation filename directory
|
static String |
INTERNAL_VARIABLE_TRANSFORMATION_FILENAME_NAME
The transformation filename name
|
static String |
INTERNAL_VARIABLE_TRANSFORMATION_NAME
The transformation name
|
static String |
INTERNAL_VARIABLE_TRANSFORMATION_REPOSITORY_DIRECTORY
The transformation directory
|
static String |
JAVA_VERSION
The Java runtime version
|
static String |
JNDI_DIRECTORY
Path to the simple-jndi directory
|
static String |
KETTLE_AGGREGATION_ALL_NULLS_ARE_ZERO |
static String |
KETTLE_AGGREGATION_MIN_NULL_IS_VALUED |
static String |
KETTLE_BATCHING_ROWSET
Set this variable to Y if you want to test a more efficient batching row set.
|
static String |
KETTLE_CARTE_JETTY_ACCEPT_QUEUE_SIZE
A variable to configure jetty option: acceptQueueSize for Carte
|
static String |
KETTLE_CARTE_JETTY_ACCEPTORS
A variable to configure jetty option: acceptors for Carte
|
static String |
KETTLE_CARTE_JETTY_RES_MAX_IDLE_TIME
A variable to configure jetty option: lowResourcesMaxIdleTime for Carte
|
static String |
KETTLE_CARTE_OBJECT_TIMEOUT_MINUTES
This environment variable will set a time-out after which waiting, completed or stopped transformations and jobs
will be automatically cleaned up.
|
static String |
KETTLE_CHANNEL_LOG_DB
The name of the variable that defines the log channel log database by default for all transformations and jobs
|
static String |
KETTLE_CHANNEL_LOG_SCHEMA
The name of the variable that defines the log channel log schema by default for all transformations and jobs
|
static String |
KETTLE_CHANNEL_LOG_TABLE
The name of the variable that defines the log channel log table by default for all transformations and jobs
|
static String |
KETTLE_CHECKPOINT_LOG_DB
The name of the variable that defines the checkpoint log database by default for all jobs
|
static String |
KETTLE_CHECKPOINT_LOG_SCHEMA
The name of the variable that defines the checkpoint log schema by default for all jobs
|
static String |
KETTLE_CHECKPOINT_LOG_TABLE
The name of the variable that defines the checkpoint log table by default for all jobs
|
static String |
KETTLE_COMPATIBILITY_DB_IGNORE_TIMEZONE
System wide flag to ignore timezone while writing date/timestamp value to the database.
|
static String |
KETTLE_COMPATIBILITY_IMPORT_PATH_ADDITION_ON_VARIABLES
System wide flag to use the root path prefix for a directory reference.
|
static String |
KETTLE_COMPATIBILITY_SET_ERROR_ON_SPECIFIC_JOB_ENTRIES
Compatibility settings for setNrErrors
|
static String |
KETTLE_COMPATIBILITY_TEXT_FILE_OUTPUT_APPEND_NO_HEADER
System wide flag to set or not append and header options dependency on Text file output step.
|
static String |
KETTLE_CORE_JOBENTRIES_FILE
The name of the environment variable that will contain the alternative location of the kettle-job-entries.xml file
|
static String |
KETTLE_CORE_SERVLETS_FILE
The name of the environment variable that will contain the alternative location of the kettle-servlets.xml file
|
static String |
KETTLE_CORE_STEPS_FILE
The name of the environment variable that will contain the alternative location of the kettle-steps.xml file
|
static String |
KETTLE_DEFAULT_BIGNUMBER_FORMAT
The name of the variable containing an alternative default bignumber format
|
static String |
KETTLE_DEFAULT_DATE_FORMAT
The name of the variable containing an alternative default date format
|
static String |
KETTLE_DEFAULT_INTEGER_FORMAT
The name of the variable containing an alternative default integer format
|
static String |
KETTLE_DEFAULT_NUMBER_FORMAT
The name of the variable containing an alternative default number format
|
static String |
KETTLE_DEFAULT_TIMESTAMP_FORMAT
The name of the variable containing an alternative default timestamp format
|
static String |
KETTLE_DISABLE_CONSOLE_LOGGING
Set this variable to Y to disable standard Kettle logging to the console.
|
static String |
KETTLE_EMPTY_STRING_DIFFERS_FROM_NULL
System wide flag to drive the evaluation of null in ValueMeta.
|
static String |
KETTLE_JOB_LOG_DB
The name of the variable that defines the log database connection by default for all jobs
|
static String |
KETTLE_JOB_LOG_SCHEMA
The name of the variable that defines the logging schema for all jobs
|
static String |
KETTLE_JOB_LOG_TABLE
The name of the variable that defines the logging table for all jobs
|
static String |
KETTLE_JOBENTRY_LOG_DB
The name of the variable that defines the job entry log database by default for all jobs
|
static String |
KETTLE_JOBENTRY_LOG_SCHEMA
The name of the variable that defines the job entry log schema by default for all jobs
|
static String |
KETTLE_JOBENTRY_LOG_TABLE
The name of the variable that defines the job entry log table by default for all jobs
|
static String |
KETTLE_LENIENT_STRING_TO_NUMBER_CONVERSION
System wide flag to allow non-strict string to number conversion for backward compatibility.
|
static String |
KETTLE_LOG_MARK_MAPPINGS
A variable to configure turning on/off detailed subjects in log.
|
static String |
KETTLE_LOG_SIZE_LIMIT
If you set this environment variable you can limit the log size of all transformations and jobs that don't have the
"log size limit" property set in their respective properties.
|
static String |
KETTLE_LOGGING_PLUGINS_FILE
The name of the environment variable that will contain the alternative location of the kettle-logging-plugins.xml
file
|
static String |
KETTLE_MAX_JOB_ENTRIES_LOGGED
A variable to configure the maximum number of job entry results kept in memory for logging purposes.
|
static String |
KETTLE_MAX_JOB_TRACKER_SIZE
A variable to configure the maximum number of job trackers kept in memory.
|
static String |
KETTLE_MAX_LOG_SIZE_IN_LINES
System wide flag to set the maximum number of log lines that are kept internally by Kettle.
|
static String |
KETTLE_MAX_LOG_TIMEOUT_IN_MINUTES
System wide flag to set the maximum age (in minutes) of a log line while being kept internally by Kettle.
|
static String |
KETTLE_MAX_LOGGING_REGISTRY_SIZE
A variable to configure the maximum number of logging registry entries kept in memory for logging purposes.
|
static String |
KETTLE_METRICS_LOG_DB
The name of the variable that defines the metrics log database by default for all transformations and jobs
|
static String |
KETTLE_METRICS_LOG_SCHEMA
The name of the variable that defines the metrics log schema by default for all transformations and jobs
|
static String |
KETTLE_METRICS_LOG_TABLE
The name of the variable that defines the metrics log table by default for all transformations and jobs
|
static String |
KETTLE_PASSWORD_ENCODER_PLUGIN
Specifies the password encoding plugin to use by ID (Kettle is the default).
|
static String |
KETTLE_PASSWORD_ENCODER_PLUGINS_FILE
The name of the environment variable that will contain the alternative location of the kettle-password-encoder-plugins.xml
file
|
static String |
KETTLE_PLUGIN_CLASSES
Name of the environment variable to specify additional classes to scan for plugin annotations
|
static String |
KETTLE_PLUGIN_PACKAGES
Name of the environment variable to specify additional packaged to scan for plugin annotations (warning: slow!)
|
static String |
KETTLE_PROPERTIES
Name of the kettle parameters file
|
static String |
KETTLE_REDIRECT_STDERR
System wide flag to determine whether standard error will be redirected to Kettle logging facilities.
|
static String |
KETTLE_REDIRECT_STDOUT
System wide flag to determine whether standard out will be redirected to Kettle logging facilities.
|
static String |
KETTLE_ROWSET_GET_TIMEOUT
The name of the variable that optionally contains an alternative rowset get timeout (in ms).
|
static String |
KETTLE_ROWSET_PUT_TIMEOUT
The name of the variable that optionally contains an alternative rowset put timeout (in ms).
|
static String |
KETTLE_SAP_CONNECTION_FACTORY
The name of the system wide variable that can contain the name of the SAP Connection factory for the test button in
the DB dialog.
|
static String |
KETTLE_SAP_CONNECTION_FACTORY_DEFAULT_NAME
The default SAP ERP connection factory
|
static String |
KETTLE_SHARED_OBJECTS
Name of the environment variable to set the location of the shared object file (xml) for transformations and jobs
|
static String |
KETTLE_STEP_LOG_DB
The name of the variable that defines the steps log database by default for all transformations
|
static String |
KETTLE_STEP_LOG_SCHEMA
The name of the variable that defines the steps log schema by default for all transformations
|
static String |
KETTLE_STEP_LOG_TABLE
The name of the variable that defines the steps log table by default for all transformations
|
static String |
KETTLE_STEP_PERFORMANCE_SNAPSHOT_LIMIT
System wide parameter: the maximum number of step performance snapshots to keep in memory.
|
static String |
KETTLE_SYSTEM_HOSTNAME
You can use this variable to speed up hostname lookup.
|
static String |
KETTLE_TRANS_LOG_DB
The name of the variable that defines the log database connection by default for all transformations
|
static String |
KETTLE_TRANS_LOG_SCHEMA
The name of the variable that defines the logging schema for all transformations
|
static String |
KETTLE_TRANS_LOG_TABLE
The name of the variable that defines the logging table for all transformations
|
static String |
KETTLE_TRANS_PAN_JVM_EXIT_CODE
the value the Pan JVM should return on exit.
|
static String |
KETTLE_TRANS_PERFORMANCE_LOG_DB
The name of the variable that defines the transformation performance log schema by default for all transformations
|
static String |
KETTLE_TRANS_PERFORMANCE_LOG_SCHEMA
The name of the variable that defines the transformation performance log database connection by default for all
transformations
|
static String |
KETTLE_TRANS_PERFORMANCE_LOG_TABLE
The name of the variable that defines the transformation performance log table by default for all transformations
|
static String |
KETTLE_TRANS_ROWSET_SIZE
Name of the environment variable that contains the size of the transformation rowset size.
|
static String |
KETTLE_VALUEMETA_PLUGINS_FILE
The name of the environment variable that will contain the alternative location of the kettle-valuemeta-plugins.xml
file
|
static String |
KETTLE_VARIABLES_FILE
The file that documents these variables.
|
static int |
LENGTH
Specifies the length (width) of fields in a number of pixels in dialog boxes.
|
static int |
MARGIN
The margin between the different dialog components & widgets
|
static Date |
MAX_DATE
Default maximum date range...
|
static int |
MAX_FILE_HIST
Max nr.
|
static int |
MAX_LOG_LINE_TIMEOUT_MINUTES
The default log line timeout in minutes : 12 hours
|
static int |
MAX_NR_HISTORY_LINES
The default maximum for the nr of lines in the history views
|
static int |
MAX_NR_LOG_LINES
The default maximum for the nr of lines in the GUI logs
|
static int |
MAX_UNDO
The default undo level for Kettle
|
static int |
MAX_YEAR
The default maximum year in a dimension date range
|
static String |
MENU_LOG_FILE
The base name of the Menu logfile
|
static int |
MIDDLE_PCT
The default percentage of the width of screen where we consider the middle of a dialog.
|
static Date |
MIN_DATE
Default minimum date range...
|
static int |
MIN_YEAR
The default minimum year in a dimension date range
|
static int |
NOTE_MARGIN
The margin between the text of a note and its border.
|
static String |
NULL_BIGNUMBER
Default string representing Null BigNumber values (empty)
|
static String |
NULL_BINARY
Default string representing Null Binary values (empty)
|
static String |
NULL_BOOLEAN
Default string representing Null Boolean values (empty)
|
static String |
NULL_DATE
Default string representing Null Date values (empty)
|
static String |
NULL_INTEGER
Default string representing Null Integer values (empty)
|
static String |
NULL_NONE
Default string representing Null Undefined values (empty)
|
static String |
NULL_NUMBER
Default string representing Null Number values (empty)
|
static String |
NULL_STRING
Default string representing Null String values (empty)
|
static String |
PATH_SEPARATOR
What's the path separator on this operating system?
|
static String |
PENTAHO_METASTORE_FOLDER
The system environment variable indicating where the alternative location for the Pentaho metastore folder is
located.
|
static String |
PENTAHO_METASTORE_NAME
The name of the local client MetaStore
|
static String |
PLUGIN_BASE_FOLDERS_PROP |
static Const.ReleaseType |
RELEASE
The release type of this compilation
|
static int |
RIGHT
Specifies the number of pixels to the right we have to go in dialog boxes.
|
static int |
ROWS_IN_ROWSET
Size of rowset: bigger = faster for large amounts of data
|
static int |
ROWS_UPDATE
print update every ...
|
static int |
SHADOW_SIZE
The default shadow size on the graphical view.
|
static int |
SORT_SIZE
Sort size: how many rows do we sort in memory at once?
|
static String |
SPOON_LOG_FILE
The base name of the Spoon logfile
|
static String |
STRING_JOB_DEFAULT_EXT
The extension of a Kettle job XML file
|
static String[] |
STRING_JOB_FILTER_EXT
The possible extensions a job XML file can have.
|
static String[] |
STRING_TRANS_AND_JOB_FILTER_EXT
The possible extensions a transformation XML file can have.
|
static String |
STRING_TRANS_DEFAULT_EXT
The extension of a Kettle transformation XML file
|
static String[] |
STRING_TRANS_FILTER_EXT
The possible extensions a transformation XML file can have.
|
static int |
SYMBOLSIZE
The size of relationship symbols
|
static int |
TIMEOUT_GET_MILLIS
Sleep time waiting when buffer is empty (the default)
|
static int |
TIMEOUT_PUT_MILLIS
Sleep time waiting when buffer is full (the default)
|
static String |
USER_HOME_DIRECTORY
Deprecated.
Use
getUserHomeDirectory() instead. |
static String |
VERSION
Deprecated.
Use
BuildVersion.getVersion() instead |
static String |
VERSION_COMMENT_EDIT_VERSION
A general edit version comment
|
static String |
VERSION_COMMENT_INITIAL_VERSION
A general initial version comment
|
static int |
WARNING
UI-agnostic flag for warnings
|
static String |
XML_ENCODING
Default we store our information in Unicode UTF-8 character set.
|
static String |
XML_FILE_KETTLE_AUTHENTICATION_PROVIDERS
The XML file that contains the list of native Kettle compression providers (None, ZIP, GZip, etc.)
|
static String |
XML_FILE_KETTLE_COMPRESSION_PROVIDERS
The XML file that contains the list of native Kettle compression providers (None, ZIP, GZip, etc.)
|
static String |
XML_FILE_KETTLE_DATABASE_TYPES
The XML file that contains the list of native Kettle database types (MySQL, Oracle, etc)
|
static String |
XML_FILE_KETTLE_EXTENSION_POINTS
The XML file that contains the list of native extension points (None by default, this is mostly for OEM purposes)
|
static String |
XML_FILE_KETTLE_IMPORT_RULES
The XML file that contains the list of native import rules
|
static String |
XML_FILE_KETTLE_JOB_ENTRIES
The XML file that contains the list of native Kettle job entries
|
static String |
XML_FILE_KETTLE_LOGGING_PLUGINS
The XML file that contains the list of native Kettle logging plugins
|
static String |
XML_FILE_KETTLE_PARTITION_PLUGINS
The XML file that contains the list of native partition plugins
|
static String |
XML_FILE_KETTLE_PASSWORD_ENCODER_PLUGINS
The XML file that contains the list of native Kettle two-way password encoder plugins
|
static String |
XML_FILE_KETTLE_REPOSITORIES
The XML file that contains the list of native Kettle repository types (DB, File, etc)
|
static String |
XML_FILE_KETTLE_SERVLETS
The XML file that contains the list of native Kettle Carte Servlets
|
static String |
XML_FILE_KETTLE_STEPS
The XML file that contains the list of native Kettle steps
|
static String |
XML_FILE_KETTLE_VALUEMETA_PLUGINS
The XML file that contains the list of native Kettle value metadata plugins
|
Constructor and Description |
---|
Const() |
Modifier and Type | Method and Description |
---|---|
static Date |
addTimeToDate(Date input,
String time,
String DateFormat)
Add time to an input date
|
static boolean |
classIsOrExtends(Class<?> clazz,
Class<?> superClass) |
static byte[] |
createByteArray(int size)
Utility class for use in JavaScript to create a new byte array.
|
static String |
createFilename(String name)
Create a valid filename using a name We remove all special characters, spaces, etc.
|
static String |
createFilename(String directory,
String name,
String extension) |
static String |
createName(String filename) |
static ClassLoader |
createNewClassLoader() |
static int |
decodeTime(String s,
String DateFormat) |
static String |
escapeHtml(String content)
Escape HTML content.
|
static String |
escapeSQL(String content)
Escape SQL content.
|
static String |
escapeXml(String content)
Mask XML content.
|
static String |
escapeXML(String content)
Escape XML content.
|
static String |
filenameOnly(String sFullPath)
Returns the pure filename of a filename with full path.
|
static String[] |
GetAvailableFontNames() |
static String |
getClassicStackTrace(Throwable e) |
static String[] |
getConversionFormats() |
static String |
getCustomStackTrace(Throwable aThrowable) |
static String[] |
getDateFormats()
Returning the localized date conversion formats.
|
static String |
getDigitsOnly(String input)
Return digits only.
|
static String |
getDIHomeDirectory()
Returns the value of DI_HOME.
|
static String[] |
getDistinctStrings(String[] strings)
Sorts the array of Strings, determines the uniquely occurring strings.
|
static String[] |
getEmptyPaddedStrings()
Create an array of Strings consisting of spaces.
|
static String |
getEnvironmentVariable(String variable,
String deflt)
Retrieves the content of an environment variable
|
static String |
getHostname()
Determine the hostname of the machine Kettle is running on
|
static String |
getHostnameReal()
Determine the hostname of the machine Kettle is running on
|
static String |
getIPAddress()
Determins the IP address of the machine Kettle is running on.
|
static String |
getIPAddress(String networkInterfaceName)
Get the primary IP address tied to a network interface (excluding loop-back etc)
|
static String[] |
getJobFilterNames() |
static String |
getKettleCartePasswordFile()
Returns the path to the Kettle Carte password file in the home directory:
|
static String |
getKettleDirectory()
Determines the Kettle directory in the user's home directory.
|
static String |
getKettleLocalCartePasswordFile()
Returns the path to the Kettle local (current directory) Carte password file:
|
static String |
getKettleLocalRepositoriesFile()
Returns the path to the Kettle local (current directory) repositories XML file.
|
static String |
getKettlePropertiesFileHeader() |
static String |
getKettleUserRepositoriesFile()
Returns the full path to the Kettle repositories XML file.
|
static String |
getMACAddress()
Tries to determine the MAC address of the machine Kettle is running on.
|
static String[] |
getNumberFormats()
Returning the localized number conversion formats.
|
static int |
getOccurenceString(String string,
String searchFor)
Get the number of occurances of searchFor in string.
|
static int |
getOcuranceString(String string,
String searchFor)
Get the number of occurances of searchFor in string.
|
static String |
getOS()
determine the OS name
|
static int |
getPercentageFreeMemory()
Return the percentage of free memory for this JVM.
|
static String |
getQuoteCharByOS()
Determine the quoting character depending on the OS.
|
static String |
getSharedObjectsFile()
Determines the location of the shared objects file
|
static String |
getStackTracker(Throwable e)
Returns a string of the stack trace of the specified exception
|
static String[] |
getTips()
Returning the internationalized tips of the days.
|
static String[] |
getTransformationAndJobFilterNames() |
static String[] |
getTransformationFilterNames() |
static String |
getUserHomeDirectory()
Looks up the user's home directory (or KETTLE_HOME) for every invocation.
|
static int |
indexOfString(String lookup,
List<String> list)
Search for a string in a list of strings and return the index.
|
static int |
indexOfString(String lookup,
String[] array)
Search for a string in an array of strings and return the index.
|
static int[] |
indexsOfFoundStrings(String[] lookup,
String[] array)
Search for strings in an array of strings and return the indexes.
|
static int[] |
indexsOfStrings(String[] lookup,
String[] array)
Search for strings in an array of strings and return the indexes.
|
static String |
initCap(String string)
Sets the first character of each word in upper-case.
|
static boolean |
isEmpty(List<?> list)
Check if the list supplied is empty.
|
static boolean |
isEmpty(Object[] array)
Check if the array supplied is empty.
|
static boolean |
isEmpty(String string)
Check if the string supplied is empty.
|
static boolean |
isEmpty(String[] strings)
Check if the string array supplied is empty.
|
static boolean |
isEmpty(StringBuffer string)
Check if the stringBuffer supplied is empty.
|
static boolean |
isLinux() |
static boolean |
isOSX() |
static boolean |
isSpace(char c)
Determines whether or not a character is considered a space.
|
static boolean |
isWindows() |
static String |
Lpad(String valueToPad,
String filler,
int size) |
static String |
ltrim(String source)
Left trim: remove spaces to the left of a String.
|
static long |
nanoTime()
Return the current time as nano-seconds.
|
static int |
nrSpacesAfter(String field)
Count the number of spaces to the right of a text.
|
static int |
nrSpacesBefore(String field)
Count the number of spaces to the left of a text.
|
static String |
nullToEmpty(String source)
Return empty string "" in case the given parameter is null, otherwise return the same value.
|
static String |
NVL(String source,
String def)
Implements Oracle style NVL function
|
static boolean |
onlySpaces(String str)
Checks whether or not a String consists only of spaces.
|
static String |
optionallyQuoteStringByOS(String string)
Quote a string depending on the OS.
|
static String |
protectXMLCDATA(String content)
Mask XML content.
|
static String |
removeCR(String in)
Remove CR / LF from String
|
static String |
removeCRLF(String in)
Remove CR / LF from String
|
static String |
removeDigits(String input)
Return non digits only.
|
static String |
removeLF(String in)
Remove CR / LF from String
|
static String |
removeTAB(String in)
Remove Horizontan Tab from String
|
static Date |
removeTimeFromDate(Date input)
Remove time from a date.
|
static void |
repl(StringBuffer str,
String code,
String repl)
Alternate faster version of string replace using a stringbuffer as input.
|
static String |
replace(String string,
String repl,
String with)
Replace values in a String with another.
|
static String |
replEnv(String string)
Deprecated.
use StringUtil.environmentSubstitute(): handles both Windows and unix conventions
|
static String[] |
replEnv(String[] string)
Deprecated.
please use StringUtil.environmentSubstitute now.
|
static String |
rightPad(StringBuffer ret,
int limit)
Right pad a StringBuffer: adds spaces to a string until a certain length.
|
static String |
rightPad(String ret,
int limit)
Right pad a string: adds spaces to a string until a certain length.
|
static double |
round(double f,
int places)
rounds double f to any number of places after decimal point Does arithmetic using BigDecimal class to avoid integer
overflow while rounding
|
static double |
round(double f,
int places,
int roundingMode)
rounds double f to any number of places after decimal point Does arithmetic using BigDecimal class to avoid integer
overflow while rounding
|
static String |
Rpad(String valueToPad,
String filler,
int size) |
static String |
rtrim(String source)
Right trim: remove spaces to the right of a string
|
static String |
safeAppendDirectory(String dir,
String file)
implemented to help prevent errors in matching up pluggable LAF directories and paths/files eliminating malformed
URLs - duplicate file separators or missing file separators.
|
static String[] |
sortStrings(String[] input)
Sort the strings of an array in alphabetical order.
|
static String[] |
splitPath(String path,
String separator)
Convert strings separated by a string into an array of strings.
|
static String[] |
splitString(String string,
char separator)
Convert strings separated by a character into an array of strings.
|
static String[] |
splitString(String string,
char separator,
boolean escape)
Convert strings separated by a character into an array of strings.
|
static String[] |
splitString(String string,
String separator)
Convert strings separated by a string into an array of strings.
|
static String[] |
splitString(String stringToSplit,
String delimiter,
String enclosure)
Split the given string using the given delimiter and enclosure strings.
|
static Date |
toDate(String str,
Date def)
Convert a String into a date.
|
static double |
toDouble(String str,
double def)
Convert a String into a double.
|
static int |
toInt(String str,
int def)
Convert a String into an integer.
|
static long |
toLong(String str,
long def)
Convert a String into a long integer.
|
static String |
trim(String str)
Trims a string: removes the leading and trailing spaces of a String.
|
static String |
trimToType(String string,
int trimType)
Return the input string trimmed as specified.
|
static String |
unEscapeHtml(String content)
UnEscape HTML content.
|
static String |
unEscapeXml(String content)
UnEscape XML content.
|
@Deprecated public static final String VERSION
BuildVersion.getVersion()
insteadpublic static final String COPYRIGHT_YEAR
public static final int TIMEOUT_GET_MILLIS
public static final int TIMEOUT_PUT_MILLIS
public static final int ROWS_UPDATE
public static final int ROWS_IN_ROWSET
public static final int FETCH_SIZE
public static final int SORT_SIZE
public static final String FILE_SEPARATOR
public static final String PATH_SEPARATOR
public static final String CR
public static final String DOSCR
public static final String EMPTY_STRING
public static final String JAVA_VERSION
@Deprecated public static final String USER_HOME_DIRECTORY
getUserHomeDirectory()
instead.public static String JNDI_DIRECTORY
public static final String PLUGIN_BASE_FOLDERS_PROP
public static final String DEFAULT_PLUGIN_BASE_FOLDERS
public static final Date MIN_DATE
public static final Date MAX_DATE
public static final int MIN_YEAR
public static final int MAX_YEAR
public static final int RIGHT
public static final int LENGTH
public static final int MARGIN
public static final int MIDDLE_PCT
public static final int ARROW_WIDTH
public static final int FORM_MARGIN
public static final int SHADOW_SIZE
public static final int SYMBOLSIZE
public static final int MAX_FILE_HIST
public static final Locale DEFAULT_LOCALE
public static final char DEFAULT_DECIMAL_SEPARATOR
public static final char DEFAULT_GROUPING_SEPARATOR
public static final String DEFAULT_CURRENCY_SYMBOL
public static final String DEFAULT_NUMBER_FORMAT
public static final String NULL_STRING
public static final String NULL_NUMBER
public static final String NULL_DATE
public static final String NULL_BIGNUMBER
public static final String NULL_BOOLEAN
public static final String NULL_INTEGER
public static final String NULL_BINARY
public static final String NULL_NONE
public static final String CHEF_LOG_FILE
public static final String SPOON_LOG_FILE
public static final String MENU_LOG_FILE
public static final String GENERALIZED_DATE_TIME_FORMAT
public static final String GENERALIZED_DATE_TIME_FORMAT_MILLIS
public static final String XML_ENCODING
public static final String[] STRING_TRANS_AND_JOB_FILTER_EXT
public static final String STRING_TRANS_DEFAULT_EXT
public static final String[] STRING_TRANS_FILTER_EXT
public static final String STRING_JOB_DEFAULT_EXT
public static final String[] STRING_JOB_FILTER_EXT
public static final String KETTLE_PROPERTIES
public static final String INTERNAL_VARIABLE_PREFIX
public static final String INTERNAL_VARIABLE_KETTLE_VERSION
public static final String INTERNAL_VARIABLE_KETTLE_BUILD_VERSION
public static final String INTERNAL_VARIABLE_KETTLE_BUILD_DATE
public static final String INTERNAL_VARIABLE_JOB_FILENAME_DIRECTORY
public static final String INTERNAL_VARIABLE_JOB_FILENAME_NAME
public static final String INTERNAL_VARIABLE_JOB_NAME
public static final String INTERNAL_VARIABLE_JOB_REPOSITORY_DIRECTORY
public static final String INTERNAL_VARIABLE_JOB_RUN_ID
public static final String INTERNAL_VARIABLE_JOB_RUN_ATTEMPTNR
public static final String[] INTERNAL_TRANS_VARIABLES
public static final String[] INTERNAL_JOB_VARIABLES
public static final String INTERNAL_VARIABLE_TRANSFORMATION_FILENAME_DIRECTORY
public static final String INTERNAL_VARIABLE_TRANSFORMATION_FILENAME_NAME
public static final String INTERNAL_VARIABLE_TRANSFORMATION_NAME
public static final String INTERNAL_VARIABLE_TRANSFORMATION_REPOSITORY_DIRECTORY
public static final String INTERNAL_VARIABLE_STEP_PARTITION_ID
public static final String INTERNAL_VARIABLE_STEP_PARTITION_NR
public static final String INTERNAL_VARIABLE_SLAVE_SERVER_NUMBER
public static final String INTERNAL_VARIABLE_SLAVE_SERVER_NAME
public static final String INTERNAL_VARIABLE_CLUSTER_SIZE
public static final String INTERNAL_VARIABLE_STEP_UNIQUE_NUMBER
public static final String INTERNAL_VARIABLE_CLUSTER_MASTER
public static final String INTERNAL_VARIABLE_CLUSTER_RUN_ID
public static final String INTERNAL_VARIABLE_STEP_UNIQUE_COUNT
public static final String INTERNAL_VARIABLE_STEP_NAME
public static final String INTERNAL_VARIABLE_STEP_COPYNR
public static final int MAX_NR_LOG_LINES
public static final int MAX_NR_HISTORY_LINES
public static final int HISTORY_LINES_FETCH_SIZE
public static final int MAX_LOG_LINE_TIMEOUT_MINUTES
public static final int WARNING
public static final int ERROR
public static final int INFO
public static final int NOTE_MARGIN
public static final int MAX_UNDO
public static final String KETTLE_VARIABLES_FILE
public static final String KETTLE_LOG_SIZE_LIMIT
public static final String KETTLE_TRANS_LOG_DB
public static final String KETTLE_TRANS_LOG_SCHEMA
public static final String KETTLE_TRANS_LOG_TABLE
public static final String KETTLE_JOB_LOG_DB
public static final String KETTLE_JOB_LOG_SCHEMA
public static final String KETTLE_JOB_LOG_TABLE
public static final String KETTLE_TRANS_PERFORMANCE_LOG_DB
public static final String KETTLE_TRANS_PERFORMANCE_LOG_SCHEMA
public static final String KETTLE_TRANS_PERFORMANCE_LOG_TABLE
public static final String KETTLE_JOBENTRY_LOG_DB
public static final String KETTLE_JOBENTRY_LOG_SCHEMA
public static final String KETTLE_JOBENTRY_LOG_TABLE
public static final String KETTLE_STEP_LOG_DB
public static final String KETTLE_STEP_LOG_SCHEMA
public static final String KETTLE_STEP_LOG_TABLE
public static final String KETTLE_CHANNEL_LOG_DB
public static final String KETTLE_CHANNEL_LOG_SCHEMA
public static final String KETTLE_CHANNEL_LOG_TABLE
public static final String KETTLE_METRICS_LOG_DB
public static final String KETTLE_METRICS_LOG_SCHEMA
public static final String KETTLE_METRICS_LOG_TABLE
public static final String KETTLE_CHECKPOINT_LOG_DB
public static final String KETTLE_CHECKPOINT_LOG_SCHEMA
public static final String KETTLE_CHECKPOINT_LOG_TABLE
public static final String KETTLE_SHARED_OBJECTS
public static final String KETTLE_EMPTY_STRING_DIFFERS_FROM_NULL
public static final String KETTLE_LENIENT_STRING_TO_NUMBER_CONVERSION
public static final String KETTLE_COMPATIBILITY_DB_IGNORE_TIMEZONE
public static final String KETTLE_COMPATIBILITY_IMPORT_PATH_ADDITION_ON_VARIABLES
public static final String KETTLE_COMPATIBILITY_TEXT_FILE_OUTPUT_APPEND_NO_HEADER
public static final String KETTLE_SYSTEM_HOSTNAME
public static final String KETTLE_MAX_LOG_SIZE_IN_LINES
public static final String KETTLE_MAX_LOG_TIMEOUT_IN_MINUTES
public static final String KETTLE_REDIRECT_STDERR
public static final String KETTLE_REDIRECT_STDOUT
public static final String KETTLE_CARTE_OBJECT_TIMEOUT_MINUTES
public static final String KETTLE_STEP_PERFORMANCE_SNAPSHOT_LIMIT
public static final String KETTLE_MAX_JOB_TRACKER_SIZE
public static final String KETTLE_MAX_JOB_ENTRIES_LOGGED
public static final String KETTLE_MAX_LOGGING_REGISTRY_SIZE
public static final String KETTLE_SAP_CONNECTION_FACTORY
public static final String KETTLE_SAP_CONNECTION_FACTORY_DEFAULT_NAME
public static final String KETTLE_PLUGIN_CLASSES
public static final String KETTLE_PLUGIN_PACKAGES
public static final String KETTLE_TRANS_ROWSET_SIZE
public static final String VERSION_COMMENT_INITIAL_VERSION
public static final String VERSION_COMMENT_EDIT_VERSION
public static final String XML_FILE_KETTLE_STEPS
public static final String KETTLE_CORE_STEPS_FILE
public static final String XML_FILE_KETTLE_PARTITION_PLUGINS
public static final String KETTLE_CORE_JOBENTRIES_FILE
public static final String XML_FILE_KETTLE_SERVLETS
public static final String XML_FILE_KETTLE_VALUEMETA_PLUGINS
public static final String XML_FILE_KETTLE_PASSWORD_ENCODER_PLUGINS
public static final String KETTLE_VALUEMETA_PLUGINS_FILE
public static final String KETTLE_PASSWORD_ENCODER_PLUGIN
public static final String KETTLE_PASSWORD_ENCODER_PLUGINS_FILE
public static final String XML_FILE_KETTLE_LOGGING_PLUGINS
public static final String KETTLE_LOGGING_PLUGINS_FILE
public static final String KETTLE_CORE_SERVLETS_FILE
public static final String KETTLE_ROWSET_GET_TIMEOUT
public static final String KETTLE_ROWSET_PUT_TIMEOUT
public static final String KETTLE_BATCHING_ROWSET
public static final String KETTLE_DISABLE_CONSOLE_LOGGING
public static final String XML_FILE_KETTLE_JOB_ENTRIES
public static final String XML_FILE_KETTLE_REPOSITORIES
public static final String XML_FILE_KETTLE_DATABASE_TYPES
public static final String XML_FILE_KETTLE_COMPRESSION_PROVIDERS
public static final String XML_FILE_KETTLE_AUTHENTICATION_PROVIDERS
public static final String XML_FILE_KETTLE_EXTENSION_POINTS
public static final String KETTLE_TRANS_PAN_JVM_EXIT_CODE
public static final String KETTLE_DEFAULT_NUMBER_FORMAT
public static final String KETTLE_DEFAULT_BIGNUMBER_FORMAT
public static final String KETTLE_DEFAULT_INTEGER_FORMAT
public static final String KETTLE_DEFAULT_DATE_FORMAT
public static final String KETTLE_AGGREGATION_MIN_NULL_IS_VALUED
public static final String KETTLE_AGGREGATION_ALL_NULLS_ARE_ZERO
public static final String KETTLE_DEFAULT_TIMESTAMP_FORMAT
public static final String KETTLE_COMPATIBILITY_SET_ERROR_ON_SPECIFIC_JOB_ENTRIES
public static final String XML_FILE_KETTLE_IMPORT_RULES
public static final Const.ReleaseType RELEASE
public static final String PENTAHO_METASTORE_FOLDER
public static final String PENTAHO_METASTORE_NAME
public static final String KETTLE_LOG_MARK_MAPPINGS
public static final String KETTLE_CARTE_JETTY_ACCEPTORS
public static final String KETTLE_CARTE_JETTY_ACCEPT_QUEUE_SIZE
public static final String KETTLE_CARTE_JETTY_RES_MAX_IDLE_TIME
public static final double round(double f, int places)
f
- The value to roundplaces
- The number of decimal placespublic static final double round(double f, int places, int roundingMode)
f
- The value to roundplaces
- The number of decimal placesroundingMode
- The mode for rounding, e.g. java.math.BigDecimal.ROUND_HALF_EVENpublic static final int toInt(String str, int def)
str
- The String to convert to an integerdef
- The default valuepublic static final long toLong(String str, long def)
str
- The String to convert to a long integerdef
- The default valuepublic static final double toDouble(String str, double def)
str
- The String to convert to a doubledef
- The default valuepublic static final Date toDate(String str, Date def)
yyyy/MM/dd HH:mm:ss.SSS
. If the conversion fails,
assign a default value.str
- The String to convert into a Datedef
- The default valuepublic static final boolean isSpace(char c)
c
- The character to verify if it is a space.public static String ltrim(String source)
source
- The String to left trimpublic static String rtrim(String source)
source
- The string to right trimpublic static final String trim(String str)
str
- The string to trimpublic static final String rightPad(String ret, int limit)
ret
- The string to padlimit
- The desired length of the padded string.public static final String rightPad(StringBuffer ret, int limit)
ret
- The StringBuffer to padlimit
- The desired length of the padded string.public static final String replace(String string, String repl, String with)
string
- The original String.repl
- The text to replacewith
- The new text bitpublic static void repl(StringBuffer str, String code, String repl)
str
- The string where we want to replace incode
- The code to search forrepl
- The replacement string for codepublic static final int nrSpacesBefore(String field)
field
- The text to examinepublic static final int nrSpacesAfter(String field)
field
- The text to examinepublic static final boolean onlySpaces(String str)
str
- The string to checkpublic static final String getOS()
public static String getQuoteCharByOS()
public static String optionallyQuoteStringByOS(String string)
public static final boolean isWindows()
public static final boolean isLinux()
public static final boolean isOSX()
public static final String getHostname()
public static final String getHostnameReal()
public static final String getIPAddress() throws Exception
Exception
public static final String getIPAddress(String networkInterfaceName) throws SocketException
networkInterfaceName
- the name of the network interface to interrogateSocketException
- in case of a security or network errorpublic static final String getMACAddress() throws Exception
Exception
public static final String getUserHomeDirectory()
KETTLE_HOME
if set.public static final String getKettleDirectory()
public static final String getDIHomeDirectory()
public static final String getSharedObjectsFile()
public static final String getKettleLocalRepositoriesFile()
public static final String getKettleUserRepositoriesFile()
public static final String getKettleLocalCartePasswordFile()
./pwd/kettle.pwd
public static final String getKettleCartePasswordFile()
$KETTLE_HOME/.kettle/kettle.pwd
public static String getEnvironmentVariable(String variable, String deflt)
variable
- The name of the environment variabledeflt
- The default value in case no value was found@Deprecated public static final String replEnv(String string)
string
- The source string where text is going to be replaced.@Deprecated public static final String[] replEnv(String[] string)
See also: replEnv(String string)
string
- The array of strings that wants its variables to be replaced.public static final String NVL(String source, String def)
source
- The source argumentdef
- The default value in case source is null or the length of the string is 0public static final String nullToEmpty(String source)
source
- The source value to check for null.public static final int indexOfString(String lookup, String[] array)
lookup
- The string to search forarray
- The array of strings to look inpublic static final int[] indexsOfStrings(String[] lookup, String[] array)
lookup
- The strings to search forarray
- The array of strings to look inpublic static final int[] indexsOfFoundStrings(String[] lookup, String[] array)
lookup
- The strings to search forarray
- The array of strings to look inpublic static final int indexOfString(String lookup, List<String> list)
lookup
- The string to search forlist
- The ArrayList of strings to look inpublic static final String[] sortStrings(String[] input)
input
- The array of strings to sort.public static final String[] splitString(String string, String separator)
Example: a;b;c;d ==> new String[] { a, b, c, d }
NOTE: this differs from String.split() in a way that the built-in method uses regular expressions and this one does not.
string
- The string to splitseparator
- The separator used.public static final String[] splitString(String string, char separator)
Example: a;b;c;d == new String[] { a, b, c, d }
string
- The string to splitseparator
- The separator used.public static final String[] splitString(String string, char separator, boolean escape)
Example: a;b;c;d == new String[] { a, b, c, d }
string
- The string to splitseparator
- The separator used.escape
- in case the separator can be escaped (\;) The escape characters are NOT removed!public static final String[] splitPath(String path, String separator)
Example /a/b/c --> new String[] { a, b, c }
path
- The string to splitseparator
- The separator used.public static String[] splitString(String stringToSplit, String delimiter, String enclosure)
stringToSplit
- the String to splitdelimiter
- the delimiter stringenclosure
- the enclosure stringpublic static final String[] getDistinctStrings(String[] strings)
strings
- the array that you want to do a distinct onpublic static final String getStackTracker(Throwable e)
public static final boolean isEmpty(String string)
string
- The string to checkpublic static final boolean isEmpty(StringBuffer string)
string
- The stringBuffer to checkpublic static final boolean isEmpty(String[] strings)
strings
- The string array to checkpublic static final boolean isEmpty(Object[] array)
array
- The array to checkpublic static final boolean isEmpty(List<?> list)
list
- the list to checkpublic static final ClassLoader createNewClassLoader() throws KettleException
KettleException
public static final byte[] createByteArray(int size)
public static final String initCap(String string)
string
- The strings to convert to initcappublic static final String createFilename(String name)
name
- The name to use as a base for the filenamepublic static final String createFilename(String directory, String name, String extension)
public static String filenameOnly(String sFullPath)
Returns the pure filename of a filename with full path. E.g. if passed parameter is
/opt/tomcat/logs/catalina.out
this method returns catalina.out
. The method works with the
Environment variable System.getProperty("file.separator"), so on linux/Unix it will check for the last
occurrence of a frontslash, on windows for the last occurrence of a backslash.
To make this OS independent, the method could check for the last occurrence of a frontslash and backslash and use the higher value of both. Should work, since these characters aren't allowed in filenames on neither OS types (or said differently: Neither linux nor windows can carry frontslashes OR backslashes in filenames). Just a suggestion of an improvement ...
sFullPath
- public static String[] getTips()
public static String[] getDateFormats()
public static String[] getNumberFormats()
public static String[] getConversionFormats()
public static String[] getTransformationAndJobFilterNames()
public static String[] getTransformationFilterNames()
public static String[] getJobFilterNames()
public static long nanoTime()
public static String trimToType(String string, int trimType)
string
- String to be trimmedtrimType
- Type of trimmingpublic static String safeAppendDirectory(String dir, String file)
dir
- file
- public static String[] getEmptyPaddedStrings()
public static final int getPercentageFreeMemory()
public static String removeDigits(String input)
public static String getDigitsOnly(String input)
public static Date removeTimeFromDate(Date input)
public static String escapeXML(String content)
content
- contentpublic static String escapeHtml(String content)
content
- contentpublic static String unEscapeHtml(String content)
content
- contentpublic static String unEscapeXml(String content)
content
- contentpublic static String escapeSQL(String content)
content
- contentpublic static String removeCRLF(String in)
in
- inputpublic static String removeCR(String in)
in
- inputpublic static String removeLF(String in)
in
- inputpublic static String removeTAB(String in)
in
- inputpublic static Date addTimeToDate(Date input, String time, String DateFormat) throws Exception
input
- the datetime
- the time to add (in string)DateFormat
- the time formatException
public static int decodeTime(String s, String DateFormat) throws Exception
Exception
public static int getOccurenceString(String string, String searchFor)
string
- String to be searchedsearchFor
- to be counted stringpublic static String[] GetAvailableFontNames()
public static String getKettlePropertiesFileHeader()
public static String protectXMLCDATA(String content)
content
- contentpublic static int getOcuranceString(String string, String searchFor)
string
- String to be searchedsearchFor
- to be counted stringpublic static String escapeXml(String content)
content
- content