/** * Raise NotImplementedException if any of the partitions has unsupported file format (RC or * Trevni). Can only be called after finalize(). */ public void validateFileFormat() throws NotImplementedException { for (HdfsPartition partition : partitions) { HdfsFileFormat format = partition.getInputFormatDescriptor().getFileFormat(); if (format == HdfsFileFormat.RC_FILE || format == HdfsFileFormat.TREVNI) { StringBuilder error = new StringBuilder(); error .append("Table ") .append(desc.getTable().getFullName()) .append(" has unsupported format ") .append(format.name()); throw new NotImplementedException(error.toString()); } } }