Package io.trino.spi.function.table
Interface TableFunctionDataProcessor
public interface TableFunctionDataProcessor
-
Method Summary
Modifier and TypeMethodDescriptionThis method processes a portion of data.
-
Method Details
-
process
This method processes a portion of data. It is called multiple times until the partition is fully processed.- Parameters:
input- a tuple ofPageincluding one page for each table function's input table. Pages list is ordered according to the corresponding argument specifications inConnectorTableFunction. A page for an argument consists of columns requested during analysis (seeTableFunctionAnalysis.getRequiredColumns()}. If any of the sources is fully processed,Optional.empty)()is returned for that source. If all sources are fully processed, the argument isnull.- Returns:
TableFunctionProcessorStateincluding the processor's state and optionally a portion of result. After the returned state isFINISHED, the method will not be called again.
-