ilovesoup / hyracks

Automatically exported from code.google.com/p/hyracks
Apache License 2.0
0 stars 0 forks source link

Use IHyracksCommonContext instead of IHyracksTaskContext in ITupleParserFactory #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I want to pass a mock context to an ITupleParserFactory in order to use a 
different frame size.  The ITupleParserFactory interface is currently defined as

public interface ITupleParserFactory extends Serializable {
    public ITupleParser createTupleParser(IHyracksTaskContext ctx);
}

so I must pass an IHyracksTaskContext, which is a difficult interface to 
implement because it extends four interfaces.

Since it doesn't look like any of the existing ITupleParserFactory 
implementations require the other interfaces' methods, perhaps 
IHyracksTaskContext could be changed to IHyracksCommonContext.  Are there any 
use cases where the additional methods of IHyracksTaskContext are required by 
ITupleParserFactory?

Original issue reported on code.google.com by rosenville@gmail.com on 5 Dec 2011 at 5:30