public abstract class AbstractTriplesOnlyWriterFactory extends Object implements WriterFactory
| Constructor and Description |
|---|
AbstractTriplesOnlyWriterFactory(Lang lang) |
AbstractTriplesOnlyWriterFactory(Lang lang,
Collection<Lang> altLangs) |
AbstractTriplesOnlyWriterFactory(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
|
<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 AbstractTriplesOnlyWriterFactory(Lang lang)
public AbstractTriplesOnlyWriterFactory(Lang lang, Lang... altLangs)
public AbstractTriplesOnlyWriterFactory(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 final <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