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() |
| Modifier and Type | Method and Description |
|---|---|
Object |
transformRow(Map<String,Object> row,
Context ctx)
The input is a row of data and the output has to be a new row.
|
public static final String LOG_TEMPLATE
public static final String LOG_LEVEL
public Object transformRow(Map<String,Object> row, Context ctx)
TransformertransformRow in class Transformerrow - 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.