public class TextParsingSettings extends Object
| Constructor and Description |
|---|
TextParsingSettings(TextFormatPlugin.TextFormatConfig config,
TupleMetadata providedSchema)
Configure the properties for this one scan based on:
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getComment() |
byte |
getDelimiter()
Returns the field delimiter character.
|
String |
getLineSeparatorString() |
long |
getMaxCharsPerColumn() |
byte[] |
getNewLineDelimiter() |
byte |
getNormalizedNewLine() |
byte |
getQuote()
Returns the character used for escaping values where the field delimiter is
part of the value.
|
byte |
getQuoteEscape()
Returns the character used for escaping quotes inside an already quoted value.
|
boolean |
ignoreLeadingWhitespace() |
boolean |
ignoreTrailingWhitespace() |
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
|
boolean |
isSkipFirstLine() |
boolean |
parseUnescapedQuotes()
Indicates whether the CSV parser should accept unescaped quotes inside
quoted values and parse them normally.
|
void |
setSkipFirstLine(boolean skipFirstLine) |
public TextParsingSettings(TextFormatPlugin.TextFormatConfig config, TupleMetadata providedSchema)
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.
public byte getComment()
public boolean isSkipFirstLine()
public void setSkipFirstLine(boolean skipFirstLine)
public byte[] getNewLineDelimiter()
public byte getQuote()
public String getLineSeparatorString()
public byte getQuoteEscape()
public byte getDelimiter()
public boolean parseUnescapedQuotes()
true.public boolean isHeaderExtractionEnabled()
public long getMaxCharsPerColumn()
public byte getNormalizedNewLine()
public boolean ignoreLeadingWhitespace()
public boolean ignoreTrailingWhitespace()
Copyright © 2021 The Apache Software Foundation. All rights reserved.