|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esperio.AbstractCoordinatedAdapter
com.espertech.esperio.csv.CSVInputAdapter
public class CSVInputAdapter
An event Adapter that uses a CSV file for a source.
Field Summary |
---|
Fields inherited from class com.espertech.esperio.AbstractCoordinatedAdapter |
---|
eventsToSend, scheduleSlot, stateManager |
Fields inherited from interface com.espertech.esper.adapter.InputAdapter |
---|
ESPERIO_MAP_EVENT_TYPE |
Constructor Summary | |
---|---|
CSVInputAdapter(AdapterInputSource adapterInputSource,
java.lang.String eventTypeName)
Ctor for adapters that will be passed to an AdapterCoordinator. |
|
CSVInputAdapter(CSVInputAdapterSpec adapterSpec)
Ctor for adapters that will be passed to an AdapterCoordinator. |
|
CSVInputAdapter(com.espertech.esper.client.EPServiceProvider epService,
AdapterInputSource adapterInputSource,
java.lang.String eventTypeName)
Ctor. |
|
CSVInputAdapter(com.espertech.esper.client.EPServiceProvider epService,
CSVInputAdapterSpec spec)
Ctor. |
Method Summary | |
---|---|
protected void |
close()
Close the CSVReader. |
int |
getRowCount()
Returns row count. |
SendableEvent |
read()
Get the next event in line to be sent into the runtime , or null if there is no available event. |
protected void |
replaceFirstEventToSend()
Remove the first member of eventsToSend. |
protected void |
reset()
Reset all the changeable state of this ReadableAdapter, as if it were just created. |
void |
setCoercer(AbstractTypeCoercer coercer)
Sets the coercing provider. |
void |
setEPService(com.espertech.esper.client.EPServiceProvider epService)
Set the epService |
Methods inherited from class com.espertech.esperio.AbstractCoordinatedAdapter |
---|
destroy, disallowStateTransitions, getRuntime, getState, pause, resume, setScheduleSlot, setSender, setUsingEngineThread, setUsingExternalTimer, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.espertech.esper.adapter.Adapter |
---|
destroy, getState, pause, resume, start, stop |
Constructor Detail |
---|
public CSVInputAdapter(com.espertech.esper.client.EPServiceProvider epService, CSVInputAdapterSpec spec)
epService
- - provides the engine runtime and servicesspec
- - the parameters for this adapterpublic CSVInputAdapter(com.espertech.esper.client.EPServiceProvider epService, AdapterInputSource adapterInputSource, java.lang.String eventTypeName)
epService
- - provides the engine runtime and servicesadapterInputSource
- - the source of the CSV fileeventTypeName
- - the type name of the Map event to create from the CSV datapublic CSVInputAdapter(CSVInputAdapterSpec adapterSpec)
adapterSpec
- contains parameters that specify the behavior of the input adapterpublic CSVInputAdapter(AdapterInputSource adapterInputSource, java.lang.String eventTypeName)
adapterInputSource
- - the parameters for this adaptereventTypeName
- - the event type name that the input adapter generates events forMethod Detail |
---|
public SendableEvent read() throws com.espertech.esper.client.EPException
CoordinatedAdapter
read
in interface CoordinatedAdapter
com.espertech.esper.client.EPException
- in case of errors creating the eventpublic void setEPService(com.espertech.esper.client.EPServiceProvider epService)
CoordinatedAdapter
setEPService
in interface CoordinatedAdapter
setEPService
in class AbstractCoordinatedAdapter
epService
- - the value to setpublic void setCoercer(AbstractTypeCoercer coercer)
coercer
- to use for coercingprotected void close()
close
in class AbstractCoordinatedAdapter
protected void replaceFirstEventToSend()
replaceFirstEventToSend
in class AbstractCoordinatedAdapter
protected void reset()
reset
in class AbstractCoordinatedAdapter
public int getRowCount()
|
© 2006-2016 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 |