Skip to content

Instantly share code, notes, and snippets.

@tomaszezula

tomaszezula/QueryAdapter Secret

Last active Apr 4, 2016
Embed
What would you like to do?
public interface QueryAdapter {
QueryAdapter select(String... fields);
QueryAdapter from(String tableName);
Graph aggregate(Aggregation aggregation);
}
public interface Aggregation<T extends Number> {
T calculate();
}
public class Graph {
// This is a DTO, a graph representation of tabular data
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.