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
ConstructorsConstructorDescriptionDocumentId(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()intstatic DocumentIdCreates a document id based on a serialized document id URI string.booleanbyte[]booleaninthashCode()voidonDeserialize(com.yahoo.vespa.objects.Deserializer data) voidonSerialize(com.yahoo.vespa.objects.Serializer target) voidtoString()Methods inherited from class com.yahoo.vespa.objects.Identifiable
create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, onGetClassId, putUtf8, registerClass, registerClass, serialize, serializeOptional, serializeWithId, visitMembersMethods 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:
clonein classcom.yahoo.vespa.objects.Identifiable
-
setId
-
getScheme
-
getGlobalId
public byte[] getGlobalId() -
compareTo
-
equals
- Overrides:
equalsin classcom.yahoo.vespa.objects.Identifiable
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.yahoo.vespa.objects.Identifiable
-
toString
- Overrides:
toStringin classcom.yahoo.vespa.objects.Identifiable
-
onSerialize
- Overrides:
onSerializein classcom.yahoo.vespa.objects.Identifiable- Throws:
SerializationException
-
onDeserialize
public void onDeserialize(com.yahoo.vespa.objects.Deserializer data) throws DeserializationException - Overrides:
onDeserializein classcom.yahoo.vespa.objects.Identifiable- Throws:
DeserializationException
-
hasDocType
public boolean hasDocType() -
getDocType
-