You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ja...@apache.org on 2014/10/20 22:16:54 UTC
git commit: PHOENIX-1369 Mark encode/decode methods as deprecated
Repository: phoenix
Updated Branches:
refs/heads/3.0 5b9f71569 -> 5ad72cd68
PHOENIX-1369 Mark encode/decode methods as deprecated
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/5ad72cd6
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/5ad72cd6
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/5ad72cd6
Branch: refs/heads/3.0
Commit: 5ad72cd68f059d9c66ea4ecaf6760f2719b9117b
Parents: 5b9f715
Author: James Taylor <ja...@apache.org>
Authored: Mon Oct 20 13:17:40 2014 -0700
Committer: James Taylor <ja...@apache.org>
Committed: Mon Oct 20 13:17:40 2014 -0700
----------------------------------------------------------------------
.../src/main/java/org/apache/phoenix/util/PhoenixRuntime.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/phoenix/blob/5ad72cd6/phoenix-core/src/main/java/org/apache/phoenix/util/PhoenixRuntime.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/util/PhoenixRuntime.java b/phoenix-core/src/main/java/org/apache/phoenix/util/PhoenixRuntime.java
index b88095f..da9ee16 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/util/PhoenixRuntime.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/util/PhoenixRuntime.java
@@ -418,6 +418,7 @@ public class PhoenixRuntime {
* @see #decodePK(Connection, String, byte[]) to decode the byte[] back to the
* values
*/
+ @Deprecated
public static byte[] encodePK(Connection conn, String fullTableName, Object[] values) throws SQLException {
PTable table = getTable(conn, fullTableName);
PhoenixConnection pconn = conn.unwrap(PhoenixConnection.class);
@@ -461,6 +462,7 @@ public class PhoenixRuntime {
* @return the Object values encoded in the byte array value
* @throws SQLException
*/
+ @Deprecated
public static Object[] decodePK(Connection conn, String name, byte[] value) throws SQLException {
PTable table = getTable(conn, name);
PhoenixConnection pconn = conn.unwrap(PhoenixConnection.class);