cascading.tuple.Tuple.equals()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(82)

本文整理了Java中cascading.tuple.Tuple.equals()方法的一些代码示例,展示了Tuple.equals()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tuple.equals()方法的具体详情如下:
包路径:cascading.tuple.Tuple
类名称:Tuple
方法名:equals

Tuple.equals介绍

暂无

代码示例

代码示例来源:origin: cwensel/cascading

@Override
public boolean equals( Object object )
 {
 if( this == object )
  return true;
 if( object == null || getClass() != object.getClass() )
  return false;
 IndexTuple that = (IndexTuple) object;
 if( index != that.index )
  return false;
 if( tuple != null ? !tuple.equals( that.tuple ) : that.tuple != null )
  return false;
 return true;
 }

代码示例来源:origin: cwensel/cascading

@Override
public boolean equals( Object object )
 {
 if( this == object )
  return true;
 if( !( object instanceof AssertEquals ) )
  return false;
 if( !super.equals( object ) )
  return false;
 AssertEquals that = (AssertEquals) object;
 if( values != null ? !values.equals( that.values ) : that.values != null )
  return false;
 return true;
 }

代码示例来源:origin: cwensel/cascading

@Override
public boolean equals( Object object )
 {
 if( this == object )
  return true;
 if( !( object instanceof AssertNotEquals ) )
  return false;
 if( !super.equals( object ) )
  return false;
 AssertNotEquals that = (AssertNotEquals) object;
 if( values != null ? !values.equals( that.values ) : that.values != null )
  return false;
 return true;
 }

代码示例来源:origin: cwensel/cascading

@Override
public boolean equals( Object object )
 {
 if( this == object )
  return true;
 if( !( object instanceof Insert ) )
  return false;
 if( !super.equals( object ) )
  return false;
 Insert insert = (Insert) object;
 if( values != null ? !values.equals( insert.values ) : insert.values != null )
  return false;
 return true;
 }

代码示例来源:origin: cascading/cascading-jdbc-core

if( updateByFields != null ? !updateByFields.equals( that.updateByFields ) : that.updateByFields != null )
 return false;
if( updateIfTuple != null ? !updateIfTuple.equals( that.updateIfTuple ) : that.updateIfTuple != null )
 return false;
if( updateValueFields != null ? !updateValueFields.equals( that.updateValueFields ) : that.updateValueFields != null )

代码示例来源:origin: cwensel/cascading

@Override
public void doAssert( FlowProcess flowProcess, ValueAssertionCall assertionCall )
 {
 Tuple tuple = assertionCall.getArguments().getTuple();
 if( tuple.equals( values ) )
  fail( tuple.print(), values.print() );
 }

代码示例来源:origin: cascading/pattern-core

@Override
public boolean apply( Tuple tuple )
 {
 for( Tuple skipTuple : skip )
  {
  Tuple value = tuple.get( skipFields.getPos() );
  if( value.equals( skipTuple ) )
   {
   LOG.debug( "skipping: lhs: {}", tuple );
   return false;
   }
  }
 return true;
 }
} );

代码示例来源:origin: cascading/pattern-core

@Override
public boolean apply( Tuple tuple )
 {
 for( Tuple skipTuple : skip )
  {
  Tuple value = tuple.get( skipFields.getPos() );
  if( value.equals( skipTuple ) )
   {
   LOG.debug( "skipping: rhs: {}", tuple );
   return false;
   }
  }
 return true;
 }
} );

代码示例来源:origin: cwensel/cascading

@Override
public void doAssert( FlowProcess flowProcess, ValueAssertionCall assertionCall )
 {
 Tuple tuple = assertionCall.getArguments().getTuple();
 if( !tuple.equals( values ) )
  fail( tuple.print(), values.print() );
 }

代码示例来源:origin: cascading/cascading-jdbc-core

if( updateValues.equals( updateIfTuple ) )
 outputCollector.collect( key, null );
else

相关文章