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 2017/09/21 17:51:54 UTC

[5/5] phoenix git commit: PHOENIX-4189 Introduce a class that wraps the Map of primary key data (addendum)

PHOENIX-4189 Introduce a class that wraps the Map of primary key data (addendum)


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/e47e7847
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/e47e7847
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/e47e7847

Branch: refs/heads/master
Commit: e47e78477802940148b6457021a6362cefb002e6
Parents: 3fb104e
Author: James Taylor <jt...@salesforce.com>
Authored: Mon Sep 18 16:30:19 2017 -0700
Committer: James Taylor <jt...@salesforce.com>
Committed: Thu Sep 21 10:51:19 2017 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/phoenix/hive/PrimaryKeyData.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/e47e7847/phoenix-hive/src/main/java/org/apache/phoenix/hive/PrimaryKeyData.java
----------------------------------------------------------------------
diff --git a/phoenix-hive/src/main/java/org/apache/phoenix/hive/PrimaryKeyData.java b/phoenix-hive/src/main/java/org/apache/phoenix/hive/PrimaryKeyData.java
index b5e9dd9..7773997 100644
--- a/phoenix-hive/src/main/java/org/apache/phoenix/hive/PrimaryKeyData.java
+++ b/phoenix-hive/src/main/java/org/apache/phoenix/hive/PrimaryKeyData.java
@@ -77,7 +77,7 @@ public class PrimaryKeyData implements Serializable{
     }
 
     public static PrimaryKeyData deserialize(InputStream input) throws IOException, ClassNotFoundException {
-        try (LookAheadObjectInputStream ois = new LookAheadObjectInputStream((InputStream) input)) {
+        try (LookAheadObjectInputStream ois = new LookAheadObjectInputStream(input)) {
             Object obj = ois.readObject();
             if (obj instanceof PrimaryKeyData) {
                 return (PrimaryKeyData) obj;