public class Garbage extends Object
Grok.| Constructor and Description |
|---|
Garbage()
Create a new
Garbage object. |
| Modifier and Type | Method and Description |
|---|---|
void |
addToRemove(List<String> lst)
Set a list of field name to be remove when exporting the final output.
|
void |
addToRemove(String name)
Set a field to be remove when exporting the final output.
|
void |
addToRename(String origin,
Object value)
Set a new name to be change when exporting the final output.
|
int |
remove(Map<String,Object> map)
Remove from the map the unwilling items.
|
int |
rename(Map<String,Object> map)
Rename the item from the map.
|
public void addToRename(String origin, Object value)
origin - : original field namevalue - : New field name to applypublic void addToRemove(String name)
name - of the field to removepublic void addToRemove(List<String> lst)
lst - list of elem to removepublic int remove(Map<String,Object> map)
map - to cleanCopyright © 2016. All rights reserved.