/** Defers to {@link BAMInputFormat}, {@link CRAMInputFormat}, or * {@link SAMInputFormat} as appropriate for the given path. */ @Override public boolean isSplitable(JobContext job, Path path) { if (this.conf == null) this.conf = job.getConfiguration(); try { final SAMFormat fmt = getFormat(path); if (fmt == null) return super.isSplitable(job, path); switch (fmt) { case SAM: return samIF.isSplitable(job, path); case BAM: return bamIF.isSplitable(job, path); case CRAM: return cramIF.isSplitable(job, path); default: assert false; return false; } } catch (PathNotFoundException e) { return super.isSplitable(job, path); } }
/** Defers to {@link BAMInputFormat}, {@link CRAMInputFormat}, or * {@link SAMInputFormat} as appropriate for the given path. */ @Override public boolean isSplitable(JobContext job, Path path) { if (this.conf == null) this.conf = job.getConfiguration(); try { final SAMFormat fmt = getFormat(path); if (fmt == null) return super.isSplitable(job, path); switch (fmt) { case SAM: return samIF.isSplitable(job, path); case BAM: return bamIF.isSplitable(job, path); case CRAM: return cramIF.isSplitable(job, path); default: assert false; return false; } } catch (PathNotFoundException e) { return super.isSplitable(job, path); } }
/** Defers to {@link BAMInputFormat}, {@link CRAMInputFormat}, or * {@link SAMInputFormat} as appropriate for the given path. */ @Override public boolean isSplitable(JobContext job, Path path) { if (this.conf == null) this.conf = job.getConfiguration(); try { final SAMFormat fmt = getFormat(path); if (fmt == null) return super.isSplitable(job, path); switch (fmt) { case SAM: return samIF.isSplitable(job, path); case BAM: return bamIF.isSplitable(job, path); case CRAM: return cramIF.isSplitable(job, path); default: assert false; return false; } } catch (PathNotFoundException e) { return super.isSplitable(job, path); } }