parquet-column/src/main/java/org/apache/parquet/filter/OrRecordFilter.java
public static final UnboundRecordFilter or( final UnboundRecordFilter filter1, final UnboundRecordFilter filter2 ) {
    Preconditions.checkNotNull( filter1, "filter1" );
    Preconditions.checkNotNull( filter2, "filter2" );
    return new UnboundRecordFilter() {
      @Override
      public RecordFilter bind(Iterable<ColumnReader> readers) {
        return new OrRecordFilter( filter1.bind(readers), filter2.bind( readers) );
      }
    };
  }
public static final UnboundRecordFilter or( final UnboundRecordFilter filter1, final UnboundRecordFilter filter2 ) {
    Preconditions.checkNotNull( filter1, "filter1" );
    Preconditions.checkNotNull( filter2, "filter2" );
    return new UnboundRecordFilter() {
      @Override
      public RecordFilter bind(Iterable<ColumnReader> readers) {
        return new OrRecordFilter( filter1.bind(readers), filter2.bind( readers) );
      }
    };
  }
public static final UnboundRecordFilter or ( final UnboundRecordFilter filter1 , final UnboundRecordFilter filter2 ) { Preconditions . checkNotNull ( filter1 , "filter1" ) ; Preconditions . checkNotNull ( filter2 , "filter2" ) ; return new UnboundRecordFilter ( ) { @ Override public RecordFilter bind ( Iterable < ColumnReader > readers ) { return new OrRecordFilter ( filter1 . bind ( readers ) , filter2 . bind ( readers ) ) ; } } ; }
Returns builder for creating an and filter.
@param filter1 The first filter to check.
@param filter2 The second filter to check.
@return an or record filter
Returns builder for creating an and filter .