public TezGroupGate( FlowProcess flowProcess, Splice splice, IORole role, SortedListMultiMap<Integer, LogicalInput> logicalInputs ) { super( flowProcess, splice, role ); if( logicalInputs == null || logicalInputs.getKeys().size() == 0 ) throw new IllegalArgumentException( "inputs must not be null or empty" ); this.logicalInputs = logicalInputs; }
public TezGroupGate( FlowProcess flowProcess, Splice splice, IORole role, SortedListMultiMap<Integer, LogicalInput> logicalInputs ) { super( flowProcess, splice, role ); if( logicalInputs == null || logicalInputs.getKeys().size() == 0 ) throw new IllegalArgumentException( "inputs must not be null or empty" ); this.logicalInputs = logicalInputs; }
public TezMergeGate( FlowProcess flowProcess, Splice splice, IORole role, SortedListMultiMap<Integer, LogicalInput> logicalInputs ) { super( flowProcess, splice, role ); if( logicalInputs == null || logicalInputs.getKeys().size() == 0 ) throw new IllegalArgumentException( "inputs must not be null or empty" ); Set<LogicalInput> inputs = new HashSet<>( logicalInputs.getValues() ); if( inputs.size() != 1 ) throw new IllegalArgumentException( "only supports a single input" ); this.logicalInputs = logicalInputs; }
public TezMergeGate( FlowProcess flowProcess, Splice splice, IORole role, SortedListMultiMap<Integer, LogicalInput> logicalInputs ) { super( flowProcess, splice, role ); if( logicalInputs == null || logicalInputs.getKeys().size() == 0 ) throw new IllegalArgumentException( "inputs must not be null or empty" ); Set<LogicalInput> inputs = new HashSet<>( logicalInputs.getValues() ); if( inputs.size() != 1 ) throw new IllegalArgumentException( "only supports a single input" ); this.logicalInputs = logicalInputs; }
public TezCoGroupGate( FlowProcess flowProcess, CoGroup coGroup, IORole role, SortedListMultiMap<Integer, LogicalInput> logicalInputs ) { super( flowProcess, coGroup, role, logicalInputs ); this.timedIterators = new TimedIterator[ logicalInputs.getKeys().size() ]; for( int i = 0; i < this.timedIterators.length; i++ ) this.timedIterators[ i ] = new TimedIterator<>( flowProcess, SliceCounters.Read_Duration, SliceCounters.Tuples_Read, i ); }
public TezCoGroupGate( FlowProcess flowProcess, CoGroup coGroup, IORole role, SortedListMultiMap<Integer, LogicalInput> logicalInputs ) { super( flowProcess, coGroup, role, logicalInputs ); this.timedIterators = new TimedIterator[ logicalInputs.getKeys().size() ]; for( int i = 0; i < this.timedIterators.length; i++ ) this.timedIterators[ i ] = new TimedIterator<>( flowProcess, SliceCounters.Read_Duration, SliceCounters.Tuples_Read, i ); }
SortedListMultiMap<Tuple, Iterable<Tuple>> iterables = getSortedMultiMap( readers.getKeys().size() );
SortedListMultiMap<Tuple, Iterable<Tuple>> iterables = getSortedMultiMap( readers.getKeys().size() );
int size = current == null ? readers.getKeys().size() : current.size();
int size = current == null ? readers.getKeys().size() : current.size();