public abstract class AbstractFileQueryResultsHandler
extends org.protempa.dest.AbstractQueryResultsHandler
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFileQueryResultsHandler(DestinationEntity destinationEntity,
EtlProperties etlProperties) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
cleanup()
Called by
close() to give subclasses an opportunity to clean up
resources that they have created. |
void |
close()
Calls
cleanup(), and then closes the output stream that is passed into start(java.io.OutputStream, java.util.Collection). |
void |
start(Collection<org.protempa.PropositionDefinition> cache)
Creates an output stream and calls
start(java.io.OutputStream, java.util.Collection). |
protected abstract void |
start(OutputStream outputStream,
Collection<org.protempa.PropositionDefinition> cache)
Called by
start(java.util.Collection) to given subclasses an opportunity to create
resources and access the output stream. |
cancel, finish, getDisplayName, getId, validateprotected AbstractFileQueryResultsHandler(DestinationEntity destinationEntity, EtlProperties etlProperties)
public final void start(Collection<org.protempa.PropositionDefinition> cache) throws org.protempa.dest.QueryResultsHandlerProcessingException
start(java.io.OutputStream, java.util.Collection).start in interface org.protempa.dest.QueryResultsHandlerstart in class org.protempa.dest.AbstractQueryResultsHandlercache - org.protempa.dest.QueryResultsHandlerProcessingException - if an error occurred.public void close()
throws org.protempa.dest.QueryResultsHandlerCloseException
cleanup(), and then closes the output stream that is passed into start(java.io.OutputStream, java.util.Collection).close in interface AutoCloseableclose in interface org.protempa.dest.QueryResultsHandlerclose in class org.protempa.dest.AbstractQueryResultsHandlerorg.protempa.dest.QueryResultsHandlerCloseException - if an error occurred.protected abstract void start(OutputStream outputStream, Collection<org.protempa.PropositionDefinition> cache) throws org.protempa.dest.QueryResultsHandlerProcessingException
start(java.util.Collection) to given subclasses an opportunity to create
resources and access the output stream.outputStream - cache - org.protempa.dest.QueryResultsHandlerProcessingExceptionprotected abstract void cleanup()
throws org.protempa.dest.QueryResultsHandlerCloseException
close() to give subclasses an opportunity to clean up
resources that they have created.org.protempa.dest.QueryResultsHandlerCloseException - if an error occurred.Copyright © 2012–2018 Emory University. All rights reserved.