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