use of edu.umd.hooka.VocabularyWritable in project Cloud9 by lintool.
the class HadoopAlign method loadVocab.
public static Vocab loadVocab(Path path, Configuration job) throws IOException {
org.apache.hadoop.conf.Configuration conf = new org.apache.hadoop.conf.Configuration(job);
FileSystem fileSys = FileSystem.get(conf);
DataInput in = new DataInputStream(new BufferedInputStream(fileSys.open(path)));
VocabularyWritable at = new VocabularyWritable();
at.readFields(in);
return at;
}
use of edu.umd.hooka.VocabularyWritable in project Cloud9 by lintool.
the class HadoopAlign method loadVocab.
public static Vocab loadVocab(Path path, FileSystem fileSys) throws IOException {
DataInput in = new DataInputStream(new BufferedInputStream(fileSys.open(path)));
VocabularyWritable at = new VocabularyWritable();
at.readFields(in);
return at;
}
Aggregations