|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.apama.event.parser.Field<T>
public class Field<T>
Represents the name and type of a field in an EventType
.
Note that the easiest way to create Field objects is to use FieldTypes
to get
the required FieldType then call the FieldType.newField(String)
helper method to
create the Field.
For example, to create a field object whose type is an Apama sequence of integers:
Field<Long> myField = FieldTypes.sequence(FieldTypes.INTEGER).newField("myField");
Constructor Summary | |
---|---|
Field(java.lang.String name,
FieldType<T> type)
Creates a new field. |
Method Summary | |
---|---|
java.lang.String |
getName()
Method to return the name of the field object |
FieldType<T> |
getType()
Method to return the FieldType of the field object |
java.lang.String |
toString()
Returns a String representation of the event type. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Field(java.lang.String name, FieldType<T> type)
Consider using FieldType.newField(String)
as a simpler alternative to calling this constructor.
name
- the field nametype
- the field typeMethod Detail |
---|
public java.lang.String getName()
public FieldType<T> getType()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |