Package org.apache.solr.util
Class IdUtils
- java.lang.Object
- 
- org.apache.solr.util.IdUtils
 
- 
 public class IdUtils extends Object Helper class for generating unique ID-s.
- 
- 
Constructor SummaryConstructors Constructor Description IdUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static StringrandomId()Generate a short random id (seeStringHelper.randomId()).static StringtimeRandomId()Generate a random id with a timestamp, in the format:hex(timestamp) + 'T' + randomId.static StringtimeRandomId(long time)Generate a random id with a timestamp, in the format:hex(timestamp) + 'T' + randomId.
 
- 
- 
- 
Method Detail- 
randomIdpublic static final String randomId() Generate a short random id (seeStringHelper.randomId()).
 - 
timeRandomIdpublic static final String timeRandomId() Generate a random id with a timestamp, in the format:hex(timestamp) + 'T' + randomId. This method usesTimeSource.CURRENT_TIMEfor timestamp values.
 - 
timeRandomIdpublic static final String timeRandomId(long time) Generate a random id with a timestamp, in the format:hex(timestamp) + 'T' + randomId.- Parameters:
- time- value representing timestamp
 
 
- 
 
-