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


Java Repository.getStepAttributeBoolean方法代码示例

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


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

示例1: readRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
@Override
public void readRep(Repository rep, IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases)
    throws KettleException {

  String connectionName = rep.getStepAttributeString(id_step, TAG_CONNECTION);
  if (StringUtils.isNotEmpty(connectionName)) {
    try {
      connection = HCPConnectionUtils.getConnectionFactory(metaStore).loadElement(connectionName);
    } catch(MetaStoreException e) {
      // We just log the message but we don't abort the complete meta-data loading.
      //
      log.logError(BaseMessages.getString(PKG, "HCPPutMeta.Error.HCPConnectionNotFound", connectionName));
      connection = null;
    }
  }
  sourceFileField = rep.getStepAttributeString(id_step, TAG_SOURCE_FILE_FIELD);
  targetFileField = rep.getStepAttributeString(id_step, TAG_TARGET_FILE_FIELD);
  updating = rep.getStepAttributeBoolean(id_step, TAG_UPDATING);
  responseCodeField = rep.getStepAttributeString(id_step, TAG_RESPONSE_CODE_FIELD);
  responseTimeField = rep.getStepAttributeString(id_step, TAG_RESPONSE_TIME_FIELD);
}
 
开发者ID:mattcasters,项目名称:pdi-hcp-plugin,代码行数:22,代码来源:HCPPutMeta.java

示例2: readRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
@Override public void readRep( Repository rep, IMetaStore metaStore, ObjectId stepId, List<DatabaseMeta> databases )
    throws KettleException {
  try {
    broker = rep.getStepAttributeString( stepId, "BROKER" );
    topic = rep.getStepAttributeString( stepId, "TOPIC" );
    m_topicIsFromField = rep.getStepAttributeBoolean( stepId, "TOPIC_IS_FROM_FIELD" );
    field = rep.getStepAttributeString( stepId, "FIELD" );
    clientId = rep.getStepAttributeString( stepId, "CLIENT_ID" );
    timeout = rep.getStepAttributeString( stepId, "TIMEOUT" );
    qos = rep.getStepAttributeString( stepId, "QOS" );
    requiresAuth = Boolean.parseBoolean( rep.getStepAttributeString( stepId, "REQUIRES_AUTH" ) );
    username = rep.getStepAttributeString( stepId, "USERNAME" );
    password = rep.getStepAttributeString( stepId, "PASSWORD" );

    sslCaFile = rep.getStepAttributeString( stepId, "SSL_CA_FILE" );
    sslCertFile = rep.getStepAttributeString( stepId, "SSL_CERT_FILE" );
    sslKeyFile = rep.getStepAttributeString( stepId, "SSL_KEY_FILE" );
    sslKeyFilePass = rep.getStepAttributeString( stepId, "SSL_KEY_FILE_PASS" );
  } catch ( Exception e ) {
    throw new KettleException( "MQTTClientMeta.Exception.loadRep", e );
  }
}
 
开发者ID:pentaho-labs,项目名称:pentaho-mqtt-plugin,代码行数:23,代码来源:MQTTPublisherMeta.java

示例3: readRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void readRep(Repository rep, ObjectId id_step, List<DatabaseMeta> databases, Map<String, Counter> counters)
	throws KettleException
{
	try{
		nrclones = rep.getStepAttributeString(id_step, "nrclones");
		addcloneflag =  rep.getStepAttributeBoolean(id_step, "addcloneflag");
		cloneflagfield = rep.getStepAttributeString(id_step, "cloneflagfield");
		nrcloneinfield =  rep.getStepAttributeBoolean(id_step, "nrcloneinfield");
		nrclonefield = rep.getStepAttributeString(id_step, "nrclonefield");
		addclonenum =  rep.getStepAttributeBoolean(id_step, "addclonenum");
		
		clonenumfield = rep.getStepAttributeString(id_step, "clonenumfield");
		
	}
	 catch (Exception e)
     {
        throw new KettleException(BaseMessages.getString(PKG, "CloneRowMeta.Exception.UnexpectedErrorReadingStepInfo"), e); //$NON-NLS-1$
     }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:20,代码来源:CloneRowMeta.java

示例4: readRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void readRep(Repository rep, ObjectId id_step, List<DatabaseMeta> databases, Map<String, Counter> counters)
	throws KettleException
{
	try
	{
		countRows  = rep.getStepAttributeBoolean(id_step, "count_rows"); //$NON-NLS-1$
		countField = rep.getStepAttributeString (id_step, "count_fields"); //$NON-NLS-1$
		rejectDuplicateRow  = rep.getStepAttributeBoolean(id_step, "reject_duplicate_row");
		errorDescription = rep.getStepAttributeString (id_step, "error_description"); //$NON-NLS-1$
		
		int nrfields = rep.countNrStepAttributes(id_step, "field_name"); //$NON-NLS-1$
		
		allocate(nrfields);

		for (int i=0;i<nrfields;i++)
		{
			compareFields[i] = rep.getStepAttributeString (id_step, i, "field_name"); //$NON-NLS-1$
               caseInsensitive[i] = rep.getStepAttributeBoolean(id_step, i, "case_insensitive", true); //$NON-NLS-1$
		}
	}
	catch(Exception e)
	{
		throw new KettleException(BaseMessages.getString(PKG, "UniqueRowsMeta.Exception.UnexpectedErrorReadingStepInfo"), e); //$NON-NLS-1$
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:26,代码来源:UniqueRowsMeta.java

示例5: readRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void readRep(Repository rep, ObjectId id_step, List<DatabaseMeta> databases, Map<String, Counter> counters) throws KettleException {
	try
	{
		databaseMeta = rep.loadDatabaseMetaFromStepAttribute(id_step, "id_connection", databases);
		rowLimit         = (int)rep.getStepAttributeInteger(id_step, "rowlimit"); //$NON-NLS-1$
		sql              =      rep.getStepAttributeString (id_step, "sql");  //$NON-NLS-1$
		outerJoin       =      rep.getStepAttributeBoolean(id_step, "outer_join");  //$NON-NLS-1$
		replacevars       =      rep.getStepAttributeBoolean(id_step, "replace_vars"); 
		
		int nrparam = rep.countNrStepAttributes(id_step, "parameter_field"); //$NON-NLS-1$
		
		allocate(nrparam);
		
		for (int i=0;i<nrparam;i++)
		{
			parameterField[i]   = rep.getStepAttributeString(id_step, i, "parameter_field"); //$NON-NLS-1$
			String stype    = rep.getStepAttributeString(id_step, i, "parameter_type"); //$NON-NLS-1$
			parameterType[i]    = ValueMeta.getType(stype);
		}
	}
	catch(Exception e)
	{
		throw new KettleException(BaseMessages.getString(PKG, "DatabaseJoinMeta.Exception.UnexpectedErrorReadingStepInfo"), e); //$NON-NLS-1$
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:26,代码来源:DatabaseJoinMeta.java

示例6: UnivariateStatsMetaFunction

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
/**
 * Construct using data stored in repository
 *
 * @param rep the repository
 * @param id_step the id of the step
 * @param nr the step number
 * @exception KettleException if an error occurs
 */
public UnivariateStatsMetaFunction(Repository rep,
                                   ObjectId id_step,
                                   int nr) throws KettleException {
  m_sourceFieldName = 
    rep.getStepAttributeString(id_step, nr, "source_field_name");
  m_n = rep.getStepAttributeBoolean(id_step, nr, "N");
  m_mean = rep.getStepAttributeBoolean(id_step, nr, "mean");
  m_stdDev = rep.getStepAttributeBoolean(id_step, nr, "stdDev");
  m_min = rep.getStepAttributeBoolean(id_step, nr, "min");
  m_max = rep.getStepAttributeBoolean(id_step, nr, "max");
  m_median = rep.getStepAttributeBoolean(id_step, nr, "median");
  String temp = rep.getStepAttributeString(id_step, nr, "percentile");
  try {
    m_arbitraryPercentile = Double.parseDouble(temp);
  } catch (Exception ex) {
    m_arbitraryPercentile = -1;
  }
  m_interpolatePercentile = 
    rep.getStepAttributeBoolean(id_step, nr, "interpolate");
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:29,代码来源:UnivariateStatsMetaFunction.java

示例7: readRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void readRep(Repository rep, ObjectId id_step, List<DatabaseMeta> databases, Map<String, Counter> counters) throws KettleException {
	try
	{
           filename              =      rep.getStepAttributeString (id_step, "filename");
           tablename             =      rep.getStepAttributeString (id_step, "table");
		tableTruncated        =      rep.getStepAttributeBoolean(id_step, "truncate"); 
           fileCreated           =      rep.getStepAttributeBoolean(id_step, "create_file"); 
           tableCreated          =      rep.getStepAttributeBoolean(id_step, "create_table"); 
           commitSize            = (int)rep.getStepAttributeInteger(id_step, "commit_size"); 
           String addToResultFiles=rep.getStepAttributeString (id_step, "add_to_result_filenames");
           if(Const.isEmpty(addToResultFiles))
           	addToResultFilenames=true;
           else
           	addToResultFilenames  =      rep.getStepAttributeBoolean(id_step, "add_to_result_filenames");
           doNotOpeNnewFileInit          =      rep.getStepAttributeBoolean(id_step, "do_not_open_newfile_init"); 
           
	}
	catch(Exception e)
	{
		throw new KettleException("Unexpected error reading step information from the repository", e);
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:23,代码来源:AccessOutputMeta.java

示例8: readRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void readRep(Repository rep, ObjectId id_step, List<DatabaseMeta> databases, Map<String, Counter> counters) throws KettleException {
	try
	{
		databaseMeta = rep.loadDatabaseMetaFromStepAttribute(id_step, "id_connection", databases);
		rowLimit         = (int)rep.getStepAttributeInteger(id_step, "rowlimit"); //$NON-NLS-1$
		sql              =      rep.getStepAttributeString (id_step, "sql");  //$NON-NLS-1$
		outerJoin       =      rep.getStepAttributeBoolean(id_step, "outer_join");  //$NON-NLS-1$
		replacevars       =      rep.getStepAttributeBoolean(id_step, "replace_vars"); 
		sqlfieldname         =      rep.getStepAttributeString (id_step, "sql_fieldname");  //$NON-NLS-1$
		queryonlyonchange    =      rep.getStepAttributeBoolean (id_step, "query_only_on_change");  //$NON-NLS-1$	
	}
	catch(Exception e)
	{
		throw new KettleException(BaseMessages.getString(PKG, "DynamicSQLRowMeta.Exception.UnexpectedErrorReadingStepInfo"), e); //$NON-NLS-1$
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:17,代码来源:DynamicSQLRowMeta.java

示例9: readRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void readRep(Repository rep, long id_step, List<DatabaseMeta> databases, Map<String, Counter> counters)
throws KettleException
{
	try
	{
		fileName    = rep.getStepAttributeString (id_step, "filename");
		isFileNameInField   = rep.getStepAttributeBoolean(id_step, "isfilenameinfield");	
		fileNameField     = rep.getStepAttributeString (id_step, "filenamefield");
		rowLimit              = (int)rep.getStepAttributeInteger(id_step, "limit"); //$NON-NLS-1$
		rowNrAdded             =      rep.getStepAttributeBoolean(id_step, "add_rownr"); //$NON-NLS-1$
		rowNrField           =      rep.getStepAttributeString (id_step, "field_rownr"); //$NON-NLS-1$
		passingThruFields = rep.getStepAttributeBoolean(id_step, "passing_through_fields");
		acceptingStepName  = rep.getStepAttributeString (id_step, "accept_stepname");
	}
	catch(Exception e)
	{
		throw new KettleException(Messages.getString("KMLFileInputMeta.Exception.UnexpectedErrorReadingMetaDataFromRepository"), e); //$NON-NLS-1$
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:20,代码来源:KMLFileInputMeta.java

示例10: readRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void readRep(Repository rep, ObjectId id_step, List<DatabaseMeta> databases, Map<String, Counter> counters) throws KettleException
{
	try
	{
		database = rep.loadDatabaseMetaFromStepAttribute(id_step, "id_connection", databases);
           tablename = rep.getStepAttributeString(id_step, "tablename");
           schemaname = rep.getStepAttributeString(id_step, "schemaname");
           istablenameInfield =  rep.getStepAttributeBoolean(id_step, "istablenameInfield");
           tablenamefield = rep.getStepAttributeString(id_step, "tablenamefield"); //$NON-NLS-1$
           columnnamefield = rep.getStepAttributeString(id_step, "columnnamefield"); //$NON-NLS-1$
           resultfieldname = rep.getStepAttributeString(id_step, "resultfieldname"); //$NON-NLS-1$
       }
       catch (Exception e)
       {
           throw new KettleException(BaseMessages.getString(PKG, "ColumnExistsMeta.Exception.UnexpectedErrorReadingStepInfo"), e); //$NON-NLS-1$
       }
   }
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:18,代码来源:ColumnExistsMeta.java

示例11: readRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
@Override
public void readRep(Repository rep, IMetaStore metastore, ObjectId id_step, List<DatabaseMeta> databases)
        throws KettleException {
    this.cassandraNodes = rep.getStepAttributeString(id_step, 0, CASSANDRA_NODES);
    this.cassandraPort = rep.getStepAttributeString(id_step, 0, CASSANDRA_PORT);
    this.username = rep.getStepAttributeString(id_step, 0, USERNAME);
    this.password = rep.getStepAttributeString(id_step, 0, PASSWORD);
    if (!Const.isEmpty(this.password)) {
        this.password = Encr.decryptPasswordOptionallyEncrypted(this.password);
    }
    this.keyspace = rep.getStepAttributeString(id_step, 0, CASSANDRA_KEYSPACE);
    this.SslEnabled = rep.getStepAttributeBoolean(id_step, 0, CASSANDRA_WITH_SSL);
    this.trustStoreFilePath = rep.getStepAttributeString(id_step, 0, CASSANDRA_TRUSTSTORE_FILE_PATH);
    this.trustStorePass = rep.getStepAttributeString(id_step, 0, CASSANDRA_TRUSTSTORE_PASS);
    if (!Const.isEmpty(this.trustStorePass)) {
        this.trustStorePass = Encr.decryptPasswordOptionallyEncrypted(this.trustStorePass);
    }
    this.columnfamily = rep.getStepAttributeString(id_step, 0, CASSANDRA_COLUMN_FAMILY);
    this.syncMode = rep.getStepAttributeBoolean(id_step, 0, SYNC_ENABLED);

    String batchSize = rep.getStepAttributeString(id_step, 0, BATCH_SIZE);
    this.batchSize = (Const.isEmpty(batchSize) ? 1000 : Integer.valueOf(batchSize));

    String sCompression = rep.getStepAttributeString(id_step, 0, QUERY_COMPRESSION);
    this.compression = (Const.isEmpty(sCompression) ? ConnectionCompression.SNAPPY : ConnectionCompression.fromString(sCompression));

    this.specifyFields = rep.getStepAttributeBoolean(id_step, 0, SPECIFY_FIELDS);

    int nrCols = rep.countNrStepAttributes(id_step, COLUMN_NAME);
    int nrStreams = rep.countNrStepAttributes(id_step, STREAM_NAME);
    int nrRows = nrCols < nrStreams ? nrStreams : nrCols;

    allocate(nrRows);
    for (int idx = 0; idx < nrRows; idx++) {
        this.cassandraFields[idx] = Const.NVL(rep.getStepAttributeString(id_step, idx, COLUMN_NAME), "");
        this.streamFields[idx] = Const.NVL(rep.getStepAttributeString(id_step, idx, STREAM_NAME), "");
    }

    this.ttl = Const.toInt(rep.getStepAttributeString(id_step, 0, TTL), 0);
}
 
开发者ID:bcolas,项目名称:pentaho-cassandra-plugin,代码行数:41,代码来源:CassandraOutputMeta.java

示例12: readRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
@Override
public void readRep(Repository rep, IMetaStore metastore, ObjectId id_step, List<DatabaseMeta> databases)
        throws KettleException {
    this.cassandraNodes = rep.getStepAttributeString(id_step, 0, CASSANDRA_NODES);
    this.cassandraPort = rep.getStepAttributeString(id_step, 0, CASSANDRA_PORT);
    this.username = rep.getStepAttributeString(id_step, 0, USERNAME);
    this.password = rep.getStepAttributeString(id_step, 0, PASSWORD);
    if (!Const.isEmpty(this.password)) {
        this.password = Encr.decryptPasswordOptionallyEncrypted(this.password);
    }
    this.keyspace = rep.getStepAttributeString(id_step, 0, CASSANDRA_KEYSPACE);
    this.SslEnabled = rep.getStepAttributeBoolean(id_step, CASSANDRA_WITH_SSL);
    this.trustStoreFilePath = rep.getStepAttributeString(id_step, 0, CASSANDRA_TRUSTSTORE_FILE_PATH);
    this.trustStorePass = rep.getStepAttributeString(id_step, 0, CASSANDRA_TRUSTSTORE_PASS);
    String sCompression = rep.getStepAttributeString(id_step, 0, COMPRESSION);
    this.cqlStatement = rep.getStepAttributeString(id_step, 0, CQL);
    this.executeForEachInputRow = rep.getStepAttributeBoolean(id_step, EXECUTE_FOR_EACH_INPUT);
    this.rowLimit = ((int) rep.getStepAttributeInteger(id_step, ROW_LIMIT));

    if (!Const.isEmpty(this.trustStorePass)) {
        this.trustStorePass = Encr.decryptPasswordOptionallyEncrypted(this.trustStorePass);
    }

    checkNulls();

    if (this.cqlStatement == null) {
        this.cqlStatement = "";
    }
    this.compression = (Const.isEmpty(sCompression) ? ConnectionCompression.SNAPPY : ConnectionCompression.fromString(sCompression));
}
 
开发者ID:bcolas,项目名称:pentaho-cassandra-plugin,代码行数:31,代码来源:CassandraInputMeta.java

示例13: readRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
@Override
public void readRep(Repository rep, IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases) throws KettleException {
    image = rep.getStepAttributeString(id_step, IMAGE);
    transformation = rep.getStepAttributeString(id_step, TRANSFORMATION);
    killContainer = rep.getStepAttributeBoolean(id_step, KILL_CONTAINER);
    removeContainer = rep.getStepAttributeBoolean(id_step, REMOVE_CONTAINER);
}
 
开发者ID:brosander,项目名称:kettle-docker,代码行数:8,代码来源:DockerTransExecutorMeta.java

示例14: readRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void readRep(Repository rep, long id_step, List<DatabaseMeta> databases, Map<String, Counter> counters) throws KettleException
{
       hostname      = rep.getStepAttributeString(id_step, "hostname");
       port          = rep.getStepAttributeString(id_step, "port");
       bufferSize    = rep.getStepAttributeString(id_step, "buffer_size");
       compressed    = rep.getStepAttributeBoolean(id_step, "compressed");
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:8,代码来源:SocketReaderMeta.java

示例15: readRep

import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void readRep(Repository rep, ObjectId id_step, List<DatabaseMeta> databases, Map<String, Counter> counters)
throws KettleException
{
       try
       {
           filenamefield = rep.getStepAttributeString(id_step, "filenamefield"); //$NON-NLS-1$
           resultfieldname = rep.getStepAttributeString(id_step, "resultfieldname"); //$NON-NLS-1$
           addresultfilenames  = rep.getStepAttributeBoolean(id_step, "addresultfilenames");   
       }
       catch (Exception e)
       {
           throw new KettleException(BaseMessages.getString(PKG, "FileLockedMeta.Exception.UnexpectedErrorReadingStepInfo"), e); //$NON-NLS-1$
       }
   }
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:15,代码来源:FileLockedMeta.java


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