TextFormat Class
- java.
lang. Object - com.
azure. analytics. synapse. artifacts. models. DatasetStorageFormat - com.
azure. analytics. synapse. artifacts. models. TextFormat
- com.
- com.
public final class TextFormat
extends DatasetStorageFormat
The data stored in text format.
Constructor Summary
| Constructor | Description |
|---|---|
| TextFormat() |
Creates an instance of Text |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Text |
fromJson(JsonReader jsonReader)
Reads an instance of Text |
| Object |
getColumnDelimiter()
Get the column |
| Object |
getEncodingName()
Get the encoding |
| Object |
getEscapeChar()
Get the escape |
| Object |
getFirstRowAsHeader()
Get the first |
| Object |
getNullValue()
Get the null |
| Object |
getQuoteChar()
Get the quote |
| Object |
getRowDelimiter()
Get the row |
| Object |
getSkipLineCount()
Get the skip |
| Object |
getTreatEmptyAsNull()
Get the treat |
| String |
getType()
Get the type property: Type of dataset storage format. |
|
Text |
setColumnDelimiter(Object columnDelimiter)
Set the column |
|
Text |
setDeserializer(Object deserializer)
Set the deserializer property: Deserializer. |
|
Text |
setEncodingName(Object encodingName)
Set the encoding |
|
Text |
setEscapeChar(Object escapeChar)
Set the escape |
|
Text |
setFirstRowAsHeader(Object firstRowAsHeader)
Set the first |
|
Text |
setNullValue(Object nullValue)
Set the null |
|
Text |
setQuoteChar(Object quoteChar)
Set the quote |
|
Text |
setRowDelimiter(Object rowDelimiter)
Set the row |
|
Text |
setSerializer(Object serializer)
Set the serializer property: Serializer. |
|
Text |
setSkipLineCount(Object skipLineCount)
Set the skip |
|
Text |
setTreatEmptyAsNull(Object treatEmptyAsNull)
Set the treat |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from DatasetStorageFormat
Methods inherited from java.lang.Object
Constructor Details
TextFormat
public TextFormat()
Creates an instance of TextFormat class.
Method Details
fromJson
public static TextFormat fromJson(JsonReader jsonReader)
Reads an instance of TextFormat from the JsonReader.
Parameters:
Returns:
Throws:
getColumnDelimiter
public Object getColumnDelimiter()
Get the columnDelimiter property: The column delimiter. Type: string (or Expression with resultType string).
Returns:
getEncodingName
public Object getEncodingName()
Get the encodingName property: The code page name of the preferred encoding. If miss, the default value is ΓÇ£utf-8ΓÇ¥, unless BOM denotes another Unicode encoding. Refer to the ΓÇ£NameΓÇ¥ column of the table in the following link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType string).
Returns:
getEscapeChar
public Object getEscapeChar()
Get the escapeChar property: The escape character. Type: string (or Expression with resultType string).
Returns:
getFirstRowAsHeader
public Object getFirstRowAsHeader()
Get the firstRowAsHeader property: When used as input, treat the first row of data as headers. When used as output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or Expression with resultType boolean).
Returns:
getNullValue
public Object getNullValue()
Get the nullValue property: The null value string. Type: string (or Expression with resultType string).
Returns:
getQuoteChar
public Object getQuoteChar()
Get the quoteChar property: The quote character. Type: string (or Expression with resultType string).
Returns:
getRowDelimiter
public Object getRowDelimiter()
Get the rowDelimiter property: The row delimiter. Type: string (or Expression with resultType string).
Returns:
getSkipLineCount
public Object getSkipLineCount()
Get the skipLineCount property: The number of lines/rows to be skipped when parsing text files. The default value is 0. Type: integer (or Expression with resultType integer).
Returns:
getTreatEmptyAsNull
public Object getTreatEmptyAsNull()
Get the treatEmptyAsNull property: Treat empty column values in the text file as null. The default value is true. Type: boolean (or Expression with resultType boolean).
Returns:
getType
public String getType()
Get the type property: Type of dataset storage format.
Overrides:
TextFormat.getType()Returns:
setColumnDelimiter
public TextFormat setColumnDelimiter(Object columnDelimiter)
Set the columnDelimiter property: The column delimiter. Type: string (or Expression with resultType string).
Parameters:
Returns:
setDeserializer
public TextFormat setDeserializer(Object deserializer)
Set the deserializer property: Deserializer. Type: string (or Expression with resultType string).
Overrides:
TextFormat.setDeserializer(Object deserializer)Parameters:
setEncodingName
public TextFormat setEncodingName(Object encodingName)
Set the encodingName property: The code page name of the preferred encoding. If miss, the default value is ΓÇ£utf-8ΓÇ¥, unless BOM denotes another Unicode encoding. Refer to the ΓÇ£NameΓÇ¥ column of the table in the following link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType string).
Parameters:
Returns:
setEscapeChar
public TextFormat setEscapeChar(Object escapeChar)
Set the escapeChar property: The escape character. Type: string (or Expression with resultType string).
Parameters:
Returns:
setFirstRowAsHeader
public TextFormat setFirstRowAsHeader(Object firstRowAsHeader)
Set the firstRowAsHeader property: When used as input, treat the first row of data as headers. When used as output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or Expression with resultType boolean).
Parameters:
Returns:
setNullValue
public TextFormat setNullValue(Object nullValue)
Set the nullValue property: The null value string. Type: string (or Expression with resultType string).
Parameters:
Returns:
setQuoteChar
public TextFormat setQuoteChar(Object quoteChar)
Set the quoteChar property: The quote character. Type: string (or Expression with resultType string).
Parameters:
Returns:
setRowDelimiter
public TextFormat setRowDelimiter(Object rowDelimiter)
Set the rowDelimiter property: The row delimiter. Type: string (or Expression with resultType string).
Parameters:
Returns:
setSerializer
public TextFormat setSerializer(Object serializer)
Set the serializer property: Serializer. Type: string (or Expression with resultType string).
Overrides:
TextFormat.setSerializer(Object serializer)Parameters:
setSkipLineCount
public TextFormat setSkipLineCount(Object skipLineCount)
Set the skipLineCount property: The number of lines/rows to be skipped when parsing text files. The default value is 0. Type: integer (or Expression with resultType integer).
Parameters:
Returns:
setTreatEmptyAsNull
public TextFormat setTreatEmptyAsNull(Object treatEmptyAsNull)
Set the treatEmptyAsNull property: Treat empty column values in the text file as null. The default value is true. Type: boolean (or Expression with resultType boolean).
Parameters:
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
TextFormat.toJson(JsonWriter jsonWriter)Parameters:
Throws: