00001 #ifndef ISPN_HOTROD_HASH_H 00002 #define ISPN_HOTROD_HASH_H 00003 00004 #include "infinispan/hotrod/types.h" 00005 #include "infinispan/hotrod/ImportExport.h" 00006 00007 namespace infinispan { 00008 namespace hotrod { 00017 class HR_EXTERN Hash { 00018 public: 00019 virtual ~Hash() {}; 00020 00021 virtual uint32_t hash(const hrbytes& key) const = 0; 00022 virtual uint32_t hash(int32_t key) const = 0; 00023 }; 00024 00025 }} // namespace 00026 00027 #endif /* ISPN_HOTROD_HASH_H */