Package app.babylon.table.io
Class HeaderStrategyWidestNonEmptyRow
java.lang.Object
app.babylon.table.io.HeaderStrategyWidestNonEmptyRow
- All Implemented Interfaces:
HeaderStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetectFoundHeaders(RowStreamMarkable rowStream, Set<ColumnName> selectedColumns) Detects the raw headers present in the source.intReturns the maximum number of rows to scan during header detection.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface app.babylon.table.io.HeaderStrategy
detect
-
Constructor Details
-
HeaderStrategyWidestNonEmptyRow
public HeaderStrategyWidestNonEmptyRow() -
HeaderStrategyWidestNonEmptyRow
public HeaderStrategyWidestNonEmptyRow(int scanLimit)
-
-
Method Details
-
getScanLimit
public int getScanLimit()Description copied from interface:HeaderStrategyReturns the maximum number of rows to scan during header detection.- Specified by:
getScanLimitin interfaceHeaderStrategy- Returns:
- scan limit
-
detectFoundHeaders
public HeaderDetection detectFoundHeaders(RowStreamMarkable rowStream, Set<ColumnName> selectedColumns) throws IOException Description copied from interface:HeaderStrategyDetects the raw headers present in the source.- Specified by:
detectFoundHeadersin interfaceHeaderStrategy- Parameters:
rowStream- row stream to inspectselectedColumns- requested selected columns- Returns:
- detected raw header information
- Throws:
IOException- if stream inspection fails
-