Package org.gbif.api.service.metrics
Interface CubeService
-
public interface CubeService
The cube API service, for reading addressable counts from a basic cube.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
get(ReadBuilder addressBuilder)
Using the suppliedReadBuilder
to obtain the address, looks up the cube value.List<Rollup>
getSchema()
Provides the list of rollups thus specifying the available combinations of addressable dimensions for a cube.
-
-
-
Method Detail
-
get
long get(ReadBuilder addressBuilder) throws IllegalArgumentException
Using the suppliedReadBuilder
to obtain the address, looks up the cube value. Should the cube support no dimensions (e.g. count all), then calling with an empty ReadBuilder will return this. E.g. cubeService.get(new ReadBuilder());- Parameters:
addressBuilder
- To obtain the address at which to look up from the cube- Returns:
- The value which might be 0. A value of 0 means that the count is truly at 0
- Throws:
IllegalArgumentException
- Should the addressBuilder provide an address that does not exist in the cube
-
-