public SequenceFile . Writer createSequenceFile ( String newPath ) throws IOException { if ( codec != null ) { return SequenceFile . createWriter ( fs , conf , new Path ( newPath ) , Text . class , MessageWritable . class , SequenceFile . CompressionType . BLOCK , codec ) ; } else { return SequenceFile . createWriter ( fs , conf , new Path ( newPath ) , Text . class , MessageWritable . class , SequenceFile . CompressionType . NONE , codec ) ; } }
Create a new sequence file