Package io.serialized.client.projection
Class ProjectionClient
java.lang.Object
io.serialized.client.projection.ProjectionClient
public class ProjectionClient extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProjectionClient.Builder -
Method Summary
Modifier and Type Method Description voidcreateDefinition(ProjectionDefinition projectionDefinition)voidcreateDefinition(String jsonString)Creates a Projection definition from a JSON String value.voidcreateOrUpdate(ProjectionDefinition projectionDefinition)voidcreateOrUpdate(String jsonString)Creates/updates a Projection definition from a JSON String value.voiddeleteAggregatedProjection(String projectionName)Delete/recreate aggregated projections.voiddeleteDefinition(String projectionName)voiddeleteSingleProjections(String projectionName)This call deletes all existing projections and starts a rebuild from the beginning of the event history.ProjectionDefinitiongetDefinition(String projectionName)ProjectionDefinitionslistDefinitions()static ProjectionClient.BuilderprojectionClient(SerializedClientConfig config)<T> ProjectionsResponse<T>query(ListProjectionQuery query)<T> ProjectionResponse<T>query(ProjectionQuery query)
-
Method Details
-
createDefinition
-
createDefinition
Creates a Projection definition from a JSON String value.- Parameters:
jsonString- a JSON String with a valid Projection definition- Throws:
IOException- if the given String is not a valid Projection definition
-
createOrUpdate
-
createOrUpdate
Creates/updates a Projection definition from a JSON String value.- Parameters:
jsonString- a JSON String with a valid Projection definition- Throws:
IOException- if the given String is not a valid Projection definition
-
deleteDefinition
-
deleteSingleProjections
This call deletes all existing projections and starts a rebuild from the beginning of the event history. Keep in mind that this might take a while. -
deleteAggregatedProjection
Delete/recreate aggregated projections. This call deletes all existing projections and starts a rebuild from the beginning of the event history. -
getDefinition
-
listDefinitions
-
query
-
query
-
projectionClient
-