### Question:
FileReader implements Iterable<Elements> { public void close() { } FileReader( Source source, String selector, Integer index );  FileReader( Source source, String selector );  FileReader( Source source ); @Override FileReaderIterator iterator(); void close();  }### Answer:
@Test @Ignore public void testCsvFile() throws Exception { Properties info = new Properties(); final String path = resourcePath( "sales-csv" ); final String model = "inline:" + "{\n" + " \"version\": \"1.0\",\n" + " \"defaultSchema\": \"XXX\",\n" + " \"schemas\": [\n" + " {\n" + " \"name\": \"FILES\",\n" + " \"type\": \"custom\",\n" + " \"factory\": \"org.polypheny.db.adapter.file.FileSchemaFactory\",\n" + " \"operand\": {\n" + " \"directory\": " + TestUtil.escapeString( path ) + "\n" + " }\n" + " }\n" + " ]\n" + "}"; info.put( "model", model ); info.put( "lex", "JAVA" ); try ( Connection connection = DriverManager.getConnection( "jdbc:polyphenydbembedded:", info ); Statement stmt = connection.createStatement() ) { final String sql = "select * from FILES.DEPTS"; final ResultSet rs = stmt.executeQuery( sql ); assertThat( rs.next(), is( true ) ); assertThat( rs.getString( 1 ), is( "10" ) ); assertThat( rs.next(), is( true ) ); assertThat( rs.getString( 1 ), is( "20" ) ); assertThat( rs.next(), is( true ) ); assertThat( rs.getString( 1 ), is( "30" ) ); assertThat( rs.next(), is( false ) ); rs.close(); } }