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