public abstract class ResultFormatterBase extends Object implements QueryResultFormatter
Modifier and Type | Field and Description |
---|---|
protected static org.restlet.data.CharacterSet |
OUTPUT_CHARSET
Character set for the output.
|
Constructor and Description |
---|
ResultFormatterBase() |
Modifier and Type | Method and Description |
---|---|
protected String |
formatDate(Date date)
Format a date a readable string.
|
protected String |
formatExecutionTime(long executionTime)
Format execution time to a readable string.
|
protected String |
formatQueryTitle(String query,
EnumQueryType queryType)
Format query response title.
|
protected String |
formatScore(double score)
Format a score/quality to a readable string.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
format, format
protected static final org.restlet.data.CharacterSet OUTPUT_CHARSET
protected String formatQueryTitle(String query, EnumQueryType queryType)
query
- queryqueryType
- type of queryprotected String formatExecutionTime(long executionTime)
executionTime
- query execution time in millisecondsprotected String formatScore(double score)
score
- score or qualityCopyright © 2013. All Rights Reserved.