|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.solr.client.solrj.util.ClientUtils
public class ClientUtils
TODO? should this go in common?
Field Summary | |
---|---|
static Collection<String> |
fmts
Deprecated. Use DateUtil.DEFAULT_DATE_FORMATS |
static String |
TEXT_XML
|
static TimeZone |
UTC
Deprecated. Use DateUtil.UTC . |
Constructor Summary | |
---|---|
ClientUtils()
|
Method Summary | |
---|---|
static String |
escapeQueryChars(String s)
See: http://lucene.apache.org/java/docs/queryparsersyntax.html#Escaping%20Special%20Characters |
static DateFormat |
getThreadLocalDateFormat()
Deprecated. use DateUtil.getThreadLocalDateFormat() |
static Date |
parseDate(String d)
Deprecated. Use DateUtil.parseDate(String) |
static Collection<ContentStream> |
toContentStreams(String str,
String contentType)
Take a string and make it an iterable ContentStream |
static String |
toQueryString(SolrParams params,
boolean xml)
|
static SolrDocument |
toSolrDocument(SolrInputDocument d)
|
static SolrInputDocument |
toSolrInputDocument(SolrDocument d)
|
static String |
toXML(SolrInputDocument doc)
|
static void |
writeXML(SolrInputDocument doc,
Writer writer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TEXT_XML
public static final Collection<String> fmts
DateUtil.DEFAULT_DATE_FORMATS
public static TimeZone UTC
DateUtil.UTC
.Constructor Detail |
---|
public ClientUtils()
Method Detail |
---|
public static Collection<ContentStream> toContentStreams(String str, String contentType)
public static SolrInputDocument toSolrInputDocument(SolrDocument d)
d
- SolrDocument to convert
public static SolrDocument toSolrDocument(SolrInputDocument d)
d
- SolrInputDocument to convert
public static void writeXML(SolrInputDocument doc, Writer writer) throws IOException
IOException
public static String toXML(SolrInputDocument doc)
public static Date parseDate(String d) throws ParseException, org.apache.commons.httpclient.util.DateParseException
DateUtil.parseDate(String)
ParseException
org.apache.commons.httpclient.util.DateParseException
public static DateFormat getThreadLocalDateFormat()
DateUtil.getThreadLocalDateFormat()
public static String escapeQueryChars(String s)
public static String toQueryString(SolrParams params, boolean xml)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |