public class HTMLStripTransformer extends Transformer
Transformer implementation which strip off HTML tags using HTMLStripCharFilter This is useful
in case you don't need this HTML anyway.HTMLStripCharFilter| Modifier and Type | Field and Description |
|---|---|
static String |
STRIP_HTML |
static String |
TRUE |
| Constructor and Description |
|---|
HTMLStripTransformer() |
| Modifier and Type | Method and Description |
|---|---|
Object |
transformRow(Map<String,Object> row,
Context context)
The input is a row of data and the output has to be a new row.
|
public static final String STRIP_HTML
public static final String TRUE
public Object transformRow(Map<String,Object> row, Context context)
TransformertransformRow in class Transformerrow - 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.