Permalink
Browse files

refactor: deprecate Fastpath API (#903)

mark fastpath(int, FastpathArg[]) as Deprecated
deprecate Fastpath API
  • Loading branch information...
AlexElin authored and davecramer committed May 4, 2018
1 parent dde8c02 commit f8e21b63071f39f7f7754bfbfd051828884c1fd5
@@ -89,7 +89,12 @@
* @return Fastpath API for the current connection
* @throws SQLException if something wrong happens
* @since 7.3
* @deprecated This API is somewhat obsolete, as one may achieve similar performance
* and greater functionality by setting up a prepared statement to define
* the function call. Then, executing the statement with binary transmission of parameters
* and results substitutes for a fast-path function call.
*/
@Deprecated
Fastpath getFastpathAPI() throws SQLException;
/**
@@ -239,7 +239,12 @@ Object createQueryKey(String sql, boolean escapeProcessing, boolean isParameteri
*
* @param count the number of parameters the fastpath call will take
* @return a ParameterList suitable for passing to {@link #fastpathCall}.
* @deprecated This API is somewhat obsolete, as one may achieve similar performance
* and greater functionality by setting up a prepared statement to define
* the function call. Then, executing the statement with binary transmission of parameters
* and results substitutes for a fast-path function call.
*/
@Deprecated
ParameterList createFastpathParameters(int count);
/**
@@ -252,7 +257,12 @@ Object createQueryKey(String sql, boolean escapeProcessing, boolean isParameteri
* @return the binary-format result of the fastpath call, or <code>null</code> if a void result
* was returned
* @throws SQLException if an error occurs while executing the fastpath call
* @deprecated This API is somewhat obsolete, as one may achieve similar performance
* and greater functionality by setting up a prepared statement to define
* the function call. Then, executing the statement with binary transmission of parameters
* and results substitutes for a fast-path function call.
*/
@Deprecated
byte[] fastpathCall(int fnid, ParameterList params, boolean suppressBegin) throws SQLException;
/**
@@ -27,7 +27,13 @@
*
* <p>
* It is based around the file src/interfaces/libpq/fe-exec.c
*
* @deprecated This API is somewhat obsolete, as one may achieve similar performance
* and greater functionality by setting up a prepared statement to define
* the function call. Then, executing the statement with binary transmission of parameters
* and results substitutes for a fast-path function call.
*/
@Deprecated
public class Fastpath {
// Java passes oids around as longs, but in the backend
// it's an unsigned int, so we use this to make the conversion
@@ -17,7 +17,13 @@
/**
* Each fastpath call requires an array of arguments, the number and type dependent on the function
* being called.
*
* @deprecated This API is somewhat obsolete, as one may achieve similar performance
* and greater functionality by setting up a prepared statement to define
* the function call. Then, executing the statement with binary transmission of parameters
* and results substitutes for a fast-path function call.
*/
@Deprecated
public class FastpathArg {
/**
* Encoded byte value of argument.

0 comments on commit f8e21b6

Please sign in to comment.