public final class PropertyCheckHelper extends Object
Constructor and Description |
---|
PropertyCheckHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
checkLong(EventType type,
String longFieldName)
Check if the field identified by the field name is of type long according to the schema.
|
static String |
checkNumeric(EventType type,
String numericFieldName)
Check if the field identified by the field name is a valid numeric field according to the schema.
|
static String |
checkNumeric(EventType type,
String numericFieldNameX,
String numericFieldNameY)
Check if the fields identified by their field names are valid numeric field according to the schema.
|
static String |
exists(EventType type,
String fieldName)
Check if the field identified by the field name exists according to the schema.
|
static String |
exists(EventType type,
String fieldNameOne,
String fieldNameTwo)
Check if the fields identified by the field names both exists according to the schema.
|
public static String exists(EventType type, String fieldName)
type
- contains metadata about fieldsfieldName
- is the field's field name to testpublic static String exists(EventType type, String fieldNameOne, String fieldNameTwo)
type
- contains metadata about fieldsfieldNameOne
- is the first field's field name to testfieldNameTwo
- is the first field's field name to testpublic static String checkNumeric(EventType type, String numericFieldName)
type
- contains metadata about fieldsnumericFieldName
- is the field's field name to testpublic static String checkNumeric(EventType type, String numericFieldNameX, String numericFieldNameY)
type
- contains metadata about fieldsnumericFieldNameX
- is the first field's field name to testnumericFieldNameY
- is the second field's field name to testpublic static String checkLong(EventType type, String longFieldName)
type
- contains metadata about fieldslongFieldName
- is the field's field name to test