public final class FieldTypes
extends java.lang.Object
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");
Modifier and Type | Field and Description |
---|---|
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. |
Modifier and Type | Method and Description |
---|---|
static <K,V> DictionaryFieldType<K,V> |
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 <T> OptionalFieldType<T> |
optional(FieldType<T> containedType)
Create a new field type object for an Apama optional event field,
for which type is specified by the FieldType
|
static <E> SequenceFieldType<E> |
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> . |
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.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
.public static <T> OptionalFieldType<T> optional(FieldType<T> containedType)
elementType
- The event field type for the element in this optional type.EventType
.Submit a bug or feature
Copyright (c) 2013-2018 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.