|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.apama.event.parser.FieldTypes
public final class FieldTypes
Provides factory methods and constants for getting all supported Apama event field types.
For example, to use this class to create a field object whose type is an Apama sequence of integers:
Field<Long> myField = FieldTypes.sequence(FieldTypes.INTEGER).newField("myField");
Field Summary | |
---|---|
static FieldType<java.lang.Boolean> |
BOOLEAN
Get the singleton field type object for the Apama boolean type, for which values are specified as Java Boolean objects. |
static FieldType<DecimalFieldValue> |
DECIMAL
Get the singleton field type object for the Apama decimal type, for which values are specified as Java DecimalFieldValue objects. |
static FieldType<java.lang.Double> |
FLOAT
Get the singleton field type object for the Apama float type, for which values are specified as Java Double objects. |
static FieldType<java.lang.Long> |
INTEGER
Get the singleton field type object for the Apama integer type, for which values are specified as Java Long objects. |
static FieldType<LocationType> |
LOCATION
Get the singleton field type object for the Apama location type, for which values are specified as Java LocationType objects. |
static FieldType<java.lang.String> |
STRING
Get the singleton field type object for the Apama string type, for which values are specified as Java String objects. |
Method Summary | ||
---|---|---|
static
|
dictionary(FieldType<K> keyType,
FieldType<V> valueType)
Create a new field type object for an Apama dictionary event field, for which values are specified by objects implementing java.util.Map<K,V> . |
|
static
|
sequence(FieldType<E> elementType)
Create a new field type object for an Apama sequence event field, for which values are specified by objects implementing java.util.List<E> . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final FieldType<java.lang.Boolean> BOOLEAN
Boolean
objects.
public static final FieldType<DecimalFieldValue> DECIMAL
DecimalFieldValue
objects.
public static final FieldType<java.lang.Double> FLOAT
Double
objects.
public static final FieldType<java.lang.Long> INTEGER
Long
objects.
public static final FieldType<LocationType> LOCATION
LocationType
objects.
public static final FieldType<java.lang.String> STRING
String
objects.
Method Detail |
---|
public static <E> SequenceFieldType<E> sequence(FieldType<E> elementType)
java.util.List<E>
.
elementType
- The event field type for the elements in this sequence.
EventType
.public static <K,V> DictionaryFieldType<K,V> dictionary(FieldType<K> keyType, FieldType<V> valueType)
java.util.Map<K,V>
.
keyType
- The event field type for the keys of items in this dictionary.valueType
- The event field type for the values of items in this dictionary.
EventType
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |