@Override public Config getConfig() { return delegate.getConfig(); }
/** * Method getBlockSize returns the {@code blocksize} specified by the underlying file system for this resource. * * @param flowProcess * @return long * @throws IOException when */ public long getBlockSize( FlowProcess<? extends Configuration> flowProcess ) throws IOException { return getBlockSize( flowProcess.getConfig() ); }
/** * Method resourceExists returns true if the path represented by this instance exists. * * @param flowProcess of type FlowProcess * @return true if the underlying resource already exists * @throws IOException when the status cannot be determined */ public boolean resourceExists( FlowProcess<? extends Config> flowProcess ) throws IOException { return resourceExists( flowProcess.getConfig() ); }
@Override public String[] getChildIdentifiers( FlowProcess<? extends Properties> flowProcess ) throws IOException { return getChildIdentifiers( flowProcess.getConfig() ); }
/** * Method createResource creates the underlying resource. * * @param flowProcess of type FlowProcess * @return boolean * @throws IOException when there is an error making directories */ public boolean createResource( FlowProcess<? extends Config> flowProcess ) throws IOException { return createResource( flowProcess.getConfig() ); }
@Override public long getSize( FlowProcess<? extends Properties> flowProcess ) throws IOException { return getSize( flowProcess.getConfig() ); }
@Override public boolean isDirectory( FlowProcess<? extends Configuration> flowProcess ) throws IOException { return isDirectory( flowProcess.getConfig() ); }
@Override public boolean isDirectory( FlowProcess<? extends Configuration> flowProcess ) throws IOException { return isDirectory( flowProcess.getConfig() ); }
/** * Method deleteResource deletes the resource represented by this instance. * * @param flowProcess of type FlowProcess * @return boolean * @throws IOException when the resource cannot be deleted */ public boolean deleteResource( FlowProcess<? extends Config> flowProcess ) throws IOException { return deleteResource( flowProcess.getConfig() ); }
@Override protected Path[] getLocalCacheFiles( FlowProcess<? extends Configuration> flowProcess ) throws IOException { return DistributedCache.getLocalCacheFiles( flowProcess.getConfig() ); }
@Override public String[] getChildIdentifiers( FlowProcess<? extends Configuration> flowProcess, int depth, boolean fullyQualified ) throws IOException { return getChildIdentifiers( flowProcess.getConfig(), depth, fullyQualified ); }
@Override public long getSize( FlowProcess<? extends Configuration> flowProcess ) throws IOException { return getSize( flowProcess.getConfig() ); }
/** * Method getReplication returns the {@code replication} specified by the underlying file system for * this resource. * * @param flowProcess * @return int * @throws IOException when */ public int getReplication( FlowProcess<? extends Configuration> flowProcess ) throws IOException { return getReplication( flowProcess.getConfig() ); }
@Override public String[] getChildIdentifiers( FlowProcess<? extends Configuration> flowProcess ) throws IOException { return getChildIdentifiers( flowProcess.getConfig(), 1, false ); }
@Override public String[] getChildIdentifiers( FlowProcess<? extends Configuration> flowProcess ) throws IOException { return getChildIdentifiers( flowProcess.getConfig(), 1, false ); }
@Override public boolean isDirectory( FlowProcess<? extends Properties> flowProcess ) throws IOException { return isDirectory( flowProcess.getConfig() ); }
@Override public String[] getChildIdentifiers( FlowProcess<? extends Properties> flowProcess, int depth, boolean fullyQualified ) throws IOException { return getChildIdentifiers( flowProcess.getConfig(), depth, fullyQualified ); }
@Override public JobConf getConfig() { if( conf == null ) conf = HadoopUtil.createJobConf( local.getConfig() ); return conf; }
@Override public long getSize( FlowProcess<? extends Configuration> flowProcess ) throws IOException { return getSize( flowProcess.getConfig() ); }
public static synchronized CompressionCodec getCodec( FlowProcess<? extends Configuration> flowProcess, String defaultCodecs ) { Class<? extends CompressionCodec> codecClass = getCodecClass( flowProcess, defaultCodecs, CompressionCodec.class ); if( codecClass == null ) return null; if( flowProcess instanceof FlowProcessWrapper ) flowProcess = ( (FlowProcessWrapper) flowProcess ).getDelegate(); return ReflectionUtils.newInstance( codecClass, flowProcess.getConfig() ); }