public class ValuesInputFormat extends GenericInputFormat<RowData> implements NonParallelInput, ResultTypeQueryable<RowData>
partitionNumber
Constructor and Description |
---|
ValuesInputFormat(GeneratedInput<GenericInputFormat<RowData>> generatedInput,
InternalTypeInfo<RowData> returnType) |
Modifier and Type | Method and Description |
---|---|
InternalTypeInfo<RowData> |
getProducedType()
Gets the data type (as a
TypeInformation ) produced by this function or input format. |
RowData |
nextRecord(RowData reuse)
Reads the next record from the input.
|
void |
open(GenericInputSplit split)
Opens a parallel instance of the input format to work on a split.
|
boolean |
reachedEnd()
Method used to check if the end of the input is reached.
|
close, configure, createInputSplits, getInputSplitAssigner, getStatistics
closeInputFormat, getRuntimeContext, openInputFormat, setRuntimeContext
public ValuesInputFormat(GeneratedInput<GenericInputFormat<RowData>> generatedInput, InternalTypeInfo<RowData> returnType)
public void open(GenericInputSplit split)
InputFormat
When this method is called, the input format it guaranteed to be configured.
open
in interface InputFormat<RowData,GenericInputSplit>
open
in class GenericInputFormat<RowData>
split
- The split to be opened.public boolean reachedEnd() throws IOException
InputFormat
When this method is called, the input format it guaranteed to be opened.
reachedEnd
in interface InputFormat<RowData,GenericInputSplit>
IOException
- Thrown, if an I/O error occurred.public RowData nextRecord(RowData reuse) throws IOException
InputFormat
When this method is called, the input format it guaranteed to be opened.
nextRecord
in interface InputFormat<RowData,GenericInputSplit>
reuse
- Object that may be reused.IOException
- Thrown, if an I/O error occurred.public InternalTypeInfo<RowData> getProducedType()
ResultTypeQueryable
TypeInformation
) produced by this function or input format.getProducedType
in interface ResultTypeQueryable<RowData>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.