Package com.yahoo.document.idstring
Class IdString
java.lang.Object
com.yahoo.document.idstring.IdString
- Direct Known Subclasses:
IdIdString
To be used with DocumentId constructor.
- Author:
- Einar M R Rosenvinge
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
IdString
(IdString.Scheme scheme, String namespace, String namespaceSpecific) -
Method Summary
Modifier and TypeMethodDescriptionstatic IdString
Creates a IdString based on the given serialized document id string.static IdString
createIdString
(String id) Creates a IdString based on the given document id string.static IdString
Creates a IdString based on the given document id string.boolean
getGroup()
abstract long
long
abstract String
getType()
boolean
boolean
hasGroup()
int
hashCode()
boolean
toString()
com.yahoo.text.Utf8String
toUtf8()
-
Field Details
-
MAX_LENGTH
public static final int MAX_LENGTH- See Also:
-
-
Constructor Details
-
IdString
-
-
Method Details
-
hasDocType
public boolean hasDocType() -
getDocType
-
hasGroup
public boolean hasGroup() -
hasNumber
public boolean hasNumber() -
getNumber
public long getNumber() -
getGroup
-
createIdString
Creates a IdString based on the given document id string. The document id string can only contain text characters. -
createIdStringLessStrict
Creates a IdString based on the given document id string. This is a less strict variant for creating 'illegal' document ids for documents already fed. Only use when strictly needed. -
createFromSerialized
Creates a IdString based on the given serialized document id string. The document id string can not contain 0x0 byte characters. -
getType
-
getNamespace
-
getNamespaceSpecific
-
getLocation
public abstract long getLocation() -
getSchemeParameters
-
getSchemeSpecific
-
equals
-
hashCode
public int hashCode() -
toString
-
toUtf8
public com.yahoo.text.Utf8String toUtf8()
-