public abstract class AbstractReaderFactory extends Object implements ReaderFactory
Constructor and Description |
---|
AbstractReaderFactory(Lang lang) |
AbstractReaderFactory(Lang lang,
Collection<Lang> altLangs) |
AbstractReaderFactory(Lang lang,
Lang... altLangs) |
Modifier and Type | Method and Description |
---|---|
boolean |
canReadQuads()
Gets whether this factory can produce readers that are capable of reading
quads
|
boolean |
canReadTriples()
Gets whether this factory can produce readers that are capable of reading
triples
|
abstract org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,QuadWritable> |
createQuadReader()
Creates a quad reader
|
abstract org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,TripleWritable> |
createTripleReader()
Creates a triples reader
|
Collection<Lang> |
getAlternativeLanguages()
Gets the alternative languages this factory can produce readers for
|
Lang |
getPrimaryLanguage()
Gets the primary language this factory produces readers for
|
public AbstractReaderFactory(Lang lang)
public AbstractReaderFactory(Lang lang, Collection<Lang> altLangs)
public final Lang getPrimaryLanguage()
ReaderFactory
getPrimaryLanguage
in interface ReaderFactory
public final Collection<Lang> getAlternativeLanguages()
ReaderFactory
getAlternativeLanguages
in interface ReaderFactory
public final boolean canReadQuads()
ReaderFactory
canReadQuads
in interface ReaderFactory
public final boolean canReadTriples()
ReaderFactory
canReadTriples
in interface ReaderFactory
public abstract org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,QuadWritable> createQuadReader() throws IOException
ReaderFactory
createQuadReader
in interface ReaderFactory
IOException
- May be thrown if a quad reader cannot be createdpublic abstract org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,TripleWritable> createTripleReader() throws IOException
ReaderFactory
createTripleReader
in interface ReaderFactory
IOException
- May be thrown if a triple reader cannot be createdLicenced under the Apache License, Version 2.0