Example usage for org.apache.lucene.util StringHelper idToString

List of usage examples for org.apache.lucene.util StringHelper idToString

Introduction

In this page you can find the example usage for org.apache.lucene.util StringHelper idToString.

Prototype

public static String idToString(byte id[]) 

Source Link

Document

Helper method to render an ID as a string, for debugging

Returns the string (null) if the id is null.

Usage

From source file:org.apache.solr.util.IdUtils.java

License:Apache License

/**
 * Generate a short random id (see {@link StringHelper#randomId()}).
 *///  w w  w.  ja v a2  s. c om
public static final String randomId() {
    return StringHelper.idToString(StringHelper.randomId());
}