|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.view.PropertyCheckHelper
public final class PropertyCheckHelper
Utility class for checking in a schema if fields exist and/or have an expected type.
Constructor Summary | |
---|---|
PropertyCheckHelper()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyCheckHelper()
Method Detail |
---|
public static String exists(EventType type, String fieldName)
type
- contains metadata about fieldsfieldName
- is the field's field name to test
public 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 test
public static String checkNumeric(EventType type, String numericFieldName)
type
- contains metadata about fieldsnumericFieldName
- is the field's field name to test
public 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 test
public static String checkLong(EventType type, String longFieldName)
type
- contains metadata about fieldslongFieldName
- is the field's field name to test
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |