Package com.yahoo.document
Class DocumentId
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
com.yahoo.document.DocumentId
- All Implemented Interfaces:
Cloneable
public class DocumentId
extends com.yahoo.vespa.objects.Identifiable
The id of a document
-
Field Summary
Fields inherited from class com.yahoo.vespa.objects.Identifiable
classId
-
Constructor Summary
ConstructorDescriptionDocumentId
(IdString id) DocumentId
(com.yahoo.vespa.objects.Deserializer buf) Constructor used for deserialization.DocumentId
(String id) Creates a document id based on the given document id URI string. -
Method Summary
Modifier and TypeMethodDescriptionclone()
int
static DocumentId
Creates a document id based on a serialized document id URI string.boolean
byte[]
boolean
int
hashCode()
void
onDeserialize
(com.yahoo.vespa.objects.Deserializer data) void
onSerialize
(com.yahoo.vespa.objects.Serializer target) void
toString()
Methods inherited from class com.yahoo.vespa.objects.Identifiable
create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, onGetClassId, putUtf8, registerClass, serialize, serializeOptional, serializeWithId, visitMembers
Methods inherited from class com.yahoo.vespa.objects.Selectable
select, select, selectMembers
-
Constructor Details
-
DocumentId
public DocumentId(com.yahoo.vespa.objects.Deserializer buf) Constructor used for deserialization. -
DocumentId
Creates a document id based on the given document id URI string. The document id string can only contain text characters. -
DocumentId
-
-
Method Details
-
createFromSerialized
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
- Overrides:
clone
in classcom.yahoo.vespa.objects.Identifiable
-
setId
-
getScheme
-
getGlobalId
public byte[] getGlobalId() -
compareTo
-
equals
- Overrides:
equals
in classcom.yahoo.vespa.objects.Identifiable
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.yahoo.vespa.objects.Identifiable
-
toString
- Overrides:
toString
in classcom.yahoo.vespa.objects.Identifiable
-
onSerialize
- Overrides:
onSerialize
in classcom.yahoo.vespa.objects.Identifiable
- Throws:
SerializationException
-
onDeserialize
public void onDeserialize(com.yahoo.vespa.objects.Deserializer data) throws DeserializationException - Overrides:
onDeserialize
in classcom.yahoo.vespa.objects.Identifiable
- Throws:
DeserializationException
-
hasDocType
public boolean hasDocType() -
getDocType
-