libgrape-lite
A C++ library for parallel graph processing
Public Member Functions | Private Types | Private Attributes | List of all members
grape::PTHashIdxer< OID_T, VID_T > Class Template Reference
Inheritance diagram for grape::PTHashIdxer< OID_T, VID_T >:
grape::IdxerBase< OID_T, VID_T >

Public Member Functions

 PTHashIdxer (Array< char, Allocator< char >> &&buf)
 
void Init (void *buffer, size_t size)
 
bool get_key (VID_T vid, internal_oid_t &oid) const override
 
bool get_index (const internal_oid_t &oid, VID_T &vid) const override
 
IdxerType type () const override
 
void serialize (std::unique_ptr< IOAdaptorBase > &writer) override
 
void deserialize (std::unique_ptr< IOAdaptorBase > &reader) override
 
size_t size () const override
 
size_t memory_usage () const override
 

Private Types

using internal_oid_t = typename InternalOID< OID_T >::type
 

Private Attributes

Array< char, Allocator< char > > buffer_
 
PHIndexerView< internal_oid_t, VID_T > idxer_