org.qi4j.spi.query
Interface IndexExporter

All Known Subinterfaces:
ElasticSearchIndexExporter, PostgreSQLService, RdfExporter, RdfIndexingEngineService
All Known Implementing Classes:
ElasticSearchIndexExporter.Mixin, PostgreSQLIndexExporter, RdfExporter.RdfExporterMixin

public interface IndexExporter

Interface for exporting the index currently held by the Indexing Engine. Index Engine implementations are encouraged to implement this interface to allow for trouble-shooting index related problems.


Method Summary
 void exportFormalToWriter(java.io.PrintWriter out)
          Write the index to the provided print writer in an implementation specific, machine-readable format, preferably either XML or JSON.
 void exportReadableToStream(java.io.PrintStream out)
          Write the index to the provided output stream in an implementation specific, human-readable format.
 

Method Detail

exportReadableToStream

void exportReadableToStream(java.io.PrintStream out)
                            throws java.io.IOException,
                                   java.lang.UnsupportedOperationException
Write the index to the provided output stream in an implementation specific, human-readable format.

Parameters:
out - The output stream that the index will be sent to.
Throws:
java.io.IOException - if an IOException occurs in the underlying PrintStream.
java.lang.UnsupportedOperationException - if the method is not supported by this implementation.

exportFormalToWriter

void exportFormalToWriter(java.io.PrintWriter out)
                          throws java.io.IOException,
                                 java.lang.UnsupportedOperationException
Write the index to the provided print writer in an implementation specific, machine-readable format, preferably either XML or JSON.

Parameters:
out - The print writer that the index will be sent to.
Throws:
java.io.IOException - if an IOException occurs in the underlying PrintWriter.
java.lang.UnsupportedOperationException - if the method is not supported by this implementation.