|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.zebra.schema.Schema.ParsedName
public static class Schema.ParsedName
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 |
---|
public Schema.ParsedName()
Method Detail |
---|
public void setName(String name)
name
- column name stringpublic void setName(String name, ColumnType pdt)
name
- column name stringpdt
- column typepublic void setDT(ColumnType dt)
dt
- column type to be set withpublic ColumnType getDT()
public String getName()
public String parseName(Schema.ColumnSchema fs) throws ParseException
fs
- column schema this column name is checked against with
ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |