MCPcopy Create free account
hub / github.com/ddf-project/DDF / top

Method top

core/src/main/java/io/ddf/content/ViewHandler.java:65–71  ·  view source on GitHub ↗
(int numRows, String orderColumns, String mode)

Source from the content-addressed store, hash-verified

63 }
64
65 public List<String> top(int numRows, String orderColumns, String mode) throws DDFException {
66
67 DDF temp = sql2ddf(String.format("SELECT * FROM %%s order by %s %s", orderColumns, mode),
68 String.format("Unable to fetch %d row(s) from table %%s", numRows));
69
70 return (temp.VIEWS.head(numRows));
71 }
72
73 @Override
74 public DDF project(String... columnNames) throws DDFException {

Callers

nothing calls this directly

Calls 2

sql2ddfMethod · 0.95
headMethod · 0.65

Tested by

no test coverage detected