当前位置: 首页>>代码示例>>Java>>正文


Java RowMetaAndData.getBoolean方法代码示例

本文整理汇总了Java中org.pentaho.di.core.RowMetaAndData.getBoolean方法的典型用法代码示例。如果您正苦于以下问题:Java RowMetaAndData.getBoolean方法的具体用法?Java RowMetaAndData.getBoolean怎么用?Java RowMetaAndData.getBoolean使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.pentaho.di.core.RowMetaAndData的用法示例。


在下文中一共展示了RowMetaAndData.getBoolean方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: JobHopMeta

import org.pentaho.di.core.RowMetaAndData; //导入方法依赖的package包/类
public JobHopMeta(Repository rep, long id_job_hop, JobMeta job, List<JobEntryCopy> jobcopies) throws KettleException
{
	try
	{
		long id_jobentry_copy_from;
		long id_jobentry_copy_to;
		
		RowMetaAndData r = rep.getJobHop(id_job_hop);
		if (r!=null)
		{
			id_jobentry_copy_from  =  r.getInteger("ID_JOBENTRY_COPY_FROM", -1L);
			id_jobentry_copy_to    =  r.getInteger("ID_JOBENTRY_COPY_TO", -1L);
			enabled                =  r.getBoolean("ENABLED", true);
			evaluation             =  r.getBoolean("EVALUATION", true);
			unconditional          =  r.getBoolean("UNCONDITIONAL", !evaluation);
			
			from_entry = JobMeta.findJobEntryCopy(jobcopies, id_jobentry_copy_from);
			to_entry = JobMeta.findJobEntryCopy(jobcopies, id_jobentry_copy_to);
		}
	}
	catch(KettleDatabaseException dbe)
	{
		throw new KettleException(Messages.getString("JobHopMeta.Exception.UnableToLoadHopInfoRep",""+id_job_hop) , dbe);
		
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:27,代码来源:JobHopMeta.java

示例2: PartitionSchema

import org.pentaho.di.core.RowMetaAndData; //导入方法依赖的package包/类
public PartitionSchema(Repository rep, long id_partition_schema) throws KettleException
{
	this();
       
	setId(id_partition_schema);
       
	RowMetaAndData row = rep.getPartitionSchema(id_partition_schema);
       
	name = row.getString("NAME", null);
       
	long[] pids = rep.getPartitionIDs(id_partition_schema);
	partitionIDs = new ArrayList<String>();
		for (int i=0;i<pids.length;i++)
		{
			partitionIDs.add( rep.getPartition(pids[i]).getString("PARTITION_ID", null) );
		}
       
	dynamicallyDefined = row.getBoolean("DYNAMIC_DEFINITION", false);
	numberOfPartitionsPerSlave = row.getString("PARTITIONS_PER_SLAVE", null);
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:21,代码来源:PartitionSchema.java

示例3: SlaveServer

import org.pentaho.di.core.RowMetaAndData; //导入方法依赖的package包/类
public SlaveServer(Repository rep, long id_slave_server) throws KettleException
{
    this();
    
    setId(id_slave_server);
    
    RowMetaAndData row = rep.getSlaveServer(id_slave_server);
    if (row==null)
    {
        throw new KettleDatabaseException(Messages.getString("SlaveServer.SlaveCouldNotBeFound", Long.toString(id_slave_server))); //$NON-NLS-1$
    }
    
    name          = row.getString(Repository.FIELD_SLAVE_NAME, null); //$NON-NLS-1$
    hostname      = row.getString(Repository.FIELD_SLAVE_HOST_NAME, null); //$NON-NLS-1$
    port          = row.getString(Repository.FIELD_SLAVE_PORT, null); //$NON-NLS-1$
    username      = row.getString(Repository.FIELD_SLAVE_USERNAME, null); //$NON-NLS-1$
    password      = row.getString(Repository.FIELD_SLAVE_PASSWORD, null); //$NON-NLS-1$
    proxyHostname = row.getString(Repository.FIELD_SLAVE_PROXY_HOST_NAME, null); //$NON-NLS-1$
    proxyPort     = row.getString(Repository.FIELD_SLAVE_PROXY_PORT, null); //$NON-NLS-1$
    nonProxyHosts = row.getString(Repository.FIELD_SLAVE_NON_PROXY_HOSTS, null); //$NON-NLS-1$
    master        = row.getBoolean(Repository.FIELD_SLAVE_MASTER, false); //$NON-NLS-1$
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:23,代码来源:SlaveServer.java

示例4: ClusterSchema

import org.pentaho.di.core.RowMetaAndData; //导入方法依赖的package包/类
public ClusterSchema(Repository rep, long id_cluster_schema, List<SlaveServer> slaveServers) throws KettleException
{
    this();
    
    setId(id_cluster_schema);
    
    RowMetaAndData row = rep.getClusterSchema(id_cluster_schema);
    
    name = row.getString(Repository.FIELD_CLUSTER_NAME, null); //$NON-NLS-1$
    basePort = row.getString(Repository.FIELD_CLUSTER_BASE_PORT, null); //$NON-NLS-1$
    socketsBufferSize = row.getString(Repository.FIELD_CLUSTER_SOCKETS_BUFFER_SIZE, null); //$NON-NLS-1$
    socketsFlushInterval = row.getString(Repository.FIELD_CLUSTER_SOCKETS_FLUSH_INTERVAL, null); //$NON-NLS-1$
    socketsCompressed = row.getBoolean(Repository.FIELD_CLUSTER_SOCKETS_COMPRESSED, true); //$NON-NLS-1$
    dynamic = row.getBoolean(Repository.FIELD_CLUSTER_DYNAMIC, true); //$NON-NLS-1$
    
    long[] pids = rep.getSlaveIDs(id_cluster_schema);
    for (int i=0;i<pids.length;i++)
    {
        SlaveServer slaveServer = new SlaveServer(rep, pids[i]);
        SlaveServer reference = SlaveServer.findSlaveServer(slaveServers, slaveServer.getName());
        if (reference!=null) 
            this.slaveServers.add(reference);
        else 
            this.slaveServers.add(slaveServer);
    }
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:27,代码来源:ClusterSchema.java

示例5: getTransAttributeBoolean

import org.pentaho.di.core.RowMetaAndData; //导入方法依赖的package包/类
public synchronized boolean getTransAttributeBoolean(long id_transformation, int nr, String code) throws KettleException
{
    RowMetaAndData r = null;
    r = getTransAttributeRow(id_transformation, nr, code);
    if (r == null)
        return false;
    return r.getBoolean(FIELD_TRANS_ATTRIBUTE_VALUE_STR, false);
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:9,代码来源:Repository.java

示例6: getJobAttributeBoolean

import org.pentaho.di.core.RowMetaAndData; //导入方法依赖的package包/类
public synchronized boolean getJobAttributeBoolean(long id_job, int nr, String code) throws KettleException
{
    RowMetaAndData r = null;
    r = getTransAttributeRow(id_job, nr, code);
    if (r == null)
        return false;
    return r.getBoolean(FIELD_JOB_ATTRIBUTE_VALUE_STR, false);
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:9,代码来源:Repository.java

示例7: UserInfo

import org.pentaho.di.core.RowMetaAndData; //导入方法依赖的package包/类
public UserInfo(Repository rep, String login)
	throws KettleException
{
	try
	{
		long id_profile;
		
		setID( rep.getUserID(login) );
		if (getID()>0)
		{
			RowMetaAndData r = rep.getUser(getID());
			if (r!=null)
			{
				this.login  = r.getString("LOGIN", null);
				password    = Encr.decryptPassword( r.getString("PASSWORD", null) );
				name        = r.getString("NAME", null);
				description = r.getString("DESCRIPTION", null);
				enabled     = r.getBoolean("ENABLED", false);
				id_profile  = r.getInteger("ID_PROFILE", 0);
				profile = new ProfileMeta(rep, id_profile);
			}
			else
			{
				setID(-1L);
				throw new KettleDatabaseException(Messages.getString("UserInfo.Error.UserNotFound", login));
			}
		}
           else
           {
               setID(-1L);
               throw new KettleDatabaseException(Messages.getString("UserInfo.Error.UserNotFound", login));
           }
	}
	catch(KettleDatabaseException dbe)
	{
           rep.log.logError(toString(), Messages.getString("UserInfo.Error.UserNotLoaded", login, dbe.getMessage()));
		throw new KettleException(Messages.getString("UserInfo.Error.UserNotLoaded", login, ""), dbe);
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:40,代码来源:UserInfo.java

示例8: loadJobHopMeta

import org.pentaho.di.core.RowMetaAndData; //导入方法依赖的package包/类
public JobHopMeta loadJobHopMeta(ObjectId id_job_hop, List<JobEntryCopy> jobcopies) throws KettleException
{
	JobHopMeta jobHopMeta = new JobHopMeta();
	try
	{
		RowMetaAndData r = getJobHop(id_job_hop);
		if (r!=null)
		{
			long id_jobentry_copy_from  =  r.getInteger("ID_JOBENTRY_COPY_FROM", -1L);
			long id_jobentry_copy_to =  r.getInteger("ID_JOBENTRY_COPY_TO", -1L);
			
			jobHopMeta.setEnabled( r.getBoolean("ENABLED", true) );
			jobHopMeta.setEvaluation( r.getBoolean("EVALUATION", true) );
			jobHopMeta.setConditional();
			if (r.getBoolean("UNCONDITIONAL", !jobHopMeta.getEvaluation())) {
				jobHopMeta.setUnconditional();
			}
			
			jobHopMeta.setFromEntry( JobMeta.findJobEntryCopy(jobcopies, new LongObjectId(id_jobentry_copy_from)) );
			jobHopMeta.setToEntry( JobMeta.findJobEntryCopy(jobcopies, new LongObjectId(id_jobentry_copy_to)) );
			
			return jobHopMeta;
		} else {
			throw new KettleException("Unable to find job hop with ID : "+id_job_hop);
		}
	}
	catch(KettleDatabaseException dbe)
	{
		throw new KettleException(BaseMessages.getString(PKG, "JobHopMeta.Exception.UnableToLoadHopInfoRep",""+id_job_hop) , dbe);
		
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:33,代码来源:KettleDatabaseRepositoryJobDelegate.java

示例9: getTransAttributeBoolean

import org.pentaho.di.core.RowMetaAndData; //导入方法依赖的package包/类
public synchronized boolean getTransAttributeBoolean(ObjectId id_transformation, int nr, String code) throws KettleException
{
    RowMetaAndData r = null;
    r = getTransAttributeRow(id_transformation, nr, code);
    if (r == null)
        return false;
    return r.getBoolean(KettleDatabaseRepository.FIELD_TRANS_ATTRIBUTE_VALUE_STR, false);
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:9,代码来源:KettleDatabaseRepositoryConnectionDelegate.java

示例10: getJobAttributeBoolean

import org.pentaho.di.core.RowMetaAndData; //导入方法依赖的package包/类
public synchronized boolean getJobAttributeBoolean(ObjectId id_job, int nr, String code) throws KettleException
{
    RowMetaAndData r = null;
    r = getJobAttributeRow(id_job, nr, code);
    if (r == null)
        return false;
    return r.getBoolean(KettleDatabaseRepository.FIELD_JOB_ATTRIBUTE_VALUE_STR, false);
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:9,代码来源:KettleDatabaseRepositoryConnectionDelegate.java

示例11: setEntryValue

import org.pentaho.di.core.RowMetaAndData; //导入方法依赖的package包/类
private void setEntryValue(StepInjectionMetaEntry entry, RowMetaAndData row, SourceStepField source) throws KettleValueException {
  // A standard attribute, a single row of data...
  // 
  Object value = null;
  switch(entry.getValueType()) {
  case ValueMetaInterface.TYPE_STRING: value = row.getString(source.getField(), null); break;
  case ValueMetaInterface.TYPE_BOOLEAN: value = row.getBoolean(source.getField(), false); break;
  case ValueMetaInterface.TYPE_INTEGER: value = row.getInteger(source.getField(), 0L); break;
  case ValueMetaInterface.TYPE_NUMBER: value = row.getNumber(source.getField(), 0.0D); break;
  case ValueMetaInterface.TYPE_DATE: value = row.getDate(source.getField(), null); break;
  case ValueMetaInterface.TYPE_BIGNUMBER: value = row.getBigNumber(source.getField(), null); break;
  }
  entry.setValue(value);
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:15,代码来源:MetaInject.java

示例12: StepMeta

import org.pentaho.di.core.RowMetaAndData; //导入方法依赖的package包/类
/**
    * Create a new step by loading the metadata from the specified repository.  
    * @param rep
    * @param id_step
    * @param databases
    * @param counters
    * @param partitionSchemas
    * @throws KettleException
    */
public StepMeta(Repository rep, long id_step, List<DatabaseMeta> databases, Map<String, Counter> counters, List<PartitionSchema> partitionSchemas) throws KettleException
{
       this();
       StepLoader steploader = StepLoader.getInstance();

	try
	{
		RowMetaAndData r = rep.getStep(id_step);
		if (r!=null)
		{
			setID(id_step);
			
			stepname = r.getString("NAME", null); //$NON-NLS-1$
			//System.out.println("stepname = "+stepname);
			description = r.getString("DESCRIPTION", null); //$NON-NLS-1$
			//System.out.println("description = "+description);
			
			long id_step_type = r.getInteger("ID_STEP_TYPE", -1L); //$NON-NLS-1$
			//System.out.println("id_step_type = "+id_step_type);
			RowMetaAndData steptyperow = rep.getStepType(id_step_type);
			
			stepid     = steptyperow.getString("CODE", null); //$NON-NLS-1$
			distributes = r.getBoolean("DISTRIBUTE", true); //$NON-NLS-1$
			copies     = (int)r.getInteger("COPIES", 1); //$NON-NLS-1$
			int x = (int)r.getInteger("GUI_LOCATION_X", 0); //$NON-NLS-1$
			int y = (int)r.getInteger("GUI_LOCATION_Y", 0); //$NON-NLS-1$
			location = new Point(x,y);
			drawstep = r.getBoolean("GUI_DRAW", false); //$NON-NLS-1$
			
			// Generate the appropriate class...
			StepPlugin sp = steploader.findStepPluginWithID(stepid);
               if (sp!=null)
               {
                   stepMetaInterface = BaseStep.getStepInfo(sp, steploader);
               }
               else
               {
                   throw new KettleStepLoaderException(Messages.getString("StepMeta.Exception.UnableToLoadClass",stepid+Const.CR)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
               }

			stepMetaInterface = BaseStep.getStepInfo(sp, steploader);
			if (stepMetaInterface!=null)
			{
				// Read the step info from the repository!
				stepMetaInterface.readRep(rep, getID(), databases, counters);
			}
               
               // Get the partitioning as well...
               stepPartitioningMeta = new StepPartitioningMeta(rep, getID());
               
               // Get the cluster schema name
               clusterSchemaName = rep.getStepAttributeString(id_step, "cluster_schema");
		}
		else
		{
			throw new KettleException(Messages.getString("StepMeta.Exception.StepInfoCouldNotBeFound",String.valueOf(id_step))); //$NON-NLS-1$ //$NON-NLS-2$
		}
	}
	catch(KettleDatabaseException dbe)
	{
		throw new KettleException(Messages.getString("StepMeta.Exception.StepCouldNotBeLoaded",String.valueOf(getID())), dbe); //$NON-NLS-1$ //$NON-NLS-2$
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:73,代码来源:StepMeta.java


注:本文中的org.pentaho.di.core.RowMetaAndData.getBoolean方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。