org.apache.hadoop.zebra.schema
Class Schema.ParsedName

java.lang.Object
  extended by org.apache.hadoop.zebra.schema.Schema.ParsedName
Enclosing class:
Schema

public static class Schema.ParsedName
extends Object

Helper class to parse a column name string one section at a time and find the required type for the parsed part.


Constructor Summary
Schema.ParsedName()
          Default ctor
 
Method Summary
 ColumnType getDT()
          Get the column type
 String getName()
          Get the column name
 String parseName(Schema.ColumnSchema fs)
          Parse one sector of a fully qualified column name; also checks validity of use of the MAP and RECORD delimiters
 void setDT(ColumnType dt)
          Set the column type
 void setName(String name)
          Set the name
 void setName(String name, ColumnType pdt)
          Set the name and type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Schema.ParsedName

public Schema.ParsedName()
Default ctor

Method Detail

setName

public void setName(String name)
Set the name

Parameters:
name - column name string

setName

public void setName(String name,
                    ColumnType pdt)
Set the name and type

Parameters:
name - column name string
pdt - column type

setDT

public void setDT(ColumnType dt)
Set the column type

Parameters:
dt - column type to be set with

getDT

public ColumnType getDT()
Get the column type

Returns:
column type

getName

public String getName()
Get the column name

Returns:
column name

parseName

public String parseName(Schema.ColumnSchema fs)
                 throws ParseException
Parse one sector of a fully qualified column name; also checks validity of use of the MAP and RECORD delimiters

Parameters:
fs - column schema this column name is checked against with
Throws:
ParseException


Copyright © 2007-2012 The Apache Software Foundation