本文整理匯總了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);
}
示例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 );
}
}
示例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$
}
}
示例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$
}
}
示例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$
}
}
示例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");
}
示例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);
}
}
示例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$
}
}
示例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$
}
}
示例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$
}
}
示例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);
}
示例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));
}
示例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);
}
示例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");
}
示例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$
}
}