Class DateFormatTransformer
- java.lang.Object
-
- org.apache.solr.handler.dataimport.Transformer
-
- org.apache.solr.handler.dataimport.DateFormatTransformer
-
public class DateFormatTransformer extends Transformer
Transformer
instance which createsDate
instances out ofString
s.Refer to http://wiki.apache.org/solr/DataImportHandler for more details.
This API is experimental and subject to change
- Since:
- solr 1.3
-
-
Field Summary
Fields Modifier and Type Field Description static String
DATE_TIME_FMT
static String
LOCALE
-
Constructor Summary
Constructors Constructor Description DateFormatTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
DATE_TIME_FMT
public static final String DATE_TIME_FMT
- See Also:
- Constant Field Values
-
LOCALE
public static final String LOCALE
- See Also:
- Constant Field Values
-
-
Method Detail
-
transformRow
public Object transformRow(Map<String,Object> aRow, Context context)
Description copied from class:Transformer
The input is a row of data and the output has to be a new row.- Specified by:
transformRow
in classTransformer
- Parameters:
aRow
- A row of datacontext
- The current context- Returns:
- The changed data. It must be a
Map
<String
,Object
> if it returns only one row or if there are multiple rows to be returned it must be aList
<Map
<String
,Object
>>
-
-