/** * Use in combination with {@link #setUseHeader}. When `strict-headers` * is set, encoder will ensure the headers are in the order * of the schema; if order differs, an exception is thrown. * * @param b Enable / Disable this setting * @return This Builder instance * * @since 2.7 */ public Builder setStrictHeaders(boolean b) { _feature(ENCODING_FEATURE_STRICT_HEADERS, b); return this; }
/** * Use in combination with {@link #setUseHeader}. When `strict-headers` * is set, encoder will ensure the headers are in the order * of the schema; if order differs, an exception is thrown. * * @param b Enable / Disable this setting * @return This Builder instance * * @since 2.7 */ public Builder setStrictHeaders(boolean b) { _feature(ENCODING_FEATURE_STRICT_HEADERS, b); return this; }
/** * Use in combination with setUseHeader. When use header flag is * is set, this setting will reorder the columns defined in this * schema to match the order set by the header. * * @param b Enable / Disable this setting * @return This Builder instance * * @since 2.7 */ public Builder setReorderColumns(boolean b) { _feature(ENCODING_FEATURE_REORDER_COLUMNS, b); return this; }
/** * Use in combination with setUseHeader. When use header flag is * is set, this setting will reorder the columns defined in this * schema to match the order set by the header. * * @param b Enable / Disable this setting * @return This Builder instance * * @since 2.7 */ public Builder setReorderColumns(boolean b) { _feature(ENCODING_FEATURE_REORDER_COLUMNS, b); return this; }
/** * Method for specifying whether Schema should indicate that * "hash comments" (lines where the first non-whitespace character * is '#') are allowed; if so, they will be skipped without processing. * * @since 2.5 */ public Builder setAllowComments(boolean b) { _feature(ENCODING_FEATURE_ALLOW_COMMENTS, b); return this; }
/** * Method for specifying whether Schema should indicate that * the first line that is not a header (if header handling enabled) * should be skipped in its entirety. */ public Builder setSkipFirstDataRow(boolean b) { _feature(ENCODING_FEATURE_SKIP_FIRST_DATA_ROW, b); return this; }
/** * Method for specifying whether Schema should indicate that * a header line (first row that contains column names) is to be * used for reading and writing or not. */ public Builder setUseHeader(boolean b) { _feature(ENCODING_FEATURE_USE_HEADER, b); return this; }
/** * Method for specifying whether Schema should indicate that * a header line (first row that contains column names) is to be * used for reading and writing or not. */ public Builder setUseHeader(boolean b) { _feature(ENCODING_FEATURE_USE_HEADER, b); return this; }
/** * Method for specifying whether Schema should indicate that * the first line that is not a header (if header handling enabled) * should be skipped in its entirety. */ public Builder setSkipFirstDataRow(boolean b) { _feature(ENCODING_FEATURE_SKIP_FIRST_DATA_ROW, b); return this; }
/** * Method for specifying whether Schema should indicate that * "hash comments" (lines where the first non-whitespace character * is '#') are allowed; if so, they will be skipped without processing. * * @since 2.5 */ public Builder setAllowComments(boolean b) { _feature(ENCODING_FEATURE_ALLOW_COMMENTS, b); return this; }