Package com.ptc.mvc.components
Interface ComponentResultProcessor
- All Superinterfaces:
ResultProcessor
- All Known Implementing Classes:
AbstractComponentResultProcessor,DefaultComponentResultProcessor,DefaultTreeResultProcessor
ResultProcessor interface for DataSource. If the MVC component is marked to be of DataSourceMode = ASYNCHRONOUS, this
processor will be available in its ComponeentDataBuilder. In the ComponentDataBuilder, you need to add the data from
your query layer/other sources.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddElements(Iterable<?> elements)
Supported API: truedefault voidaddElements(Iterable<?> elements, boolean handleInOneChunk)
Supported API: truevoidaddFeedback(List<? extends ClientFeedback> feedback) Add ClientFeedback
Supported API: trueintWhen the added elements reaches this size, it will be send for processing, after which gets added to DataSource
Supported API: trueGet the ComponentConfig
Supported API: truecom.ptc.mvc.components.ComponentDataGet the intialData.Get the ComponentParams
Supported API: truebooleanWhether the data added is from offSet or not
Supported API: truebooleanisOpen()Determine if results can still be added.boolean
Supported API: truevoidsetFeedbackGenerator(ClientFeedbackGenerator generator) Set the Generator that will generate ClientFeedback for the chunkables that gets added into the DataSource
Supported API: truevoidsetOffSetData(boolean offSetData) Inform that we are going to add data from offset
Supported API: truevoidsetPresorted(boolean preSorted) Specify whether the data that is added is sorted or not.Methods inherited from interface wt.fc.ResultProcessor
addElement
-
Method Details
-
getConfig
ComponentConfig getConfig()Get the ComponentConfig
Supported API: true- Returns:
-
getInitialData
com.ptc.mvc.components.ComponentData getInitialData()Get the intialData.
Supported API: true- Returns:
-
getParams
ComponentParams getParams()Get the ComponentParams
Supported API: true- Returns:
-
addElements
Supported API: true- Parameters:
elements-- Throws:
WTException
-
addElements
Supported API: true- Parameters:
elements-handleInOneChunk- whether the elements that is provided here is to be handled in the same chunk or not- Throws:
WTException
-
setPresorted
void setPresorted(boolean preSorted) Specify whether the data that is added is sorted or not. [default is false]
Supported API: true- Parameters:
memorySort-
-
isPresorted
boolean isPresorted()
Supported API: true- Returns:
- boolean
-
isOpen
boolean isOpen()Determine if results can still be added. If the processor is not open, then calls to addElement may throw runtime Exceptions.
Supported API: true- Returns:
- boolean
-
setFeedbackGenerator
Set the Generator that will generate ClientFeedback for the chunkables that gets added into the DataSource
Supported API: true- Parameters:
generator-
-
addFeedback
Add ClientFeedback
Supported API: true- Parameters:
feedback-
-
setOffSetData
void setOffSetData(boolean offSetData) Inform that we are going to add data from offset
Supported API: true- Parameters:
offSetData-
-
isOffSetData
boolean isOffSetData()Whether the data added is from offSet or not
Supported API: true- Returns:
-
getChunkSize
int getChunkSize()When the added elements reaches this size, it will be send for processing, after which gets added to DataSource
Supported API: true- Returns:
- int
-