2 * Copyright (c) 2007 Yahoo! Inc. All rights reserved.
3 * See accompanying LICENSE file.
5 package com
.yahoo
.pig
.impl
.logicalLayer
;
7 import com
.yahoo
.pig
.impl
.PigContext
;
8 import com
.yahoo
.pig
.impl
.logicalLayer
.schema
.SchemaItemList
;
9 import com
.yahoo
.pig
.impl
.physicalLayer
.IntermedResult
;
12 public class LORead
extends LogicalOperator
{
13 public IntermedResult readFrom
= null;
15 public LORead(PigContext pigContext
, IntermedResult readFromIn
) {
17 inputs
= new LogicalOperator
[0];
19 readFrom
= readFromIn
;
21 public String
name() {
24 public String
arguments() {
28 public SchemaItemList
outputSchema() {
30 if (readFrom
.lp
!= null && readFrom
.lp
.root
!= null && readFrom
.lp
.root
.outputSchema() != null) {
31 schema
= readFrom
.lp
.root
.outputSchema().copy();
33 schema
= new SchemaItemList();
44 public int getOutputType(){
45 return readFrom
.getOutputType();