public final class Uid
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static char |
DELIMITER |
static byte |
DELIMITER_BYTE |
Constructor and Description |
---|
Uid(java.lang.String type,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
static Uid |
createUid(java.lang.String uid) |
static java.lang.String |
createUid(java.lang.String type,
java.lang.String id) |
static org.apache.lucene.util.BytesRef |
createUidAsBytes(org.apache.lucene.util.BytesRef type,
org.apache.lucene.util.BytesRef id) |
static org.apache.lucene.util.BytesRef |
createUidAsBytes(java.lang.String type,
org.apache.lucene.util.BytesRef id) |
static org.apache.lucene.util.BytesRef |
createUidAsBytes(java.lang.String type,
java.lang.String id) |
static org.apache.lucene.util.BytesRef[] |
createUidsForTypesAndId(java.util.Collection<java.lang.String> types,
java.lang.Object id) |
static org.apache.lucene.util.BytesRef[] |
createUidsForTypesAndIds(java.util.Collection<java.lang.String> types,
java.util.Collection<?> ids) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
id() |
org.apache.lucene.util.BytesRef |
toBytesRef() |
java.lang.String |
toString() |
java.lang.String |
type() |
public static final char DELIMITER
public static final byte DELIMITER_BYTE
public java.lang.String type()
public java.lang.String id()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public org.apache.lucene.util.BytesRef toBytesRef()
public static Uid createUid(java.lang.String uid)
public static org.apache.lucene.util.BytesRef createUidAsBytes(java.lang.String type, java.lang.String id)
public static org.apache.lucene.util.BytesRef createUidAsBytes(java.lang.String type, org.apache.lucene.util.BytesRef id)
public static org.apache.lucene.util.BytesRef createUidAsBytes(org.apache.lucene.util.BytesRef type, org.apache.lucene.util.BytesRef id)
public static org.apache.lucene.util.BytesRef[] createUidsForTypesAndId(java.util.Collection<java.lang.String> types, java.lang.Object id)
public static org.apache.lucene.util.BytesRef[] createUidsForTypesAndIds(java.util.Collection<java.lang.String> types, java.util.Collection<?> ids)
public static java.lang.String createUid(java.lang.String type, java.lang.String id)