|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.tools.rumen.anonymization.WordList
public class WordList
Represents the list of words used in list-backed anonymizers.
| Constructor Summary | |
|---|---|
WordList()
|
|
WordList(String name)
|
|
| Method Summary | |
|---|---|
void |
add(String word)
Adds the specified word to the list if the word is not already added. |
boolean |
contains(String word)
Returns 'true' if the list contains the specified word. |
String |
getName()
Get the name of the state. |
int |
getSize()
Returns the size of the list. |
Map<String,Integer> |
getWords()
Gets the words. |
int |
indexOf(String word)
Returns the index of the specified word in the list. |
boolean |
isUpdated()
Returns 'true' if the list is updated since creation (and reload). |
void |
setName(String name)
Note: That this API is only for Jackson JSON deserialization. |
void |
setSize(int size)
Sets the size of the list. |
void |
setWords(Map<String,Integer> list)
Sets the words. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WordList()
public WordList(String name)
| Method Detail |
|---|
public String getName()
State
getName in interface Statepublic void add(String word)
public boolean contains(String word)
public int indexOf(String word)
public int getSize()
public boolean isUpdated()
isUpdated in interface Statepublic void setSize(int size)
public void setName(String name)
setName in interface Statepublic Map<String,Integer> getWords()
public void setWords(Map<String,Integer> list)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||