geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbarr...@apache.org
Subject [2/3] geode-native git commit: GEODE-2440: Switch hashcode() return type.
Date Thu, 23 Feb 2017 20:36:02 GMT
GEODE-2440: Switch hashcode() return type.

- Conver from unit32_t to int32_t to match server.


Project: http://git-wip-us.apache.org/repos/asf/geode-native/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode-native/commit/71c34a80
Tree: http://git-wip-us.apache.org/repos/asf/geode-native/tree/71c34a80
Diff: http://git-wip-us.apache.org/repos/asf/geode-native/diff/71c34a80

Branch: refs/heads/develop
Commit: 71c34a8010ac6cb8f4583d51d6e787cef9792b00
Parents: 938aa47
Author: Mike Martell <mmartell@pivotal.io>
Authored: Wed Feb 22 15:00:54 2017 -0800
Committer: Jacob Barrett <jbarrett@pivotal.io>
Committed: Thu Feb 23 12:35:16 2017 -0800

----------------------------------------------------------------------
 src/clicache/src/impl/ManagedCacheableDelta.cpp       | 2 +-
 src/clicache/src/impl/ManagedCacheableDelta.hpp       | 2 +-
 src/clicache/src/impl/ManagedCacheableDeltaBytes.cpp  | 2 +-
 src/clicache/src/impl/ManagedCacheableDeltaBytes.hpp  | 2 +-
 src/clicache/src/impl/ManagedCacheableKey.cpp         | 2 +-
 src/clicache/src/impl/ManagedCacheableKey.hpp         | 2 +-
 src/clicache/src/impl/ManagedCacheableKeyBytes.cpp    | 2 +-
 src/clicache/src/impl/ManagedCacheableKeyBytes.hpp    | 2 +-
 src/clicache/src/impl/PdxManagedCacheableKey.cpp      | 2 +-
 src/clicache/src/impl/PdxManagedCacheableKey.hpp      | 2 +-
 src/clicache/src/impl/PdxManagedCacheableKeyBytes.cpp | 2 +-
 src/clicache/src/impl/PdxManagedCacheableKeyBytes.hpp | 2 +-
 src/cppcache/include/geode/CacheableBuiltins.hpp      | 2 +-
 src/cppcache/include/geode/CacheableDate.hpp          | 2 +-
 src/cppcache/include/geode/CacheableEnum.hpp          | 2 +-
 src/cppcache/include/geode/CacheableFileName.hpp      | 2 +-
 src/cppcache/include/geode/CacheableKey.hpp           | 2 +-
 src/cppcache/include/geode/CacheableString.hpp        | 2 +-
 src/cppcache/include/geode/PdxInstance.hpp            | 2 +-
 src/cppcache/include/geode/PdxSerializable.hpp        | 2 +-
 src/cppcache/include/geode/PdxWrapper.hpp             | 2 +-
 src/cppcache/src/CacheableDate.cpp                    | 2 +-
 src/cppcache/src/CacheableEnum.cpp                    | 2 +-
 src/cppcache/src/CacheableFileName.cpp                | 2 +-
 src/cppcache/src/CacheableString.cpp                  | 2 +-
 src/cppcache/src/ClientProxyMembershipID.hpp          | 2 +-
 src/cppcache/src/DSMemberForVersionStamp.hpp          | 2 +-
 src/cppcache/src/DiskStoreId.hpp                      | 2 +-
 src/cppcache/src/EnumInfo.cpp                         | 2 +-
 src/cppcache/src/EnumInfo.hpp                         | 2 +-
 src/cppcache/src/EventIdMap.cpp                       | 2 +-
 src/cppcache/src/EventIdMap.hpp                       | 2 +-
 src/cppcache/src/PdxInstanceImpl.cpp                  | 2 +-
 src/cppcache/src/PdxInstanceImpl.hpp                  | 2 +-
 src/cppcache/src/PdxSerializable.cpp                  | 2 +-
 src/cppcache/src/PdxWrapper.cpp                       | 2 +-
 36 files changed, 36 insertions(+), 36 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/clicache/src/impl/ManagedCacheableDelta.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/ManagedCacheableDelta.cpp b/src/clicache/src/impl/ManagedCacheableDelta.cpp
index 21b3f92..4e3e31f 100644
--- a/src/clicache/src/impl/ManagedCacheableDelta.cpp
+++ b/src/clicache/src/impl/ManagedCacheableDelta.cpp
@@ -252,7 +252,7 @@ namespace apache
 
       }
 
-      uint32_t ManagedCacheableDeltaGeneric::hashcode() const
+      int32_t ManagedCacheableDeltaGeneric::hashcode() const
       {
         throw gcnew System::NotSupportedException;
       }

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/clicache/src/impl/ManagedCacheableDelta.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/ManagedCacheableDelta.hpp b/src/clicache/src/impl/ManagedCacheableDelta.hpp
index 06d0149..9bd06f1 100644
--- a/src/clicache/src/impl/ManagedCacheableDelta.hpp
+++ b/src/clicache/src/impl/ManagedCacheableDelta.hpp
@@ -136,7 +136,7 @@ namespace apache
         /// <summary>
         /// return the hashcode for this key.
         /// </summary>
-        virtual uint32_t hashcode() const;
+        virtual int32_t hashcode() const;
 
         /// <summary>
         /// return true if this key matches other CacheableKey

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/clicache/src/impl/ManagedCacheableDeltaBytes.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/ManagedCacheableDeltaBytes.cpp b/src/clicache/src/impl/ManagedCacheableDeltaBytes.cpp
index a364832..a5f0df2 100644
--- a/src/clicache/src/impl/ManagedCacheableDeltaBytes.cpp
+++ b/src/clicache/src/impl/ManagedCacheableDeltaBytes.cpp
@@ -303,7 +303,7 @@ namespace apache
         return false;
       }
 
-      uint32_t ManagedCacheableDeltaBytesGeneric::hashcode() const
+      int32_t ManagedCacheableDeltaBytesGeneric::hashcode() const
       {
         throw gcnew System::NotSupportedException;
       }

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/clicache/src/impl/ManagedCacheableDeltaBytes.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/ManagedCacheableDeltaBytes.hpp b/src/clicache/src/impl/ManagedCacheableDeltaBytes.hpp
index a2fb447..d5af615 100644
--- a/src/clicache/src/impl/ManagedCacheableDeltaBytes.hpp
+++ b/src/clicache/src/impl/ManagedCacheableDeltaBytes.hpp
@@ -175,7 +175,7 @@ namespace apache
         /// <summary>
         /// return the hashcode for this key.
         /// </summary>
-        virtual uint32_t hashcode() const;
+        virtual int32_t hashcode() const;
 
         /// <summary>
         /// return true if this key matches other CacheableKey

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/clicache/src/impl/ManagedCacheableKey.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/ManagedCacheableKey.cpp b/src/clicache/src/impl/ManagedCacheableKey.cpp
index 155f417..8ed3497 100644
--- a/src/clicache/src/impl/ManagedCacheableKey.cpp
+++ b/src/clicache/src/impl/ManagedCacheableKey.cpp
@@ -202,7 +202,7 @@ namespace apache
         return false;
       }
 
-      uint32_t ManagedCacheableKeyGeneric::hashcode() const
+      int32_t ManagedCacheableKeyGeneric::hashcode() const
       {
         if (m_hashcode != 0)
           return m_hashcode;

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/clicache/src/impl/ManagedCacheableKey.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/ManagedCacheableKey.hpp b/src/clicache/src/impl/ManagedCacheableKey.hpp
index eb34d91..cfd1198 100644
--- a/src/clicache/src/impl/ManagedCacheableKey.hpp
+++ b/src/clicache/src/impl/ManagedCacheableKey.hpp
@@ -125,7 +125,7 @@ namespace apache
         /// <summary>
         /// return the hashcode for this key.
         /// </summary>
-        virtual uint32_t hashcode() const;
+        virtual int32_t hashcode() const;
 
         /// <summary>
         /// Copy the string form of a key into a char* buffer for logging purposes.

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/clicache/src/impl/ManagedCacheableKeyBytes.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/ManagedCacheableKeyBytes.cpp b/src/clicache/src/impl/ManagedCacheableKeyBytes.cpp
index 216e65f..f56f56b 100644
--- a/src/clicache/src/impl/ManagedCacheableKeyBytes.cpp
+++ b/src/clicache/src/impl/ManagedCacheableKeyBytes.cpp
@@ -229,7 +229,7 @@ namespace apache
         return false;
       }
 
-      uint32_t ManagedCacheableKeyBytesGeneric::hashcode() const
+      int32_t ManagedCacheableKeyBytesGeneric::hashcode() const
       {
         return m_hashCode;
       }

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/clicache/src/impl/ManagedCacheableKeyBytes.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/ManagedCacheableKeyBytes.hpp b/src/clicache/src/impl/ManagedCacheableKeyBytes.hpp
index d088de2..62e41cf 100644
--- a/src/clicache/src/impl/ManagedCacheableKeyBytes.hpp
+++ b/src/clicache/src/impl/ManagedCacheableKeyBytes.hpp
@@ -150,7 +150,7 @@ namespace apache
         /// <summary>
         /// return the hashcode for this key.
         /// </summary>
-        virtual uint32_t hashcode() const;
+        virtual int32_t hashcode() const;
 
         /// <summary>
         /// Copy the string form of a key into a char* buffer for logging purposes.

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/clicache/src/impl/PdxManagedCacheableKey.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/PdxManagedCacheableKey.cpp b/src/clicache/src/impl/PdxManagedCacheableKey.cpp
index 5b5f814..35f8b98 100644
--- a/src/clicache/src/impl/PdxManagedCacheableKey.cpp
+++ b/src/clicache/src/impl/PdxManagedCacheableKey.cpp
@@ -191,7 +191,7 @@ namespace apache
         return false;
       }
 
-      uint32_t PdxManagedCacheableKey::hashcode() const
+      int32_t PdxManagedCacheableKey::hashcode() const
       {
         if (m_hashcode != 0)
           return m_hashcode;

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/clicache/src/impl/PdxManagedCacheableKey.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/PdxManagedCacheableKey.hpp b/src/clicache/src/impl/PdxManagedCacheableKey.hpp
index 7951ae3..35086d4 100644
--- a/src/clicache/src/impl/PdxManagedCacheableKey.hpp
+++ b/src/clicache/src/impl/PdxManagedCacheableKey.hpp
@@ -148,7 +148,7 @@ namespace apache
         /// <summary>
         /// return the hashcode for this key.
         /// </summary>
-        virtual uint32_t hashcode() const;
+        virtual int32_t hashcode() const;
 
         /// <summary>
         /// Copy the string form of a key into a char* buffer for logging purposes.

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/clicache/src/impl/PdxManagedCacheableKeyBytes.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/PdxManagedCacheableKeyBytes.cpp b/src/clicache/src/impl/PdxManagedCacheableKeyBytes.cpp
index 6dcfc2d..3688389 100644
--- a/src/clicache/src/impl/PdxManagedCacheableKeyBytes.cpp
+++ b/src/clicache/src/impl/PdxManagedCacheableKeyBytes.cpp
@@ -234,7 +234,7 @@ namespace apache
         return false;
       }
 
-      uint32_t PdxManagedCacheableKeyBytes::hashcode() const
+      int32_t PdxManagedCacheableKeyBytes::hashcode() const
       {
         return m_hashCode;
       }

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/clicache/src/impl/PdxManagedCacheableKeyBytes.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/PdxManagedCacheableKeyBytes.hpp b/src/clicache/src/impl/PdxManagedCacheableKeyBytes.hpp
index 4af1fe6..e1b970c 100644
--- a/src/clicache/src/impl/PdxManagedCacheableKeyBytes.hpp
+++ b/src/clicache/src/impl/PdxManagedCacheableKeyBytes.hpp
@@ -175,7 +175,7 @@ namespace apache
     /// <summary>
     /// return the hashcode for this key.
     /// </summary>
-    virtual uint32_t hashcode( ) const;
+    virtual int32_t hashcode( ) const;
 
     /// <summary>
     /// Copy the string form of a key into a char* buffer for logging purposes.

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/include/geode/CacheableBuiltins.hpp
----------------------------------------------------------------------
diff --git a/src/cppcache/include/geode/CacheableBuiltins.hpp b/src/cppcache/include/geode/CacheableBuiltins.hpp
index 7168c92..a9b066f 100644
--- a/src/cppcache/include/geode/CacheableBuiltins.hpp
+++ b/src/cppcache/include/geode/CacheableBuiltins.hpp
@@ -96,7 +96,7 @@ class CacheableKeyType : public CacheableKey {
   // CacheableKey methods
 
   /** Return the hashcode for this key. */
-  virtual uint32_t hashcode() const {
+  virtual int32_t hashcode() const {
     return apache::geode::client::serializer::hashcode(m_value);
   }
 

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/include/geode/CacheableDate.hpp
----------------------------------------------------------------------
diff --git a/src/cppcache/include/geode/CacheableDate.hpp b/src/cppcache/include/geode/CacheableDate.hpp
index d160dac..1eed4dc 100644
--- a/src/cppcache/include/geode/CacheableDate.hpp
+++ b/src/cppcache/include/geode/CacheableDate.hpp
@@ -120,7 +120,7 @@ class CPPCACHE_EXPORT CacheableDate : public CacheableKey {
    * milliseconds() method.
    *
    * @return the hashcode for this object. */
-  virtual uint32_t hashcode() const;
+  virtual int32_t hashcode() const;
 
   operator time_t() const { return m_timevalue / 1000; }
   operator time_point() const {

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/include/geode/CacheableEnum.hpp
----------------------------------------------------------------------
diff --git a/src/cppcache/include/geode/CacheableEnum.hpp b/src/cppcache/include/geode/CacheableEnum.hpp
index de456e0..50817f4 100644
--- a/src/cppcache/include/geode/CacheableEnum.hpp
+++ b/src/cppcache/include/geode/CacheableEnum.hpp
@@ -124,7 +124,7 @@ class CPPCACHE_EXPORT CacheableEnum : public CacheableKey {
   int32_t getEnumOrdinal() const { return m_ordinal; }
 
   /** @return the hashcode for this key. */
-  virtual uint32_t hashcode() const;
+  virtual int32_t hashcode() const;
 
   /** @return true if this key matches other. */
   virtual bool operator==(const CacheableKey& other) const;

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/include/geode/CacheableFileName.hpp
----------------------------------------------------------------------
diff --git a/src/cppcache/include/geode/CacheableFileName.hpp b/src/cppcache/include/geode/CacheableFileName.hpp
index bb2c6f3..e17bd23 100644
--- a/src/cppcache/include/geode/CacheableFileName.hpp
+++ b/src/cppcache/include/geode/CacheableFileName.hpp
@@ -100,7 +100,7 @@ class CPPCACHE_EXPORT CacheableFileName : public CacheableString {
   virtual const char* className() const { return "CacheableFileName"; }
 
   /** return the hashcode for this key. */
-  virtual uint32_t hashcode() const;
+  virtual int32_t hashcode() const;
 
  protected:
   /** Default constructor. */

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/include/geode/CacheableKey.hpp
----------------------------------------------------------------------
diff --git a/src/cppcache/include/geode/CacheableKey.hpp b/src/cppcache/include/geode/CacheableKey.hpp
index 7388544..e8cfc36 100644
--- a/src/cppcache/include/geode/CacheableKey.hpp
+++ b/src/cppcache/include/geode/CacheableKey.hpp
@@ -46,7 +46,7 @@ class CPPCACHE_EXPORT CacheableKey : public Cacheable {
   virtual bool operator==(const CacheableKey& other) const = 0;
 
   /** return the hashcode for this key. */
-  virtual uint32_t hashcode() const = 0;
+  virtual int32_t hashcode() const = 0;
 
   /** Copy the string form of a key into a char* buffer for logging purposes.
    *

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/include/geode/CacheableString.hpp
----------------------------------------------------------------------
diff --git a/src/cppcache/include/geode/CacheableString.hpp b/src/cppcache/include/geode/CacheableString.hpp
index 6113813..dc1a926 100644
--- a/src/cppcache/include/geode/CacheableString.hpp
+++ b/src/cppcache/include/geode/CacheableString.hpp
@@ -102,7 +102,7 @@ class CPPCACHE_EXPORT CacheableString : public CacheableKey {
   virtual bool operator==(const CacheableKey& other) const;
 
   /** return the hashcode for this key. */
-  virtual uint32_t hashcode() const;
+  virtual int32_t hashcode() const;
 
   /**
    * Factory method for creating an instance of CacheableString from

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/include/geode/PdxInstance.hpp
----------------------------------------------------------------------
diff --git a/src/cppcache/include/geode/PdxInstance.hpp b/src/cppcache/include/geode/PdxInstance.hpp
index bb5722e..e5b8b53 100644
--- a/src/cppcache/include/geode/PdxInstance.hpp
+++ b/src/cppcache/include/geode/PdxInstance.hpp
@@ -478,7 +478,7 @@ class CPPCACHE_EXPORT PdxInstance : public PdxSerializable {
   *
   * @see Serializable::registerPdxType
   */
-  virtual uint32_t hashcode() const = 0;
+  virtual int32_t hashcode() const = 0;
 
   /**
   * Prints out all of the identity fields of this PdxInstance.

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/include/geode/PdxSerializable.hpp
----------------------------------------------------------------------
diff --git a/src/cppcache/include/geode/PdxSerializable.hpp b/src/cppcache/include/geode/PdxSerializable.hpp
index 373f140..d782d9c 100644
--- a/src/cppcache/include/geode/PdxSerializable.hpp
+++ b/src/cppcache/include/geode/PdxSerializable.hpp
@@ -71,7 +71,7 @@ class CPPCACHE_EXPORT PdxSerializable : public CacheableKey {
   virtual bool operator==(const CacheableKey& other) const;
 
   /** return the hashcode for this key. */
-  virtual uint32_t hashcode() const;
+  virtual int32_t hashcode() const;
 
   /**
    *@brief serialize this object

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/include/geode/PdxWrapper.hpp
----------------------------------------------------------------------
diff --git a/src/cppcache/include/geode/PdxWrapper.hpp b/src/cppcache/include/geode/PdxWrapper.hpp
index b9b59bf..16a98c3 100644
--- a/src/cppcache/include/geode/PdxWrapper.hpp
+++ b/src/cppcache/include/geode/PdxWrapper.hpp
@@ -65,7 +65,7 @@ class CPPCACHE_EXPORT PdxWrapper : public PdxSerializable {
   bool operator==(const CacheableKey& other) const;
 
   /** return the hashcode for this key. */
-  uint32_t hashcode() const;
+  int32_t hashcode() const;
 
   /**
   *@brief serialize this object in geode PDX format

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/src/CacheableDate.cpp
----------------------------------------------------------------------
diff --git a/src/cppcache/src/CacheableDate.cpp b/src/cppcache/src/CacheableDate.cpp
index e2ce1f5..40adad8 100644
--- a/src/cppcache/src/CacheableDate.cpp
+++ b/src/cppcache/src/CacheableDate.cpp
@@ -86,7 +86,7 @@ int CacheableDate::year() const {
 
 int64_t CacheableDate::milliseconds() const { return m_timevalue; }
 
-uint32_t CacheableDate::hashcode() const {
+int32_t CacheableDate::hashcode() const {
   return static_cast<int>(m_timevalue) ^ static_cast<int>(m_timevalue >>
32);
 }
 

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/src/CacheableEnum.cpp
----------------------------------------------------------------------
diff --git a/src/cppcache/src/CacheableEnum.cpp b/src/cppcache/src/CacheableEnum.cpp
index ab9c0a2..7db7f6c 100644
--- a/src/cppcache/src/CacheableEnum.cpp
+++ b/src/cppcache/src/CacheableEnum.cpp
@@ -61,7 +61,7 @@ Serializable* CacheableEnum::fromData(apache::geode::client::DataInput&
input) {
   return enumVal.ptr();
 }
 
-uint32_t CacheableEnum::hashcode() const {
+int32_t CacheableEnum::hashcode() const {
   int localHash = 1;
   if (m_hashcode == 0) {
     int prime = 31;

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/src/CacheableFileName.cpp
----------------------------------------------------------------------
diff --git a/src/cppcache/src/CacheableFileName.cpp b/src/cppcache/src/CacheableFileName.cpp
index e04425f..16715e2 100644
--- a/src/cppcache/src/CacheableFileName.cpp
+++ b/src/cppcache/src/CacheableFileName.cpp
@@ -43,7 +43,7 @@ int8_t CacheableFileName::typeId() const {
   return GeodeTypeIds::CacheableFileName;
 }
 
-uint32_t CacheableFileName::hashcode() const {
+int32_t CacheableFileName::hashcode() const {
 #ifndef _WIN32
   if (m_hashcode == 0) {
     m_hashcode = CacheableString::hashcode() ^ 1234321;

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/src/CacheableString.cpp
----------------------------------------------------------------------
diff --git a/src/cppcache/src/CacheableString.cpp b/src/cppcache/src/CacheableString.cpp
index 76fe309..d5973df 100644
--- a/src/cppcache/src/CacheableString.cpp
+++ b/src/cppcache/src/CacheableString.cpp
@@ -129,7 +129,7 @@ bool CacheableString::operator==(const CacheableKey& other) const
{
   }
 }
 
-uint32_t CacheableString::hashcode() const {
+int32_t CacheableString::hashcode() const {
   if (m_str == NULL) {
     return 0;
   }

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/src/ClientProxyMembershipID.hpp
----------------------------------------------------------------------
diff --git a/src/cppcache/src/ClientProxyMembershipID.hpp b/src/cppcache/src/ClientProxyMembershipID.hpp
index 233b25b..86b7150 100644
--- a/src/cppcache/src/ClientProxyMembershipID.hpp
+++ b/src/cppcache/src/ClientProxyMembershipID.hpp
@@ -86,7 +86,7 @@ class ClientProxyMembershipID : public DSMemberForVersionStamp {
   uint32_t getHostPort() const { return m_hostPort; }
   virtual std::string getHashKey();
   virtual int16_t compareTo(DSMemberForVersionStampPtr);
-  virtual uint32_t hashcode() const {
+  virtual int32_t hashcode() const {
     uint32_t result = 0;
     char hostInfo[255] = {0};
     uint32_t offset = 0;

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/src/DSMemberForVersionStamp.hpp
----------------------------------------------------------------------
diff --git a/src/cppcache/src/DSMemberForVersionStamp.hpp b/src/cppcache/src/DSMemberForVersionStamp.hpp
index 8ede10f..59a1d89 100644
--- a/src/cppcache/src/DSMemberForVersionStamp.hpp
+++ b/src/cppcache/src/DSMemberForVersionStamp.hpp
@@ -40,7 +40,7 @@ class DSMemberForVersionStamp : public CacheableKey {
   virtual bool operator==(const CacheableKey& other) const = 0;
 
   /** return the hashcode for this key. */
-  virtual uint32_t hashcode() const = 0;
+  virtual int32_t hashcode() const = 0;
 };
 }  // namespace client
 }  // namespace geode

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/src/DiskStoreId.hpp
----------------------------------------------------------------------
diff --git a/src/cppcache/src/DiskStoreId.hpp b/src/cppcache/src/DiskStoreId.hpp
index 0444e37..ebdee4b 100644
--- a/src/cppcache/src/DiskStoreId.hpp
+++ b/src/cppcache/src/DiskStoreId.hpp
@@ -79,7 +79,7 @@ class DiskStoreId : public DSMemberForVersionStamp {
   static Serializable* createDeserializable() { return new DiskStoreId(); }
   std::string getHashKey();
 
-  virtual uint32_t hashcode() const {
+  virtual int32_t hashcode() const {
     static uint32_t prime = 31;
     uint32_t result = 1;
     result =

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/src/EnumInfo.cpp
----------------------------------------------------------------------
diff --git a/src/cppcache/src/EnumInfo.cpp b/src/cppcache/src/EnumInfo.cpp
index aea4b4d..88df691 100644
--- a/src/cppcache/src/EnumInfo.cpp
+++ b/src/cppcache/src/EnumInfo.cpp
@@ -34,7 +34,7 @@ EnumInfo::EnumInfo(const char *enumClassName, const char *enumName,
   m_enumName = CacheableString::create(enumName);
 }
 
-uint32_t EnumInfo::hashcode() const {
+int32_t EnumInfo::hashcode() const {
   return ((m_enumClassName != NULLPTR ? m_enumClassName->hashcode() : 0) +
           (m_enumName != NULLPTR ? m_enumName->hashcode() : 0));
 }

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/src/EnumInfo.hpp
----------------------------------------------------------------------
diff --git a/src/cppcache/src/EnumInfo.hpp b/src/cppcache/src/EnumInfo.hpp
index 47f842f..4571f62 100644
--- a/src/cppcache/src/EnumInfo.hpp
+++ b/src/cppcache/src/EnumInfo.hpp
@@ -54,7 +54,7 @@ class CPPCACHE_EXPORT EnumInfo : public CacheableKey {
     return CacheableString::create("EnumInfo");
   }
   virtual bool operator==(const CacheableKey& other) const;
-  virtual uint32_t hashcode() const;
+  virtual int32_t hashcode() const;
 
   virtual int8_t DSFID() const;
   CacheableStringPtr getEnumClassName() const { return m_enumClassName; }

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/src/EventIdMap.cpp
----------------------------------------------------------------------
diff --git a/src/cppcache/src/EventIdMap.cpp b/src/cppcache/src/EventIdMap.cpp
index 1ccb790..a5f63f7 100644
--- a/src/cppcache/src/EventIdMap.cpp
+++ b/src/cppcache/src/EventIdMap.cpp
@@ -197,7 +197,7 @@ int32_t EventSource::getMemIdLen() { return m_srcIdLen - sizeof(m_thrId);
}
 
 int64_t EventSource::getThrId() { return m_thrId; }
 
-uint32_t EventSource::hashcode() {
+int32_t EventSource::hashcode() {
   if (m_srcId == NULL || m_srcIdLen <= 0) {
     return 0;
   }

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/src/EventIdMap.hpp
----------------------------------------------------------------------
diff --git a/src/cppcache/src/EventIdMap.hpp b/src/cppcache/src/EventIdMap.hpp
index fc16e75..a752289 100644
--- a/src/cppcache/src/EventIdMap.hpp
+++ b/src/cppcache/src/EventIdMap.hpp
@@ -150,7 +150,7 @@ class CPPCACHE_EXPORT EventSource : public SharedBase {
   EventSource(const char *memId, int32_t memIdLen, int64_t thrId);
   ~EventSource();
 
-  uint32_t hashcode();
+  int32_t hashcode();
   bool operator==(const EventSource &rhs) const;
 
   // Accessors

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/src/PdxInstanceImpl.cpp
----------------------------------------------------------------------
diff --git a/src/cppcache/src/PdxInstanceImpl.cpp b/src/cppcache/src/PdxInstanceImpl.cpp
index 775571a..ebafcda 100644
--- a/src/cppcache/src/PdxInstanceImpl.cpp
+++ b/src/cppcache/src/PdxInstanceImpl.cpp
@@ -739,7 +739,7 @@ int PdxInstanceImpl::deepArrayHashCode(CacheablePtr obj) {
   }
 }
 
-uint32_t PdxInstanceImpl::hashcode() const {
+int32_t PdxInstanceImpl::hashcode() const {
   int hashCode = 1;
 
   PdxTypePtr pt = getPdxType();

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/src/PdxInstanceImpl.hpp
----------------------------------------------------------------------
diff --git a/src/cppcache/src/PdxInstanceImpl.hpp b/src/cppcache/src/PdxInstanceImpl.hpp
index f8882f6..0eadd38 100644
--- a/src/cppcache/src/PdxInstanceImpl.hpp
+++ b/src/cppcache/src/PdxInstanceImpl.hpp
@@ -931,7 +931,7 @@ class CPPCACHE_EXPORT PdxInstanceImpl : public WritablePdxInstance {
   *
   * @see Serializable::registerPdxType
   */
-  virtual uint32_t hashcode() const;
+  virtual int32_t hashcode() const;
 
   /**
   * Prints out all of the identity fields of this PdxInstance.

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/src/PdxSerializable.cpp
----------------------------------------------------------------------
diff --git a/src/cppcache/src/PdxSerializable.cpp b/src/cppcache/src/PdxSerializable.cpp
index e579c46..fcb833e 100644
--- a/src/cppcache/src/PdxSerializable.cpp
+++ b/src/cppcache/src/PdxSerializable.cpp
@@ -57,7 +57,7 @@ bool PdxSerializable::operator==(const CacheableKey& other) const {
   return (this == &other);
 }
 
-uint32_t PdxSerializable::hashcode() const {
+int32_t PdxSerializable::hashcode() const {
   uint64_t hash = static_cast<uint64_t>((intptr_t)this);
   return apache::geode::client::serializer::hashcode(hash);
 }

http://git-wip-us.apache.org/repos/asf/geode-native/blob/71c34a80/src/cppcache/src/PdxWrapper.cpp
----------------------------------------------------------------------
diff --git a/src/cppcache/src/PdxWrapper.cpp b/src/cppcache/src/PdxWrapper.cpp
index f208c8f..6943567 100644
--- a/src/cppcache/src/PdxWrapper.cpp
+++ b/src/cppcache/src/PdxWrapper.cpp
@@ -124,7 +124,7 @@ bool PdxWrapper::operator==(const CacheableKey &other) const {
   return (intptr_t)m_userObject == (intptr_t)wrapper->m_userObject;
 }
 
-uint32_t PdxWrapper::hashcode() const {
+int32_t PdxWrapper::hashcode() const {
   uint64_t hash = static_cast<uint64_t>((intptr_t)m_userObject);
   return apache::geode::client::serializer::hashcode(hash);
 }


Mime
View raw message