public abstract class AbstractQuadsOnlyReaderFactory extends Object implements ReaderFactory
| Constructor and Description |
|---|
AbstractQuadsOnlyReaderFactory(Lang lang) |
AbstractQuadsOnlyReaderFactory(Lang lang,
Collection<Lang> altLangs) |
AbstractQuadsOnlyReaderFactory(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
|
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 AbstractQuadsOnlyReaderFactory(Lang lang)
public AbstractQuadsOnlyReaderFactory(Lang lang, Collection<Lang> altLangs)
public final Lang getPrimaryLanguage()
ReaderFactorygetPrimaryLanguage in interface ReaderFactorypublic final Collection<Lang> getAlternativeLanguages()
ReaderFactorygetAlternativeLanguages in interface ReaderFactorypublic final boolean canReadQuads()
ReaderFactorycanReadQuads in interface ReaderFactorypublic final boolean canReadTriples()
ReaderFactorycanReadTriples in interface ReaderFactorypublic abstract org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,QuadWritable> createQuadReader() throws IOException
ReaderFactorycreateQuadReader in interface ReaderFactoryIOException - May be thrown if a quad reader cannot be createdpublic final org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,TripleWritable> createTripleReader() throws IOException
ReaderFactorycreateTripleReader in interface ReaderFactoryIOException - May be thrown if a triple reader cannot be createdLicenced under the Apache License, Version 2.0