2 * Copyright (c) 2007 Yahoo! Inc. All rights reserved.
3 * See accompanying LICENSE file.
5 package com
.yahoo
.pig
.impl
.logicalLayer
.schema
;
7 import java
.util
.ArrayList
;
14 * A SchemaField encapsulates a column alias
15 * and its numeric column value.
19 public class SchemaField
extends SchemaItem
{
20 public Type type
= Type
.string
;
22 public SchemaField(String alias
) {
25 public Type
getType() { return type
; }
26 public int colFor(String alias
) {
29 public SchemaItem
schemaFor(int col
) {
33 public SchemaField
copy(){
34 return new SchemaField(alias
);
37 public List
<SchemaItem
> flatten(){
38 List
<SchemaItem
> ret
= new ArrayList
<SchemaItem
>();