initialize a direct map
@param new_maintain_direct_map if true, create a direct map, else clear it
See Implementation
initialize a direct map
@param new_maintain_direct_map if true, create a direct map, else clear it