Package com.marklogic.contentpump
Class ContentWithFileNameWritable<VALUE>
- java.lang.Object
-
- com.marklogic.contentpump.ContentWithFileNameWritable<VALUE>
-
- Type Parameters:
VALUE-
- All Implemented Interfaces:
CustomContent,org.apache.hadoop.io.Writable
public class ContentWithFileNameWritable<VALUE> extends Object implements CustomContent
Custom content that has stored its own file name.
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.commons.logging.LogLOG
-
Constructor Summary
Constructors Constructor Description ContentWithFileNameWritable()ContentWithFileNameWritable(VALUE value, String fileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.marklogic.xcc.ContentgetContent(org.apache.hadoop.conf.Configuration conf, com.marklogic.xcc.ContentCreateOptions options, String uri)Get the content that is about to inserted.protected StringgetEncodedURI(String val)StringgetFileName()VALUEgetValue()voidreadFields(DataInput in)voidsetFileName(String fileName)voidsetValue(VALUE value)voidwrite(DataOutput out)
-
-
-
Method Detail
-
getValue
public VALUE getValue()
-
setValue
public void setValue(VALUE value)
-
getFileName
public String getFileName()
-
setFileName
public void setFileName(String fileName)
-
getContent
public com.marklogic.xcc.Content getContent(org.apache.hadoop.conf.Configuration conf, com.marklogic.xcc.ContentCreateOptions options, String uri)Description copied from interface:CustomContentGet the content that is about to inserted.- Specified by:
getContentin interfaceCustomContent- Parameters:
conf- job configurationoptions- a template for ContentCreateOptions to be used for the content to be created.uri- URI String of DocumentURI- Returns:
- Content
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
write
public void write(DataOutput out) throws IOException
- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
-