| Package | flare.data |
| Class | public class DataUtil |
| Method | Defined by | ||
|---|---|---|---|
|
inferSchema(tuples:Array):DataSchema
[static]
Infers the data schema by checking values of the input data.
| DataUtil | ||
|
parseValue(val:Object, type:int):Object
[static]
Parse an input value given its data type.
| DataUtil | ||
|
type(s:String):int
[static]
Returns the data type for the input string value.
| DataUtil | ||
| Constant | Defined by | ||
|---|---|---|---|
| BOOLEAN : int = 5 [static] Constant indicating a boolean data type.
| DataUtil | ||
| DATE : int = 2 [static] Constant indicating a Date data type.
| DataUtil | ||
| INT : int = 1 [static] Constant indicating an integer data type.
| DataUtil | ||
| NUMBER : int = 0 [static] Constant indicating a numeric data type.
| DataUtil | ||
| OBJECT : int = 4 [static] Constant indicating an arbitrary Object data type.
| DataUtil | ||
| STRING : int = 3 [static] Constant indicating a String data type.
| DataUtil | ||
| inferSchema | () | method |
public static function inferSchema(tuples:Array):DataSchemaInfers the data schema by checking values of the input data.
Parameterstuples:Array — an array of data tuples
|
DataSchema —
the inferred schema
|
| parseValue | () | method |
public static function parseValue(val:Object, type:int):ObjectParse an input value given its data type.
Parametersval:Object — the value to parse
|
|
type:int — the data type to parse as
|
Object — the parsed data value
|
| type | () | method |
public static function type(s:String):int
Returns the data type for the input string value. This method
attempts to parse the value as a number of different data types.
If successful, the matching data type is returned. If no parse
succeeds, this method returns the STRING constant.
s:String — the string to parse
|
int — the inferred data type of the string contents
|
| BOOLEAN | constant |
public static const BOOLEAN:int = 5Constant indicating a boolean data type.
| DATE | constant |
public static const DATE:int = 2Constant indicating a Date data type.
| INT | constant |
public static const INT:int = 1Constant indicating an integer data type.
| NUMBER | constant |
public static const NUMBER:int = 0Constant indicating a numeric data type.
| OBJECT | constant |
public static const OBJECT:int = 4Constant indicating an arbitrary Object data type.
| STRING | constant |
public static const STRING:int = 3Constant indicating a String data type.