@Test public void testEmptyDatasource() { List<String> schema = List.of("column"); Datasource empty = new EmptyDatasource(schema, "empty"); assertEquals(schema, empty.getSchema()); assertEquals("empty", empty.getName()); assertTrue(empty.getDatasetsByKey(List.of("test")).isEmpty()); assertTrue(empty.getContents().isEmpty()); assertTrue(empty.find(Collections.emptyList()).isEmpty()); }
public EmptyDatasource(List<String> schema, String name) { this.schema = schema; this.name = name; }
EmptyDatasource extends Datasource { public EmptyDatasource(List<String> schema, String name) { this.schema = schema; this.name = name; } }
EmptyDatasource extends Datasource { public EmptyDatasource(List<String> schema, String name) { this.schema = schema; this.name = name; } EmptyDatasource(List<String> schema, String name); }
EmptyDatasource extends Datasource { public EmptyDatasource(List<String> schema, String name) { this.schema = schema; this.name = name; } EmptyDatasource(List<String> schema, String name); @Override List<String> getSchema(); @Override QueryResults getDatasetsByKey(Collection<String> keys); @Override QueryResults getContents(); @Override String getName(); @Override QueryResults find(List<QueryPart> query); }
EmptyDatasource extends Datasource { public EmptyDatasource(List<String> schema, String name) { this.schema = schema; this.name = name; } EmptyDatasource(List<String> schema, String name); @Override List<String> getSchema(); @Override QueryResults getDatasetsByKey(Collection<String> keys); @Override QueryResults getContents(); @Override String getName(); @Override QueryResults find(List<QueryPart> query);  }