Skip to content

Instantly share code, notes, and snippets.

@tomaszezula
Last active April 4, 2016 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomaszezula/e83755c2c5e3e018acd4fecf7acaa095 to your computer and use it in GitHub Desktop.
Save tomaszezula/e83755c2c5e3e018acd4fecf7acaa095 to your computer and use it in GitHub Desktop.
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