|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.util.CSVReader.Header
public static class CSVReader.Header
A header for a column that examines its values and interprets them as floating point numbers, integers, dates, or times when possible and as uninterpreted character data otherwise.
| Field Summary | |
|---|---|
protected static Format[] |
formats
An array of formats to be tested against the column values. |
| Constructor Summary | |
|---|---|
CSVReader.Header(String name)
|
|
| Method Summary | |
|---|---|
boolean |
equals(CSVReader.Header o)
Equal if the headers have the same data. |
String |
getName()
|
int |
hashCode()
Based on the header name. |
Object |
parseValue(String text)
Attempts to interpret the character data as a date/time, currency, percentage, floating point value, or integer. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final Format[] formats
Note that formats DO NOT require a complete match on the source test. For this reason, they are arranged based on the expected ability for the format to be diagnositic. For example, a date such as 4/6/2002 would be interpreted as an integer if you tested the integer format first.
| Constructor Detail |
|---|
public CSVReader.Header(String name)
| Method Detail |
|---|
public String getName()
public Object parseValue(String text)
text - The character data.
public boolean equals(CSVReader.Header o)
public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||