Package com.marklogic.contentpump
Class OutputArchive
- java.lang.Object
-
- com.marklogic.contentpump.OutputArchive
-
- All Implemented Interfaces:
InternalConstants
public class OutputArchive extends Object implements InternalConstants
Archive for export, create zip file(s).
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXTENSIONstatic org.apache.commons.logging.LogLOG-
Fields inherited from interface com.marklogic.mapreduce.InternalConstants
MAX_BUFFER_SIZE
-
-
Constructor Summary
Constructors Constructor Description OutputArchive(String path, org.apache.hadoop.conf.Configuration conf)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected static StringnewPackagePath(String canonicalPath, int count, int width)longwrite(String outputPath, byte[] bytes, boolean isExportDoc)voidwrite(String uri, InputStream is, long size, boolean isExportDoc)
-
-
-
Field Detail
-
LOG
public static final org.apache.commons.logging.Log LOG
-
EXTENSION
public static final String EXTENSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OutputArchive
public OutputArchive(String path, org.apache.hadoop.conf.Configuration conf)
-
-
Method Detail
-
newPackagePath
protected static String newPackagePath(String canonicalPath, int count, int width)
- Parameters:
canonicalPath-count-width-- Returns:
-
write
public void write(String uri, InputStream is, long size, boolean isExportDoc) throws IOException
- Throws:
IOException
-
write
public long write(String outputPath, byte[] bytes, boolean isExportDoc) throws IOException
- Throws:
IOException
-
close
public void close() throws IOException- Throws:
IOException
-
-