public void accumulate( Set<Hfs> taps, Tap value ) { if( value == null ) return; if( value instanceof Hfs ) taps.add( (Hfs) value ); else if( value instanceof PartitionTap ) taps.add( (Hfs) ( (PartitionTap) value ).getParent() ); else if( value instanceof MultiSourceTap ) iterate( taps, (MultiSourceTap) value ); else throw new IllegalArgumentException( "unsupprted Tap type: " + value.getClass().getName() ); }
public void accumulate( Set<Hfs> taps, Tap value ) { if( value == null ) return; if( value instanceof Hfs ) taps.add( (Hfs) value ); else if( value instanceof PartitionTap ) taps.add( (Hfs) ( (PartitionTap) value ).getParent() ); else if( value instanceof MultiSourceTap ) iterate( taps, (MultiSourceTap) value ); else throw new IllegalArgumentException( "unsupprted Tap type: " + value.getClass().getName() ); }
@Override public void sourceConfInit( FlowProcess<? extends Configuration> flowProcess, Configuration conf ) { try { String[] childPartitions = getChildPartitionIdentifiers( flowProcess, true ); ( (Hfs) getParent() ).applySourceConfInitIdentifiers( flowProcess, conf, childPartitions ); } catch( IOException exception ) { throw new TapException( "unable to retrieve child partitions", exception ); } }
@Override public void sourceConfInit( FlowProcess<? extends Configuration> flowProcess, Configuration conf ) { try { String[] childPartitions = getChildPartitionIdentifiers( flowProcess, true ); ( (Hfs) getParent() ).applySourceConfInitIdentifiers( flowProcess, conf, childPartitions ); } catch( IOException exception ) { throw new TapException( "unable to retrieve child partitions", exception ); } }