if((predecessors == null) || (predecessors.size() <= 0)) {
return;
}
LogicalOperator predecessor = predecessors.get(0);
if(predecessor instanceof LOLoad) {
LOLoad load = (LOLoad)predecessor;
if(!load.isSplittable()) {
// Try and optimize if the load and stream input specs match
// and input files are to be processed as-is
StreamingCommand command = stream.getStreamingCommand();
HandleSpec streamInputSpec = command.getInputSpec();
FileSpec loadFileSpec = load.getInputFile();
// Instantiate both LoadFunc objects to compare them for
// equality
StoreFunc streamStorer =
(StoreFunc)PigContext.instantiateFuncFromSpec(
streamInputSpec.getSpec());