
com.github.trepo.dcap.store.Store Maven / Gradle / Ivy
The newest version!
package com.github.trepo.dcap.store;
import com.github.trepo.vgraph.Commit;
import java.util.List;
/**
* A Store of commits.
* @author John Clark.
*/
public interface Store {
/**
* Add a commit to the store.
* If the commit was previously in this store, overwrite it.
* @param commit The commit to add
*/
void put(Commit commit);
/**
* Get a commit from this store.
* @param id The ID of the commit to get.
* @return the Commit, or null if not found.
*/
Commit get(String id);
/**
* Return a list of commits matching the passed in Query.
* @param query The query to evaluate.
* @return A list of Commits that match the query.
*/
List query(Query query);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy