Package org.firebirdsql.gds.ng
Class ExecutionPlanProcessor
- java.lang.Object
- 
- org.firebirdsql.gds.ng.ExecutionPlanProcessor
 
- 
- All Implemented Interfaces:
- InfoProcessor<java.lang.String>
 
 public final class ExecutionPlanProcessor extends java.lang.Object implements InfoProcessor<java.lang.String> InfoProcessor to retrieve the (normal) execution plan of a statement.- Since:
- 3.0
- Author:
- Mark Rotteveel
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.firebirdsql.gds.ng.InfoProcessorInfoProcessor.StatementInfo
 
- 
 - 
Constructor SummaryConstructors Constructor Description ExecutionPlanProcessor(FbStatement statement)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getDescribeExplainedPlanInfoItems()Get the byte array with the describe detailed plan info items.byte[]getDescribePlanInfoItems()Get the byte array with the describe plan info items as supported by this processor, for use withFbStatement.getSqlInfo(byte[], int, InfoProcessor)orFbStatement.getSqlInfo(byte[], int).java.lang.Stringprocess(byte[] buffer)Process an infoResponse block into an object of type T.
 
- 
- 
- 
Constructor Detail- 
ExecutionPlanProcessorpublic ExecutionPlanProcessor(FbStatement statement) 
 
- 
 - 
Method Detail- 
processpublic java.lang.String process(byte[] buffer) throws java.sql.SQLExceptionDescription copied from interface:InfoProcessorProcess an infoResponse block into an object of type T.- Specified by:
- processin interface- InfoProcessor<java.lang.String>
- Parameters:
- buffer- byte array containing the server response to an info-request.
- Returns:
- Processed response of type T (usually - but not required - a newly created object).
- Throws:
- InfoTruncatedException- (optional) if- infoResponseis truncated and this processor could not recover by itself
- java.sql.SQLException- for errors during processing the infoResponse.
 
 - 
getDescribePlanInfoItemspublic byte[] getDescribePlanInfoItems() Get the byte array with the describe plan info items as supported by this processor, for use withFbStatement.getSqlInfo(byte[], int, InfoProcessor)orFbStatement.getSqlInfo(byte[], int).- Returns:
- plan info items
 
 - 
getDescribeExplainedPlanInfoItemspublic byte[] getDescribeExplainedPlanInfoItems() Get the byte array with the describe detailed plan info items.- Returns:
- detailed plan info items
 
 
- 
 
-