2 * Copyright (c) 2007 Yahoo! Inc. All rights reserved.
3 * See accompanying LICENSE file.
5 package com
.yahoo
.pig
.impl
.logicalLayer
;
9 import com
.yahoo
.pig
.impl
.PigContext
;
10 import com
.yahoo
.pig
.impl
.logicalLayer
.schema
.SchemaItemList
;
12 public class LOStore
extends LogicalOperator
{
13 public String filename
;
15 public boolean append
;
17 public LOStore(PigContext pigContext
, LogicalOperator input
, String filenameIn
, String funcIn
, boolean append
) {
19 inputs
= new LogicalOperator
[1];
21 filename
= filenameIn
;
27 public String
name() {
31 public SchemaItemList
outputSchema() {
32 throw new RuntimeException("Internal error: Asking for schema of a store operator.");
35 public int getOutputType() {
36 switch (inputs
[0].getOutputType()) {
42 throw new RuntimeException("Illegal input type for store operator");
46 public List
<String
> getFuncs() {
47 List
<String
> funcs
= super.getFuncs();