(LoadFunc lfunc, PigContext pigContext)
| 55 | } |
| 56 | |
| 57 | public DataBag load(LoadFunc lfunc, PigContext pigContext) throws IOException { |
| 58 | DataBag content = BagFactory.getInstance().newDefaultBag(); |
| 59 | ReadToEndLoader loader = new ReadToEndLoader(lfunc, |
| 60 | ConfigurationUtil.toConfiguration(pigContext.getProperties()), file, 0); |
| 61 | Tuple f = null; |
| 62 | while ((f = loader.getNext()) != null) { |
| 63 | content.add(f); |
| 64 | } |
| 65 | return content; |
| 66 | } |
| 67 | |
| 68 | |
| 69 | public void store(DataBag data, FuncSpec storeFuncSpec, PigContext pigContext) throws IOException { |
no test coverage detected