Interface RowLocations
-
- All Known Implementing Classes:
DefaultRowLocations
@Volatile public interface RowLocations
Represents the locations of a search result row.locations
show where a given term occurs inside of a given field.- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RowLocations
add(RowLocation l)
add a location and allow method chaininglong
count()
size of all()List<String>
fields()
list the fields in this locationList<RowLocation>
get(String field)
list all locations for a given field (any term)List<RowLocation>
get(String field, String term)
list all locations for a given field and termList<RowLocation>
getAll()
list all locations (any field, any term)Set<String>
terms()
list all terms in this locations, considering all fields (so a set)List<String>
termsFor(String field)
list the terms for a given field
-
-
-
Method Detail
-
add
RowLocations add(RowLocation l)
add a location and allow method chaining
-
get
List<RowLocation> get(String field)
list all locations for a given field (any term)
-
get
List<RowLocation> get(String field, String term)
list all locations for a given field and term
-
getAll
List<RowLocation> getAll()
list all locations (any field, any term)
-
count
long count()
size of all()
-
-