public class DocumentPipeImpl extends Object implements DocumentPipe
Constructor and Description |
---|
DocumentPipeImpl() |
DocumentPipeImpl(int pageSize) |
Modifier and Type | Method and Description |
---|---|
void |
addTransformer(DocumentTransformer transformer) |
void |
applyTransforms(ExportedDocument doc) |
void |
applyTransforms(ExportedDocument[] docs) |
DocumentReader |
getReader() |
List<DocumentTransformer> |
getTransformers() |
DocumentWriter |
getWriter() |
protected void |
handleBatchEnd() |
protected void |
readAndWriteDocs(List<DocumentTranslationMap> maps) |
void |
removeTransformer(DocumentTransformer transformer) |
DocumentTranslationMap |
run() |
void |
setReader(DocumentReader reader) |
void |
setWriter(DocumentWriter writer) |
public DocumentPipeImpl(int pageSize)
public DocumentPipeImpl()
public void addTransformer(DocumentTransformer transformer)
addTransformer
in interface DocumentPipe
public DocumentReader getReader()
getReader
in interface DocumentPipe
public List<DocumentTransformer> getTransformers()
getTransformers
in interface DocumentPipe
public DocumentWriter getWriter()
getWriter
in interface DocumentPipe
public void removeTransformer(DocumentTransformer transformer)
removeTransformer
in interface DocumentPipe
public void setReader(DocumentReader reader)
setReader
in interface DocumentPipe
public void setWriter(DocumentWriter writer)
setWriter
in interface DocumentPipe
public DocumentTranslationMap run() throws IOException
run
in interface DocumentPipe
IOException
protected void handleBatchEnd()
protected void readAndWriteDocs(List<DocumentTranslationMap> maps) throws IOException
IOException
public void applyTransforms(ExportedDocument doc) throws IOException
IOException
public void applyTransforms(ExportedDocument[] docs) throws IOException
IOException
Copyright © 2017 Nuxeo. All rights reserved.