public class CSVInputAdapterSpec extends Object
Constructor and Description |
---|
CSVInputAdapterSpec(AdapterInputSource adapterInputSource,
String eventTypeName)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
AdapterInputSource |
getAdapterInputSource() |
Integer |
getEventsPerSec() |
String |
geteventTypeName() |
String[] |
getPropertyOrder() |
Map<String,Object> |
getPropertyTypes() |
String |
getTimestampColumn() |
boolean |
isLooping() |
boolean |
isUsingEngineThread() |
boolean |
isUsingExternalTimer() |
boolean |
isUsingTimeSpanEvents()
Returns the indicator whether
CurrentTimeEvent (false, the default)
or CurrentTimeSpanEvent (true) are used for time advancing. |
void |
setAdapterInputSource(AdapterInputSource adapterInputSource) |
void |
setEventsPerSec(int eventsPerSec)
Sets the number of events per seconds.
|
void |
seteventTypeName(String eventTypeName) |
void |
setLooping(boolean looping) |
void |
setPropertyOrder(String[] propertyOrder) |
void |
setPropertyTypes(Map<String,Object> propertyTypes)
Set the propertyTypes value
|
void |
setTimestampColumn(String timestampColumn)
Set the timestamp column name.
|
void |
setUsingEngineThread(boolean usingEngineThread)
Set to true to use the engine timer thread for the work, or false to use the current thread.
|
void |
setUsingExternalTimer(boolean usingExternalTimer)
Set to true to use esper's external timer mechanism instead of internal timing
|
void |
setUsingTimeSpanEvents(boolean usingTimeSpanEvents)
Sets the indicator whether
CurrentTimeEvent (false, the default)
or CurrentTimeSpanEvent (true) are used for time advancing. |
public CSVInputAdapterSpec(AdapterInputSource adapterInputSource, String eventTypeName)
adapterInputSource
- - the source for the CSV dataeventTypeName
- - the name for the event type created from the CSV datapublic void setEventsPerSec(int eventsPerSec)
eventsPerSec
- number of events to send per secondpublic void setPropertyOrder(String[] propertyOrder)
propertyOrder
- - the property order of the properties in the CSV filepublic void setLooping(boolean looping)
looping
- - the isLooping value to setpublic void setPropertyTypes(Map<String,Object> propertyTypes)
propertyTypes
- - a mapping between the names and types of the properties in the
CSV file; this will also be the form of the Map event created
from the datapublic void setUsingEngineThread(boolean usingEngineThread)
usingEngineThread
- true for timer threadpublic boolean isUsingEngineThread()
public void setUsingExternalTimer(boolean usingExternalTimer)
usingExternalTimer
- true for external timerpublic boolean isUsingExternalTimer()
public void setTimestampColumn(String timestampColumn)
timestampColumn
- - the name of the column to use for timestampspublic String getTimestampColumn()
public AdapterInputSource getAdapterInputSource()
public void setAdapterInputSource(AdapterInputSource adapterInputSource)
adapterInputSource
- the adapterInputSource to setpublic String geteventTypeName()
public void seteventTypeName(String eventTypeName)
eventTypeName
- the eventTypeName to setpublic Integer getEventsPerSec()
public boolean isLooping()
public String[] getPropertyOrder()
public boolean isUsingTimeSpanEvents()
CurrentTimeEvent
(false, the default)
or CurrentTimeSpanEvent
(true) are used for time advancing.public void setUsingTimeSpanEvents(boolean usingTimeSpanEvents)
CurrentTimeEvent
(false, the default)
or CurrentTimeSpanEvent
(true) are used for time advancing.usingTimeSpanEvents
- new value