|
||||||||||
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 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. |
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 java.lang.String exists(EventType type, java.lang.String fieldName)
type
- contains metadata about fieldsfieldName
- is the field's field name to test
public 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 test
public static java.lang.String checkNumeric(EventType type, java.lang.String numericFieldName)
type
- contains metadata about fieldsnumericFieldName
- is the field's field name to test
public 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 test
public static java.lang.String checkLong(EventType type, java.lang.String longFieldName)
type
- contains metadata about fieldslongFieldName
- is the field's field name to test
|
© 2006-2015 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 |