public class DateFormatTransformer extends Transformer
Transformer instance which creates Date instances out of Strings.
Refer to http://wiki.apache.org/solr/DataImportHandler for more details.
This API is experimental and subject to change
| Modifier and Type | Field and Description |
|---|---|
static String |
DATE_TIME_FMT |
static String |
LOCALE |
| Constructor and Description |
|---|
DateFormatTransformer() |
| Modifier and Type | Method and Description |
|---|---|
Object |
transformRow(Map<String,Object> aRow,
Context context)
The input is a row of data and the output has to be a new row.
|
public static final String DATE_TIME_FMT
public static final String LOCALE
public Object transformRow(Map<String,Object> aRow, Context context)
TransformertransformRow in class TransformeraRow - A row of datacontext - The current contextMap<String, Object> if it returns
only one row or if there are multiple rows to be returned it must
be a List<Map<String, Object>>Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.