Java Code Examples for cascading.scheme.SourceCall#setContext()
The following examples show how to use
cascading.scheme.SourceCall#setContext() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JDBCScheme.java From SpyGlass with Apache License 2.0 | 5 votes |
@Override public void sourcePrepare( FlowProcess<JobConf> flowProcess, SourceCall<Object[], RecordReader> sourceCall ) { Object[] pair = new Object[]{sourceCall.getInput().createKey(), sourceCall.getInput().createValue()}; sourceCall.setContext( pair ); }
Example 2
Source File: HBaseScheme.java From SpyGlass with Apache License 2.0 | 5 votes |
@Override public void sourcePrepare(FlowProcess<JobConf> flowProcess, SourceCall<Object[], RecordReader> sourceCall) { Object[] pair = new Object[]{sourceCall.getInput().createKey(), sourceCall.getInput().createValue()}; sourceCall.setContext(pair); }
Example 3
Source File: JDBCScheme.java From SpyGlass with Apache License 2.0 | 4 votes |
@Override public void sourceCleanup( FlowProcess<JobConf> flowProcess, SourceCall<Object[], RecordReader> sourceCall ) { sourceCall.setContext( null ); }
Example 4
Source File: HBaseRawScheme.java From SpyGlass with Apache License 2.0 | 4 votes |
@Override public void sourcePrepare(FlowProcess<JobConf> flowProcess, SourceCall<Object[], RecordReader> sourceCall) { Object[] pair = new Object[] { sourceCall.getInput().createKey(), sourceCall.getInput().createValue() }; sourceCall.setContext(pair); }
Example 5
Source File: HBaseRawScheme.java From SpyGlass with Apache License 2.0 | 4 votes |
@Override public void sourceCleanup(FlowProcess<JobConf> flowProcess, SourceCall<Object[], RecordReader> sourceCall) { sourceCall.setContext(null); }
Example 6
Source File: HBaseScheme.java From SpyGlass with Apache License 2.0 | 4 votes |
@Override public void sourceCleanup(FlowProcess<JobConf> flowProcess, SourceCall<Object[], RecordReader> sourceCall) { sourceCall.setContext(null); }