JDBCInputFormat extends RichInputFormat<OUT, InputSplit> implements NonParallelInput { public static JDBCInputFormatBuilder buildJDBCInputFormat() { return new JDBCInputFormatBuilder(); } JDBCInputFormat(); @Override void configure(Configuration parameters); @Override void open(InputSplit ignored); @Override void close(); @Override boolean reachedEnd(); @Override OUT nextRecord(OUT tuple); @Override BaseStatistics getStatistics(BaseStatistics cachedStatistics); @Override InputSplit[] createInputSplits(int minNumSplits); @Override InputSplitAssigner getInputSplitAssigner(InputSplit[] inputSplits); static JDBCInputFormatBuilder buildJDBCInputFormat();  }
@Test(expected = IllegalArgumentException.class) public void testIncompleteConfiguration() throws IOException { jdbcInputFormat = JDBCInputFormat.buildJDBCInputFormat() .setDrivername("org.apache.derby.jdbc.EmbeddedDriver") .setQuery("select * from books") .finish(); }