Package app.babylon.table.io
Class HeaderStrategyExpectedHeaders
java.lang.Object
app.babylon.table.io.HeaderStrategyExpectedHeaders
- All Implemented Interfaces:
HeaderStrategy
-
Field Summary
Fields inherited from interface app.babylon.table.io.HeaderStrategy
DEFAULT_SCAN_LIMIT -
Constructor Summary
ConstructorsConstructorDescriptionHeaderStrategyExpectedHeaders(int scanLimit) HeaderStrategyExpectedHeaders(int scanLimit, ColumnName... expectedHeaders) HeaderStrategyExpectedHeaders(int scanLimit, Collection<ColumnName> expectedHeaders) -
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
-
HeaderStrategyExpectedHeaders
public HeaderStrategyExpectedHeaders(int scanLimit) -
HeaderStrategyExpectedHeaders
-
HeaderStrategyExpectedHeaders
-
-
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
-
getExpectedHeaders
-
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
-