org.elasticsearch.index.mapper
Class Uid

java.lang.Object
  extended by org.elasticsearch.index.mapper.Uid

public final class Uid
extends java.lang.Object


Field Summary
static char DELIMITER
           
 
Constructor Summary
Uid(java.lang.String type, java.lang.String id)
           
 
Method Summary
static Uid createUid(java.lang.String uid)
           
static java.lang.String createUid(java.lang.StringBuilder sb, java.lang.String type, java.lang.String id)
           
static java.lang.String createUid(java.lang.String type, java.lang.String id)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.String id()
           
static java.lang.String idFromUid(java.lang.String uid)
           
 java.lang.String toString()
           
 java.lang.String type()
           
static java.lang.String typePrefix(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DELIMITER

public static final char DELIMITER
See Also:
Constant Field Values
Constructor Detail

Uid

public Uid(java.lang.String type,
           java.lang.String id)
Method Detail

type

public java.lang.String type()

id

public java.lang.String id()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

typePrefix

public static java.lang.String typePrefix(java.lang.String type)

idFromUid

public static java.lang.String idFromUid(java.lang.String uid)

createUid

public static Uid createUid(java.lang.String uid)

createUid

public static java.lang.String createUid(java.lang.String type,
                                         java.lang.String id)

createUid

public static java.lang.String createUid(java.lang.StringBuilder sb,
                                         java.lang.String type,
                                         java.lang.String id)