Class DocumentId

    • Constructor Detail

      • DocumentId

        public DocumentId​(com.yahoo.vespa.objects.Deserializer buf)
        Constructor used for deserialization.
      • DocumentId

        public DocumentId​(String id)
        Creates a document id based on the given document id URI string. The document id string can only contain text characters.
      • DocumentId

        public DocumentId​(IdString id)
    • Method Detail

      • createFromSerialized

        public static DocumentId createFromSerialized​(String id)
        Creates a document id based on a serialized document id URI string. The document id string is not allowed to contain 0x0 byte characters. Otherwise all characters are allowed to ensure that document ids already stored can be de-serialized.
      • clone

        public DocumentId clone()
        Overrides:
        clone in class com.yahoo.vespa.objects.Identifiable
      • setId

        public void setId​(IdString id)
      • getScheme

        public IdString getScheme()
      • getGlobalId

        public byte[] getGlobalId()
      • compareTo

        public int compareTo​(Object o)
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.yahoo.vespa.objects.Identifiable
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.yahoo.vespa.objects.Identifiable
      • toString

        public String toString()
        Overrides:
        toString in class com.yahoo.vespa.objects.Identifiable
      • hasDocType

        public boolean hasDocType()
      • getDocType

        public String getDocType()