當前位置: 首頁>>代碼示例>>Java>>正文


Java RowMetaInterface.isEmpty方法代碼示例

本文整理匯總了Java中org.pentaho.di.core.row.RowMetaInterface.isEmpty方法的典型用法代碼示例。如果您正苦於以下問題:Java RowMetaInterface.isEmpty方法的具體用法?Java RowMetaInterface.isEmpty怎麽用?Java RowMetaInterface.isEmpty使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.pentaho.di.core.row.RowMetaInterface的用法示例。


在下文中一共展示了RowMetaInterface.isEmpty方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: get

import org.pentaho.di.core.row.RowMetaInterface; //導入方法依賴的package包/類
private void get()
{
    try
    {
        RowMetaInterface r = transMeta.getPrevStepFields(stepname);
        if (r!=null && !r.isEmpty())
        {
            BaseStepDialog.getFieldsFromPrevious(r, wFields, 1, new int[] { 1, 2}, new int[] {}, -1, -1, null);
        }
    }
    catch(KettleException ke)
    {
        new ErrorDialog(shell, 
                        BaseMessages.getString(PKG, "IngresVectorWiseLoaderDialog.FailedToGetFields.DialogTitle"), 
                        BaseMessages.getString(PKG, "IngresVectorWiseLoaderDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
    }

}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:19,代碼來源:IngresVectorwiseLoaderDialog.java

示例2: get

import org.pentaho.di.core.row.RowMetaInterface; //導入方法依賴的package包/類
private void get()
{
	try
	{
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r!=null && !r.isEmpty())
		{
               BaseStepDialog.getFieldsFromPrevious(r, wKey, 1, new int[] { 1, 2 }, new int[] {}, -1, -1, new TableItemInsertListener()
                   {
                       public boolean tableItemInserted(TableItem tableItem, ValueMetaInterface v)
                       {
                           tableItem.setText(3, "N"); //$NON-NLS-1$
                           return true;
                       }
                   }
               );
		}
	}
	catch(KettleException ke)
	{
		new ErrorDialog(shell, Messages.getString("CombinationLookupDialog.UnableToGetFieldsError.DialogTitle"), Messages.getString("CombinationLookupDialog.UnableToGetFieldsError.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}
}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:24,代碼來源:CombinationLookupDialog.java

示例3: get

import org.pentaho.di.core.row.RowMetaInterface; //導入方法依賴的package包/類
private void get()
{
	try
	{
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r!=null && !r.isEmpty())
		{
               BaseStepDialog.getFieldsFromPrevious(r, wParam, 1, new int[] { 1 }, new int[] { 2 }, -1, -1, null);
		}
	}
	catch(KettleException ke)
	{
		new ErrorDialog(shell, Messages.getString("DatabaseJoinDialog.GetFieldsFailed.DialogTitle"), Messages.getString("DatabaseJoinDialog.GetFieldsFailed.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}

}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:17,代碼來源:DatabaseJoinDialog.java

示例4: getUpdate

import org.pentaho.di.core.row.RowMetaInterface; //導入方法依賴的package包/類
private void getUpdate()
{
	try
	{
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r!=null && !r.isEmpty())
		{
               BaseStepDialog.getFieldsFromPrevious(r, wReturn, 1, new int[] { 1, 2}, new int[] {}, -1, -1, null);
		}
	}
	catch(KettleException ke)
	{
		new ErrorDialog(shell, BaseMessages.getString(PKG, "UpdateDialog.FailedToGetFields.DialogTitle"), BaseMessages.getString(PKG, "UpdateDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}

}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:17,代碼來源:UpdateDialog.java

示例5: get

import org.pentaho.di.core.row.RowMetaInterface; //導入方法依賴的package包/類
private void get()
{
	try
	{
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r!=null && !r.isEmpty())
		{
               BaseStepDialog.getFieldsFromPrevious(r, wKey, 1, new int[] { 1, 2 }, new int[] {}, -1, -1, new TableItemInsertListener()
                   {
                       public boolean tableItemInserted(TableItem tableItem, ValueMetaInterface v)
                       {
                           tableItem.setText(3, "N"); //$NON-NLS-1$
                           return true;
                       }
                   }
               );
		}
	}
	catch(KettleException ke)
	{
		new ErrorDialog(shell, BaseMessages.getString(PKG, "CombinationLookupDialog.UnableToGetFieldsError.DialogTitle"), BaseMessages.getString(PKG, "CombinationLookupDialog.UnableToGetFieldsError.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:24,代碼來源:CombinationLookupDialog.java

示例6: get

import org.pentaho.di.core.row.RowMetaInterface; //導入方法依賴的package包/類
/**
 * Fill up the fields table with the incoming fields.
 */
private void get()
{
	try
	{
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r!=null && !r.isEmpty())
		{
               BaseStepDialog.getFieldsFromPrevious(r, wFields, 1, new int[] { 1, 2}, new int[] {}, -1, -1, null);
		}
	}
	catch(KettleException ke)
	{
		new ErrorDialog(shell, 
				        BaseMessages.getString(PKG, "TableOutputDialog.FailedToGetFields.DialogTitle"), 
				        BaseMessages.getString(PKG, "TableOutputDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}

}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:22,代碼來源:TableOutputDialog.java

示例7: getHeadersFields

import org.pentaho.di.core.row.RowMetaInterface; //導入方法依賴的package包/類
private void getHeadersFields()
{
   try
   {
      RowMetaInterface r = transMeta.getPrevStepFields(stepname);
      if (r!=null && !r.isEmpty())
      {
             BaseStepDialog.getFieldsFromPrevious(r, wHeaders, 1, new int[] { 1, 2 }, new int[] { 3 }, -1, -1, null);
      }
   }
   catch(KettleException ke)
   {
      new ErrorDialog(shell, BaseMessages.getString(PKG, "HTTPPOSTDialog.FailedToGetFields.DialogTitle"), BaseMessages.getString(PKG, "HTTPPOSTDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
   }

}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:17,代碼來源:HTTPDialog.java

示例8: get

import org.pentaho.di.core.row.RowMetaInterface; //導入方法依賴的package包/類
private void get()
{
	try
	{
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r!=null && !r.isEmpty())
		{
			TableItemInsertListener listener = new TableItemInsertListener()
               {
                   public boolean tableItemInserted(TableItem tableItem, ValueMetaInterface v)
                   {
                       tableItem.setText(3, NO); // default is "N"
                       return true;
                   }
               };	
               BaseStepDialog.getFieldsFromPrevious(r, wFields, 1, new int[] { 1, 2 }, null, -1, -1, listener);
		}
	}
	catch(KettleException ke)
	{
		new ErrorDialog(shell, BaseMessages.getString(PKG, "HTTPPOSTDialog.FailedToGetFields.DialogTitle"), BaseMessages.getString(PKG, "HTTPPOSTDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}

}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:25,代碼來源:HTTPPOSTDialog.java

示例9: getParametersFields

import org.pentaho.di.core.row.RowMetaInterface; //導入方法依賴的package包/類
private void getParametersFields()
{
	try
	{
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r!=null && !r.isEmpty())
		{
               BaseStepDialog.getFieldsFromPrevious(r, wParameters, 1, new int[] { 1, 2 }, new int[] { 3 }, -1, -1, null);
		}
	}
	catch(KettleException ke)
	{
		new ErrorDialog(shell, BaseMessages.getString(PKG, "RestDialog.FailedToGetFields.DialogTitle"), 
				BaseMessages.getString(PKG, "RestDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}

}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:18,代碼來源:RestDialog.java

示例10: getQueryFields

import org.pentaho.di.core.row.RowMetaInterface; //導入方法依賴的package包/類
private void getQueryFields()
{
	try
	{
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r!=null && !r.isEmpty())
		{
               BaseStepDialog.getFieldsFromPrevious(r, wQuery, 1, new int[] { 1, 2 }, new int[] { 3 }, -1, -1, null);
		}
	}
	catch(KettleException ke)
	{
		new ErrorDialog(shell, Messages.getString("HTTPPOSTDialog.FailedToGetFields.DialogTitle"), Messages.getString("HTTPPOSTDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}

}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:17,代碼來源:HTTPPOSTDialog.java

示例11: get

import org.pentaho.di.core.row.RowMetaInterface; //導入方法依賴的package包/類
private void get() {
    try {
        RowMetaInterface r = this.transMeta.getPrevStepFields(this.stepname);
        if ((r != null) && (!r.isEmpty())) {
            BaseStepDialog.getFieldsFromPrevious(r, this.fieldsList, 1, new int[]{1, 2}, new int[0], -1, -1,
                    null);
        }
    } catch (KettleException e) {
        new ErrorDialog(this.shell,
                BaseMessages.getString(PKG, "AutSoftCassandraOutputDialog.FailedToGetFields.DialogTitle"),
                BaseMessages.getString(PKG, "AutSoftCassandraOutputDialog.FailedToGetFields.DialogMessage"), e);
    }
}
 
開發者ID:bcolas,項目名稱:pentaho-cassandra-plugin,代碼行數:14,代碼來源:CassandraOutputDialog.java

示例12: get

import org.pentaho.di.core.row.RowMetaInterface; //導入方法依賴的package包/類
/**
 * Get the fields from the previous step and load the field mapping table with a direct mapping of input fields to
 * table fields.
 */
private void get() {
  try {
    RowMetaInterface r = transMeta.getPrevStepFields( stepname );
    if ( r != null && !r.isEmpty() ) {
      BaseStepDialog.getFieldsFromPrevious( r, wFields, 1, new int[] { 1, 2 }, new int[] {}, -1, -1, null );
    }
  } catch ( KettleException ke ) {
    new ErrorDialog(
            shell, BaseMessages.getString( PKG, "SnowflakeBulkLoader.Dialog.FailedToGetFields.DialogTitle" ), BaseMessages
            .getString( PKG, "SnowflakeBulkLoader.Dialog.FailedToGetFields.DialogMessage" ), ke );
  }

}
 
開發者ID:inquidia,項目名稱:PentahoSnowflakePlugin,代碼行數:18,代碼來源:SnowflakeBulkLoaderDialog.java

示例13: get

import org.pentaho.di.core.row.RowMetaInterface; //導入方法依賴的package包/類
private void get() {
  try {
    RowMetaInterface r = transMeta.getPrevStepFields( stepname );
    if ( r != null && !r.isEmpty() ) {
      BaseStepDialog.getFieldsFromPrevious( r, wFields, 1, new int[] { 1, 2 }, new int[] { 3 }, -1, -1, null );
    }
  } catch ( KettleException ke ) {
    new ErrorDialog(
      shell, BaseMessages.getString( PKG, "XsltDialog.FailedToGetFields.DialogTitle" ), BaseMessages
        .getString( PKG, "XsltDialog.FailedToGetFields.DialogMessage" ), ke );
  }
}
 
開發者ID:griddynamics,項目名稱:xml-dom-kettle-etl-plugin,代碼行數:13,代碼來源:DOMXsltDialog.java

示例14: getFields

import org.pentaho.di.core.row.RowMetaInterface; //導入方法依賴的package包/類
private void getFields() {
  try {
    RowMetaInterface r = transMeta.getPrevStepFields( stepname );
    if ( r != null && !r.isEmpty() ) {
      BaseStepDialog.getFieldsFromPrevious( r, wFields, 1, new int[]{ 1 }, new int[]{ }, -1, -1, null );
    }
  } catch ( KettleException ke ) {
    new ErrorDialog(
      shell, BaseMessages.getString( PKG, "ZooKeeperOutputDialog.FailedToGetFields.DialogTitle" ), BaseMessages
      .getString( PKG, "ZooKeeperOutputDialog.FailedToGetFields.DialogMessage" ), ke );
  }
}
 
開發者ID:mattyb149,項目名稱:pdi-hazelcast-plugin,代碼行數:13,代碼來源:HazelcastOutputDialog.java

示例15: getAgg

import org.pentaho.di.core.row.RowMetaInterface; //導入方法依賴的package包/類
private void getAgg()
{
	try
	{
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r!=null && !r.isEmpty())
		{
               BaseStepDialog.getFieldsFromPrevious(r, wAgg, 1, new int[] { 1, 2 }, new int[] {}, -1, -1, null);
		}
	}
	catch(KettleException ke)
	{
		new ErrorDialog(shell, BaseMessages.getString(PKG, "AnalyticQueryDialog.FailedToGetFields.DialogTitle"), BaseMessages.getString(PKG, "AnalyticQueryDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:16,代碼來源:AnalyticQueryDialog.java


注:本文中的org.pentaho.di.core.row.RowMetaInterface.isEmpty方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。