Interface ResultsPostProcessor
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(Properties props) Initializes the post-processorboolean
postProcessResults
(boolean result) Post-process incoming ASK resultspostProcessResults
(Iterator<Triple> triples) Post-process incoming CONSTRUCT/DESCRIBE resultspostProcessResults
(ResultSet results) Post-process incoming SELECT resultspostProcessResultsMetadata
(AskResultsMetadata metadata) Post-process ASK results metadataPost-process SELECT results metadataPost-process CONSTRUCT/DESCRIBE results metadata
-
Method Details
-
initialize
Initializes the post-processorCalled when the post-processor is first created, properties object provides access to all connection configuration parameters except password
- Parameters:
props
- Connection properties- Throws:
SQLException
- Thrown if there is a problem initializing the post-processor
-
postProcessResults
Post-process incoming SELECT resultsThis is invoked after Jena JDBC has executed the SELECT query but before it gets wrapped in a JDBC result set. This allows an application to do manipulations on the results before they get presented through the JDBC API.
- Parameters:
results
- Incoming results- Returns:
- Processed results
- Throws:
SQLException
- Thrown if there is a problem applying the post-processor
-
postProcessResults
Post-process incoming CONSTRUCT/DESCRIBE resultsThis is invoked after Jena JDBC has executed a CONSTRUCT/DESCRIBE query but before it gets wrapped in a JDBC result set. This allows an application to do manipulations on the results before they get presented through the JDBC API.
- Parameters:
triples
- Incoming results- Returns:
- Processed results
- Throws:
SQLException
- Thrown if there is a problem applying the post-processor
-
postProcessResults
Post-process incoming ASK resultsThis is invoked after Jena JDBC has executed an ASK query but before it gets wrapped in a JDBC result set. This allows an application to do manipulations on the results before they get presented through the JDBC API.
- Parameters:
result
- Incoming results- Returns:
- Processed results
- Throws:
SQLException
- Thrown if there is a problem applying the post-processor
-
postProcessResultsMetadata
SelectResultsMetadata postProcessResultsMetadata(SelectResultsMetadata metadata) throws SQLException Post-process SELECT results metadataThis is invoked after Jena JDBC has wrapped SELECT query results in a JDBC result set and calculated metadata for the results but before that metadata is presented through the JDBC API. This allows an application to make adjustments to the metadata such as changing detected column types in order to be work better with certain tools or to override the default type mappings that Jena JDBC makes.
- Parameters:
metadata
- Calculated metadata- Returns:
- Processed metadata
- Throws:
SQLException
- Thrown if there is a problem applying the post-processor
-
postProcessResultsMetadata
TripleResultsMetadata postProcessResultsMetadata(TripleResultsMetadata metadata) throws SQLException Post-process CONSTRUCT/DESCRIBE results metadataThis is invoked after Jena JDBC has wrapped CONSTRUCT/DESCRIBE query results in a JDBC result set and calculated metadata for the results but before that metadata is presented through the JDBC API. This allows an application to make adjustments to the metadata such as changing detected column types in order to be work better with certain tools or to override the default type mappings that Jena JDBC makes.
- Parameters:
metadata
- Calculated metadata- Returns:
- Processed metadata
- Throws:
SQLException
- Thrown if there is a problem applying the post-processor
-
postProcessResultsMetadata
Post-process ASK results metadataThis is invoked after Jena JDBC has wrapped ASK query results in a JDBC result set and calculated metadata for the results but before that metadata is presented through the JDBC API. This allows an application to make adjustments to the metadata such as changing detected column types in order to be work better with certain tools or to override the default type mappings that Jena JDBC makes.
- Parameters:
metadata
- Calculated metadata- Returns:
- Processed metadata
- Throws:
SQLException
- Thrown if there is a problem applying the post-processor
-