congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JobMeta.compare
Code IndexAdd Tabnine to your IDE (free)

How to use
compare
method
in
org.pentaho.di.job.JobMeta

Best Java code snippets using org.pentaho.di.job.JobMeta.compare (Showing top 2 results out of 315)

origin: pentaho/pentaho-kettle

/**
 * Compares this job's meta-data to the specified job's meta-data. This method simply calls compare(this, o)
 *
 * @param o the o
 * @return the int
 * @see #compare(JobMeta, JobMeta)
 * @see java.lang.Comparable#compareTo(java.lang.Object)
 */
public int compareTo( JobMeta o ) {
 return compare( this, o );
}
origin: pentaho/pentaho-kettle

/**
 * Checks whether this job's meta-data object is equal to the specified object. If the specified object is not an
 * instance of JobMeta, false is returned. Otherwise the method returns whether a call to compare() indicates equality
 * (i.e. compare(this, (JobMeta)obj)==0).
 *
 * @param obj the obj
 * @return true, if successful
 * @see #compare(JobMeta, JobMeta)
 * @see java.lang.Object#equals(java.lang.Object)
 */
public boolean equals( Object obj ) {
 if ( !( obj instanceof JobMeta ) ) {
  return false;
 }
 return compare( this, (JobMeta) obj ) == 0;
}
org.pentaho.di.jobJobMetacompare

Javadoc

Compares two job on name, filename, repository directory, etc. The comparison algorithm is as follows:
  1. The first job's filename is checked first; if it has none, the job comes from a repository. If the second job does not come from a repository, -1 is returned.
  2. If the jobs are both from a repository, the jobs' names are compared. If the first job has no name and the second one does, a -1 is returned. If the opposite is true, a 1 is returned.
  3. If they both have names they are compared as strings. If the result is non-zero it is returned. Otherwise the repository directories are compared using the same technique of checking empty values and then performing a string comparison, returning any non-zero result.
  4. If the names and directories are equal, the object revision strings are compared using the same technique of checking empty values and then performing a string comparison, this time ultimately returning the result of the string compare.
  5. If the first job does not come from a repository and the second one does, a 1 is returned. Otherwise the job names and filenames are subsequently compared using the same technique of checking empty values and then performing a string comparison, ultimately returning the result of the filename string comparison.

Popular methods of JobMeta

  • environmentSubstitute
  • <init>
    Create a new JobMeta object by loading it from a a DOM node.
  • getName
  • findDatabase
  • getDatabases
  • getJobCopies
    Gets the job copies.
  • getParameterDefault
  • getXML
  • setName
  • addDatabase
  • addJobEntry
    Adds the job entry.
  • addJobHop
    Adds the job hop.
  • addJobEntry,
  • addJobHop,
  • addNote,
  • addParameterDefinition,
  • clearChanged,
  • findJobEntry,
  • getCreatedDate,
  • getCreatedUser,
  • getDatabase,
  • getExtendedDescription

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now