public class LogTransformer extends Transformer
Transformer
implementation which logs messages in a given template format.
Refer to http://wiki.apache.org/solr/DataImportHandler for more details.
This API is experimental and may change in the future.
Modifier and Type | Field and Description |
---|---|
static String |
LOG_LEVEL |
static String |
LOG_TEMPLATE |
Constructor and Description |
---|
LogTransformer() |
public static final String LOG_TEMPLATE
public static final String LOG_LEVEL
public Object transformRow(Map<String,Object> row, Context ctx)
Transformer
transformRow
in class Transformer
row
- A row of datactx
- 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.