public abstract class AbstractWriterFactory extends Object implements WriterFactory
| Constructor and Description |
|---|
AbstractWriterFactory(Lang lang) |
AbstractWriterFactory(Lang lang,
Collection<Lang> altLangs) |
AbstractWriterFactory(Lang lang,
Lang... altLangs) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canWriteQuads()
Gets whether this factory can produce writers that are capable of reading
quads
|
boolean |
canWriteTriples()
Gets whether this factory can produce writers that are capable of reading
triples
|
abstract <TKey> org.apache.hadoop.mapreduce.RecordWriter<TKey,QuadWritable> |
createQuadWriter(Writer writer,
org.apache.hadoop.conf.Configuration config)
Creates a quad writer
|
abstract <TKey> org.apache.hadoop.mapreduce.RecordWriter<TKey,TripleWritable> |
createTripleWriter(Writer writer,
org.apache.hadoop.conf.Configuration config)
Creates a triples writer
|
Collection<Lang> |
getAlternativeLanguages()
Gets the alternative languages this factory can produce writers for
|
Lang |
getPrimaryLanguage()
Gets the primary language this factory produces writers for
|
public AbstractWriterFactory(Lang lang)
public AbstractWriterFactory(Lang lang, Collection<Lang> altLangs)
public final Lang getPrimaryLanguage()
WriterFactorygetPrimaryLanguage in interface WriterFactorypublic final Collection<Lang> getAlternativeLanguages()
WriterFactorygetAlternativeLanguages in interface WriterFactorypublic final boolean canWriteQuads()
WriterFactorycanWriteQuads in interface WriterFactorypublic final boolean canWriteTriples()
WriterFactorycanWriteTriples in interface WriterFactorypublic abstract <TKey> org.apache.hadoop.mapreduce.RecordWriter<TKey,QuadWritable> createQuadWriter(Writer writer, org.apache.hadoop.conf.Configuration config) throws IOException
WriterFactorycreateQuadWriter in interface WriterFactorywriter - Writerconfig - ConfigurationIOException - May be thrown if a quad writer cannot be createdpublic abstract <TKey> org.apache.hadoop.mapreduce.RecordWriter<TKey,TripleWritable> createTripleWriter(Writer writer, org.apache.hadoop.conf.Configuration config) throws IOException
WriterFactorycreateTripleWriter in interface WriterFactorywriter - Writerconfig - ConfigurationIOException - May be thrown if a triple writer cannot be createdLicenced under the Apache License, Version 2.0