Class DocIdString

    • Constructor Detail

      • DocIdString

        public DocIdString​(java.lang.String namespace,
                           java.lang.String namespaceSpecific)
        Create a doc scheme object. doc:<namespace>:<namespaceSpecific>
        Parameters:
        namespace - The namespace of this document id.
        namespaceSpecific - The namespace specific part.
    • Method Detail

      • getLocation

        public long getLocation()
        Get the location of this document id. The location is used for distribution in clusters. For the doc scheme, the location is a hash of the whole id.
        Specified by:
        getLocation in class IdString
        Returns:
        The 64 bit location.
      • getSchemeSpecific

        public java.lang.String getSchemeSpecific()
        Get the scheme specific part. Which is non-existing for doc scheme.
        Specified by:
        getSchemeSpecific in class IdString