public class Utils
extends java.lang.Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isBinary(org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector.PrimitiveCategory pc)
Return true if the primitive type is a binary, false otherwise.
|
static boolean |
isBoolean(org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector.PrimitiveCategory pc)
Return true if the primitive type is a boolean, false otherwise.
|
static boolean |
isInt(org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector.PrimitiveCategory pc)
Return true if the primitive type is an int, false otherwise.
|
static boolean |
isJsonString(java.lang.String toValidate)
Return true if the string is a JSON string, false otherwise.
|
static boolean |
isNumber(org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector.PrimitiveCategory pc)
Return true if the primitive type is a number, false otherwise.
|
static boolean |
isString(org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector.PrimitiveCategory pc)
Return true if the primitive type is a string, false otherwise.
|
static boolean |
sameSRIDAndDim(oracle.spatial.geometry.JGeometry geom1, oracle.spatial.geometry.JGeometry geom2)
Return true if the geometries have the same SRID, false otherwise.
|
public static boolean isNumber(org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector.PrimitiveCategory pc)
pc
- the primitive typepublic static boolean isInt(org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector.PrimitiveCategory pc)
pc
- the primitive typepublic static boolean isBoolean(org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector.PrimitiveCategory pc)
pc
- the primitive typepublic static boolean isString(org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector.PrimitiveCategory pc)
pc
- the primitive typepublic static boolean isBinary(org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector.PrimitiveCategory pc)
pc
- the primitive typepublic static boolean isJsonString(java.lang.String toValidate)
toValidate
- the string to validatepublic static boolean sameSRIDAndDim(oracle.spatial.geometry.JGeometry geom1, oracle.spatial.geometry.JGeometry geom2)
geom1
- first geometrygeom2
- second geometry