Class IdString

java.lang.Object
com.yahoo.document.idstring.IdString
Direct Known Subclasses:
IdIdString

public abstract class IdString extends Object
To be used with DocumentId constructor.
Author:
Einar M R Rosenvinge
  • Field Details

  • Constructor Details

  • Method Details

    • hasDocType

      public boolean hasDocType()
    • getDocType

      public String getDocType()
    • hasGroup

      public boolean hasGroup()
    • hasNumber

      public boolean hasNumber()
    • getNumber

      public long getNumber()
    • getGroup

      public String getGroup()
    • createIdString

      public static IdString createIdString(String id)
      Creates a IdString based on the given document id string. The document id string can only contain text characters.
    • createIdStringLessStrict

      public static IdString createIdStringLessStrict(String id)
      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

      public static IdString createFromSerialized(String id)
      Creates a IdString based on the given serialized document id string. The document id string can not contain 0x0 byte characters.
    • getType

      public IdString.Scheme getType()
    • getNamespace

      public String getNamespace()
    • getNamespaceSpecific

      public String getNamespaceSpecific()
    • getLocation

      public abstract long getLocation()
    • getSchemeParameters

      public String getSchemeParameters()
    • getSchemeSpecific

      public abstract String getSchemeSpecific()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUtf8

      public com.yahoo.text.Utf8String toUtf8()