Class TextParsingSettings
java.lang.Object
org.apache.drill.exec.store.easy.text.reader.TextParsingSettings
- 
Constructor SummaryConstructorsConstructorDescriptionTextParsingSettings(TextFormatConfig config, TupleMetadata providedSchema) Configure the properties for this one scan based on:
- 
Method SummaryModifier and TypeMethodDescriptionbytebyteReturns the field delimiter character.longbyte[]bytebytegetQuote()Returns the character used for escaping values where the field delimiter is part of the value.byteReturns the character used for escaping quotes inside an already quoted value.booleanbooleanbooleanIndicates whether or not the first valid record parsed from the input should be considered as the row containing the names of each columnbooleanbooleanIndicates whether the CSV parser should accept unescaped quotes inside quoted values and parse them normally.voidsetSkipFirstLine(boolean skipFirstLine) 
- 
Constructor Details- 
TextParsingSettingsConfigure the properties for this one scan based on:- The defaults in the plugin config (if properties not defined in the config JSON.
- The config values from the config JSON as stored in the plugin config.
- Table function settings expressed in the query (and passed in as part of the plugin config.
- Table properties.
 The result is that the user can customize the behavior of a table just via the table properties; the user need not define a new storage config just to change a property. For example, by default, the `csv` config has no headers. But, if the user has a ".csv" file with headers, the user can just customize the table properties. 
 
- 
- 
Method Details- 
getCommentpublic byte getComment()
- 
isSkipFirstLinepublic boolean isSkipFirstLine()
- 
setSkipFirstLinepublic void setSkipFirstLine(boolean skipFirstLine) 
- 
getNewLineDelimiterpublic byte[] getNewLineDelimiter()
- 
getQuotepublic byte getQuote()Returns the character used for escaping values where the field delimiter is part of the value. Defaults to '"'- Returns:
- the quote character
 
- 
getLineSeparatorString
- 
getQuoteEscapepublic byte getQuoteEscape()Returns the character used for escaping quotes inside an already quoted value. Defaults to '"'- Returns:
- the quote escape character
 
- 
getDelimiterpublic byte getDelimiter()Returns the field delimiter character. Defaults to ','- Returns:
- the field delimiter character
 
- 
parseUnescapedQuotespublic boolean parseUnescapedQuotes()Indicates whether the CSV parser should accept unescaped quotes inside quoted values and parse them normally. Defaults totrue.- Returns:
- a flag indicating whether or not the CSV parser should accept unescaped quotes inside quoted values.
 
- 
isHeaderExtractionEnabledpublic boolean isHeaderExtractionEnabled()Indicates whether or not the first valid record parsed from the input should be considered as the row containing the names of each column- Returns:
- true if the first valid record parsed from the input should be considered as the row containing the names of each column, false otherwise
 
- 
getMaxCharsPerColumnpublic long getMaxCharsPerColumn()
- 
getNormalizedNewLinepublic byte getNormalizedNewLine()
- 
ignoreLeadingWhitespacepublic boolean ignoreLeadingWhitespace()
- 
ignoreTrailingWhitespacepublic boolean ignoreTrailingWhitespace()
 
-