/** * The format for the metadata retrieved with each document. The metadata will * be available in each DocumentRecord sent to the OutputListener registered * with onGenerateOutput. * * @param nonDocumentFormat the format for the metadata * @return this instance (for method chaining) */ @Override public ExportToWriterListener withNonDocumentFormat(Format nonDocumentFormat) { super.withNonDocumentFormat(nonDocumentFormat); return this; }
/** * Prepares each ExportListener created by a subclass before it's used to process a QueryBatch. Subclasses are * expected to call this with their own instance of ExportListener or a subclass of it. * * @param listener */ protected void prepareExportListener(ExportListener listener) { if (consistentSnapshot) { listener.withConsistentSnapshot(); } if (categories != null) { for (DocumentManager.Metadata category : categories) { listener.withMetadataCategory(category); } } if (nonDocumentFormat != null) { listener.withNonDocumentFormat(nonDocumentFormat); } if (transform != null) { listener.withTransform(transform); } }