org.apache.hadoop.hive.serde2.typeinfo
Class BaseTypeParams

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.typeinfo.BaseTypeParams
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
VarcharTypeParams

public abstract class BaseTypeParams
extends Object
implements Serializable

Base type for type-specific params, such as char(10) or decimal(10, 2).

See Also:
Serialized Form

Constructor Summary
BaseTypeParams()
           
 
Method Summary
 int getCharacterMaximumLength()
           
 boolean hasCharacterMaximumLength()
           
abstract  void populateParams(String[] params)
           
 void set(String[] params)
           
abstract  String toString()
           
abstract  void validateParams()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseTypeParams

public BaseTypeParams()
Method Detail

validateParams

public abstract void validateParams()
                             throws SerDeException
Throws:
SerDeException

populateParams

public abstract void populateParams(String[] params)
                             throws SerDeException
Throws:
SerDeException

toString

public abstract String toString()
Overrides:
toString in class Object

set

public void set(String[] params)
         throws SerDeException
Throws:
SerDeException

hasCharacterMaximumLength

public boolean hasCharacterMaximumLength()

getCharacterMaximumLength

public int getCharacterMaximumLength()


Copyright © 2012 The Apache Software Foundation