Class Index
- java.lang.Object
-
- org.aksw.limes.core.measures.mapper.string.fastngram.Index
-
public class Index extends Object
- Author:
- Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>addString(String s)Tokenizes a string and adds it to the indexSet<Integer>getAllSizes()Map<String,Set<String>>getStrings(int size)Returns all strings of size sizeSet<String>getStrings(int size, String token)Returns all strings to a given token
-
-
-
Method Detail
-
addString
public Set<String> addString(String s)
Tokenizes a string and adds it to the index- Parameters:
s- String to index- Returns:
- The number of tokens generated for s
-
getStrings
public Set<String> getStrings(int size, String token)
Returns all strings to a given token- Parameters:
size- , Size of tokentoken- Input token- Returns:
- All strings that contain this token
-
getStrings
public Map<String,Set<String>> getStrings(int size)
Returns all strings of size size- Parameters:
size- Size requirement- Returns:
- All strings which consist of "size" different tokens
-
-