Class CSVProjectionComputation
java.lang.Object
org.nuxeo.lib.stream.computation.AbstractComputation
org.nuxeo.ecm.core.bulk.action.computation.AbstractBulkComputation
org.nuxeo.ecm.platform.csv.export.computation.CSVProjectionComputation
- All Implemented Interfaces:
Computation
Inputs:
- i1: Reads
BulkBucket
- o1: Writes
Recordcontaining csv lines
- Since:
- 10.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OutputStreamWithCSVWriterstatic final Stringstatic final Stringstatic final Stringprotected RenderingContextFields inherited from class org.nuxeo.ecm.core.bulk.action.computation.AbstractBulkComputation
command, commands, delta, SELECT_DOCUMENTS_INFields inherited from class org.nuxeo.lib.stream.computation.AbstractComputation
INPUT_1, INPUT_2, INPUT_3, INPUT_NULL, metadata, OUTPUT_1, OUTPUT_2, OUTPUT_3, OUTPUT_4 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcompute(CoreSession session, List<String> ids, Map<String, Serializable> properties) voidendBucket(ComputationContext context, BulkStatus delta) Can be overridden to write to downstream computation or add results to statusprotected Stringprotected StringgetList(Serializable value) protected StringgetString(Serializable value) voidstartBucket(String bucketKey) Can be overridden to init stuff before processing the bucketMethods inherited from class org.nuxeo.ecm.core.bulk.action.computation.AbstractBulkComputation
getBatchTransactionTimeout, getCommand, getCurrentCommand, isAbortedCommand, loadDocuments, loadDocumentsOneByOne, loginSystemOrUser, processBatchOfDocuments, processFailure, processRecord, updateStatusMethods inherited from class org.nuxeo.lib.stream.computation.AbstractComputation
init, metadata, processRetry, processTimerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.lib.stream.computation.Computation
destroy, signalStop
-
Field Details
-
PARAM_SCHEMAS
- See Also:
-
PARAM_XPATHS
- See Also:
-
PARAM_LANG
- See Also:
-
out
-
renderingCtx
-
-
Constructor Details
-
CSVProjectionComputation
public CSVProjectionComputation()
-
-
Method Details
-
startBucket
Description copied from class:AbstractBulkComputationCan be overridden to init stuff before processing the bucket- Overrides:
startBucketin classAbstractBulkComputation
-
compute
- Specified by:
computein classAbstractBulkComputation
-
endBucket
Description copied from class:AbstractBulkComputationCan be overridden to write to downstream computation or add results to status- Overrides:
endBucketin classAbstractBulkComputation
-
getHeader
-
getData
-
getList
-
getString
-