Package app.babylon.table.io
Class HeaderDetection
java.lang.Object
app.babylon.table.io.HeaderDetection
Result of header detection, including the found headers and any selected
subset.
-
Constructor Summary
ConstructorsConstructorDescriptionHeaderDetection(ColumnName[] headersFound) Creates a detection with the supplied headers and no synthetic flag.HeaderDetection(ColumnName[] headersFound, boolean syntheticHeaders) Creates a detection with the supplied headers.HeaderDetection(ColumnName[] headersFound, boolean syntheticHeaders, ColumnName[] selectedHeaders, int[] selectedPositions) Creates a full detection result. -
Method Summary
Modifier and TypeMethodDescriptionReturns the headers found in the source.Returns the selected output headers.int[]Returns the source positions of the selected headers.booleanReturns whether the headers were synthesized rather than read from the source.
-
Constructor Details
-
HeaderDetection
Creates a detection with the supplied headers and no synthetic flag. -
HeaderDetection
Creates a detection with the supplied headers. -
HeaderDetection
public HeaderDetection(ColumnName[] headersFound, boolean syntheticHeaders, ColumnName[] selectedHeaders, int[] selectedPositions) Creates a full detection result.
-
-
Method Details
-
getHeadersFound
Returns the headers found in the source. -
getSelectedHeaders
Returns the selected output headers. -
getSelectedPositions
public int[] getSelectedPositions()Returns the source positions of the selected headers. -
isSyntheticHeaders
public boolean isSyntheticHeaders()Returns whether the headers were synthesized rather than read from the source.
-