public final class Uid extends Object
Modifier and Type | Field and Description |
---|---|
static char |
DELIMITER |
static byte |
DELIMITER_BYTE |
static org.apache.lucene.util.BytesRef |
DELIMITER_BYTES |
Modifier and Type | Method and Description |
---|---|
static Uid |
createUid(String uid) |
static String |
createUid(StringBuilder sb,
String type,
String id) |
static String |
createUid(String type,
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(org.apache.lucene.util.BytesRef type,
org.apache.lucene.util.BytesRef id,
org.apache.lucene.util.BytesRefBuilder spare) |
static org.apache.lucene.util.BytesRef |
createUidAsBytes(String type,
org.apache.lucene.util.BytesRef id) |
static org.apache.lucene.util.BytesRef |
createUidAsBytes(String type,
String id) |
static org.apache.lucene.util.BytesRef[] |
createUids(List<? extends DocumentRequest> requests) |
static org.apache.lucene.util.BytesRef[] |
createUidsForTypesAndId(Collection<String> types,
Object id) |
static org.apache.lucene.util.BytesRef[] |
createUidsForTypesAndIds(Collection<String> types,
Collection<?> ids) |
boolean |
equals(Object o) |
static boolean |
hasDelimiter(org.apache.lucene.util.BytesRef uid) |
int |
hashCode() |
String |
id() |
static org.apache.lucene.util.BytesRef[] |
splitUidIntoTypeAndId(org.apache.lucene.util.BytesRef uid) |
org.apache.lucene.util.BytesRef |
toBytesRef() |
String |
toString() |
String |
type() |
static org.apache.lucene.util.BytesRef |
typePrefixAsBytes(org.apache.lucene.util.BytesRef type) |
public static final char DELIMITER
public static final byte DELIMITER_BYTE
public static final org.apache.lucene.util.BytesRef DELIMITER_BYTES
public String type()
public String id()
public org.apache.lucene.util.BytesRef toBytesRef()
public static org.apache.lucene.util.BytesRef typePrefixAsBytes(org.apache.lucene.util.BytesRef type)
public static org.apache.lucene.util.BytesRef[] createUids(List<? extends DocumentRequest> requests)
public static org.apache.lucene.util.BytesRef createUidAsBytes(String type, String id)
public static org.apache.lucene.util.BytesRef createUidAsBytes(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 createUidAsBytes(org.apache.lucene.util.BytesRef type, org.apache.lucene.util.BytesRef id, org.apache.lucene.util.BytesRefBuilder spare)
public static org.apache.lucene.util.BytesRef[] createUidsForTypesAndId(Collection<String> types, Object id)
public static org.apache.lucene.util.BytesRef[] createUidsForTypesAndIds(Collection<String> types, Collection<?> ids)
public static String createUid(StringBuilder sb, String type, String id)
public static boolean hasDelimiter(org.apache.lucene.util.BytesRef uid)
public static org.apache.lucene.util.BytesRef[] splitUidIntoTypeAndId(org.apache.lucene.util.BytesRef uid)
Copyright © 2009–2016. All rights reserved.