Package com.yahoo.document.idstring
Class IdIdString
- java.lang.Object
-
- com.yahoo.document.idstring.IdString
-
- com.yahoo.document.idstring.IdIdString
-
public class IdIdString extends IdString
- Author:
- Magnar Nedland
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.yahoo.document.idstring.IdString
IdString.Scheme
-
-
Constructor Summary
Constructors Constructor Description IdIdString(java.lang.String namespace, java.lang.String type, java.lang.String keyValues, java.lang.String localId)
Create an id scheme object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDocType()
java.lang.String
getGroup()
long
getLocation()
long
getNumber()
java.lang.String
getSchemeSpecific()
boolean
hasDocType()
boolean
hasGroup()
boolean
hasNumber()
static long
makeLocation(java.lang.String s)
-
Methods inherited from class com.yahoo.document.idstring.IdString
createFromSerialized, createIdString, createIdStringLessStrict, equals, getNamespace, getNamespaceSpecific, getSchemeParameters, getType, hashCode, toString, toUtf8
-
-
-
-
Constructor Detail
-
IdIdString
public IdIdString(java.lang.String namespace, java.lang.String type, java.lang.String keyValues, java.lang.String localId)
Create an id scheme object.doc:<namespace>:<documentType>:<key-value-pairs>:<namespaceSpecific>
- Parameters:
namespace
- The namespace of this document id.type
- The type of this document id.keyValues
- The key/value pairs of this document id.localId
- The namespace specific part.
-
-
Method Detail
-
makeLocation
public static long makeLocation(java.lang.String s)
-
getLocation
public long getLocation()
- Specified by:
getLocation
in classIdString
-
getSchemeSpecific
public java.lang.String getSchemeSpecific()
- Specified by:
getSchemeSpecific
in classIdString
-
hasDocType
public boolean hasDocType()
- Overrides:
hasDocType
in classIdString
-
getDocType
public java.lang.String getDocType()
- Overrides:
getDocType
in classIdString
-
-