Interface CustomSetterSinkDataProcessor
- All Known Implementing Classes:
CustomSetterSinkDataProcessorImpl
-
Method Summary
Modifier and TypeMethodDescriptiongetAllColumnDataMap(@NotNull String columnName) The method is invoked from CustomSetterSinks to get the processed data The control will wait until all data is processed<DATA_TYPE>
voidpublish(@NotNull String columnName, @NotNull DATA_TYPE[] values, int length, Class<DATA_TYPE> dataType) The publish method that allows ColumnSinks to publish their non-primitive datavoidpublishBooleans(@NotNull String columnName, @NotNull Boolean[] values, int length) The publish method that allows ColumnSinks that are handling Boolean data type to publish datavoidpublishBytes(@NotNull String columnName, byte @NotNull [] values, boolean[] isNull, int length) The publish method that allows ColumnSinks that are handling byte data type to publish datavoidpublishChars(@NotNull String columnName, char @NotNull [] values, boolean[] isNull, int length) The publish method that allows ColumnSinks that are handling char data type to publish datavoidpublishDoubles(@NotNull String columnName, double @NotNull [] values, boolean[] isNull, int length) The publish method that allows ColumnSinks that are handling double data type to publish datavoidpublishFloats(@NotNull String columnName, float @NotNull [] values, boolean[] isNull, int length) The publish method that allows ColumnSinks that are handling float data type to publish datavoidpublishInts(@NotNull String columnName, int @NotNull [] values, boolean[] isNull, int length) The publish method that allows ColumnSinks that are handling int data type to publish datavoidpublishLongs(@NotNull String columnName, long @NotNull [] values, boolean[] isNull, int length) The publish method that allows ColumnSinks that are handling long data type to publish datavoidpublishShorts(@NotNull String columnName, short @NotNull [] values, boolean[] isNull, int length) The publish method that allows ColumnSinks that are handling short data type to publish dataintshutdown()Expected to be invoked when the import is complete or terminated, necessary cleanup should be done
-
Method Details
-
shutdown
int shutdown()Expected to be invoked when the import is complete or terminated, necessary cleanup should be done- Returns:
- The count of columns that have not been processed yet in the event this is a forced termination
-
getAllColumnDataMap
The method is invoked from CustomSetterSinks to get the processed data The control will wait until all data is processed- Parameters:
columnName- The invoking custom-setter column name- Returns:
- Map of column name to data for that column represented as an array of (potentially boxed) Objects.
-
publishBytes
void publishBytes(@NotNull @NotNull String columnName, byte @NotNull [] values, boolean[] isNull, int length) The publish method that allows ColumnSinks that are handling byte data type to publish dataThe column name will be used to associate the data as well as used to confirm that column data has been received
- Parameters:
columnName- The column name publishing the datavalues- The values for the column in this chunkisNull- A boolean array, with the same range of valid elements. A "true" value at positionimeans thatsrc[i]should be ignored and the element should be considered as the "null value".length- The length of the values in the chunk
-
publishBooleans
void publishBooleans(@NotNull @NotNull String columnName, @NotNull @NotNull Boolean[] values, int length) The publish method that allows ColumnSinks that are handling Boolean data type to publish dataThe column name will be used to associate the data as well as used to confirm that column data has been received
- Parameters:
columnName- The column name publishing the datavalues- The values for the column in this chunklength- The length of the values in the chunk
-
publishChars
void publishChars(@NotNull @NotNull String columnName, char @NotNull [] values, boolean[] isNull, int length) The publish method that allows ColumnSinks that are handling char data type to publish dataThe column name will be used to associate the data as well as used to confirm that column data has been received
- Parameters:
columnName- The column name publishing the datavalues- The values for the column in this chunkisNull- A boolean array, with the same range of valid elements. A "true" value at positionimeans thatsrc[i]should be ignored and the element should be considered as the "null value".length- The length of the values in the chunk
-
publishDoubles
void publishDoubles(@NotNull @NotNull String columnName, double @NotNull [] values, boolean[] isNull, int length) The publish method that allows ColumnSinks that are handling double data type to publish dataThe column name will be used to associate the data as well as used to confirm that column data has been received
- Parameters:
columnName- The column name publishing the datavalues- The values for the column in this chunkisNull- A boolean array, with the same range of valid elements. A "true" value at positionimeans thatsrc[i]should be ignored and the element should be considered as the "null value".length- The length of the values in the chunk
-
publishFloats
void publishFloats(@NotNull @NotNull String columnName, float @NotNull [] values, boolean[] isNull, int length) The publish method that allows ColumnSinks that are handling float data type to publish dataThe column name will be used to associate the data as well as used to confirm that column data has been received
- Parameters:
columnName- The column name publishing the datavalues- The values for the column in this chunkisNull- A boolean array, with the same range of valid elements. A "true" value at positionimeans thatsrc[i]should be ignored and the element should be considered as the "null value".length- The length of the values in the chunk
-
publishInts
void publishInts(@NotNull @NotNull String columnName, int @NotNull [] values, boolean[] isNull, int length) The publish method that allows ColumnSinks that are handling int data type to publish dataThe column name will be used to associate the data as well as used to confirm that column data has been received
- Parameters:
columnName- The column name publishing the datavalues- The values for the column in this chunkisNull- A boolean array, with the same range of valid elements. A "true" value at positionimeans thatsrc[i]should be ignored and the element should be considered as the "null value".length- The length of the values in the chunk
-
publishLongs
void publishLongs(@NotNull @NotNull String columnName, long @NotNull [] values, boolean[] isNull, int length) The publish method that allows ColumnSinks that are handling long data type to publish dataThe column name will be used to associate the data as well as used to confirm that column data has been received
- Parameters:
columnName- The column name publishing the datavalues- The values for the column in this chunkisNull- A boolean array, with the same range of valid elements. A "true" value at positionimeans thatsrc[i]should be ignored and the element should be considered as the "null value".length- The length of the values in the chunk
-
publishShorts
void publishShorts(@NotNull @NotNull String columnName, short @NotNull [] values, boolean[] isNull, int length) The publish method that allows ColumnSinks that are handling short data type to publish dataThe column name will be used to associate the data as well as used to confirm that column data has been received
- Parameters:
columnName- The column name publishing the datavalues- The values for the column in this chunkisNull- A boolean array, with the same range of valid elements. A "true" value at positionimeans thatsrc[i]should be ignored and the element should be considered as the "null value".length- The length of the values in the chunk
-
publish
<DATA_TYPE> void publish(@NotNull @NotNull String columnName, @NotNull @NotNull DATA_TYPE[] values, int length, Class<DATA_TYPE> dataType) The publish method that allows ColumnSinks to publish their non-primitive dataThe column name will be used to associate the data as well as used to confirm that column data has been received
- Type Parameters:
DATA_TYPE- This is the type of data for the column publishing the data- Parameters:
columnName- The column name publishing the datavalues- The values for the column in this chunklength- The length of the values in the chunkdataType- The data type of the data
-