TextFormat Class
- java.
lang. Object - com.
azure. resourcemanager. datafactory. models. DatasetStorageFormat - com.
azure. resourcemanager. datafactory. 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 |
|---|---|
| Object |
columnDelimiter()
Get the column |
| Object |
encodingName()
Get the encoding |
| Object |
escapeChar()
Get the escape |
| Object |
firstRowAsHeader()
Get the first |
|
static
Text |
fromJson(JsonReader jsonReader)
Reads an instance of Text |
| Object |
nullValue()
Get the null |
| Object |
quoteChar()
Get the quote |
| Object |
rowDelimiter()
Get the row |
| Object |
skipLineCount()
Get the skip |
|
Json |
toJson(JsonWriter jsonWriter) |
| Object |
treatEmptyAsNull()
Get the treat |
| String |
type()
Get the type property: Type of dataset storage format. |
| void |
validate()
Validates the instance. |
|
Text |
withColumnDelimiter(Object columnDelimiter)
Set the column |
|
Text |
withDeserializer(Object deserializer)
Set the deserializer property: Deserializer. |
|
Text |
withEncodingName(Object encodingName)
Set the encoding |
|
Text |
withEscapeChar(Object escapeChar)
Set the escape |
|
Text |
withFirstRowAsHeader(Object firstRowAsHeader)
Set the first |
|
Text |
withNullValue(Object nullValue)
Set the null |
|
Text |
withQuoteChar(Object quoteChar)
Set the quote |
|
Text |
withRowDelimiter(Object rowDelimiter)
Set the row |
|
Text |
withSerializer(Object serializer)
Set the serializer property: Serializer. |
|
Text |
withSkipLineCount(Object skipLineCount)
Set the skip |
|
Text |
withTreatEmptyAsNull(Object treatEmptyAsNull)
Set the treat |
Methods inherited from DatasetStorageFormat
Methods inherited from java.lang.Object
Constructor Details
TextFormat
public TextFormat()
Creates an instance of TextFormat class.
Method Details
columnDelimiter
public Object columnDelimiter()
Get the columnDelimiter property: The column delimiter. Type: string (or Expression with resultType string).
Returns:
encodingName
public Object encodingName()
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:
escapeChar
public Object escapeChar()
Get the escapeChar property: The escape character. Type: string (or Expression with resultType string).
Returns:
firstRowAsHeader
public Object firstRowAsHeader()
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:
fromJson
public static TextFormat fromJson(JsonReader jsonReader)
Reads an instance of TextFormat from the JsonReader.
Parameters:
Returns:
Throws:
nullValue
public Object nullValue()
Get the nullValue property: The null value string. Type: string (or Expression with resultType string).
Returns:
quoteChar
public Object quoteChar()
Get the quoteChar property: The quote character. Type: string (or Expression with resultType string).
Returns:
rowDelimiter
public Object rowDelimiter()
Get the rowDelimiter property: The row delimiter. Type: string (or Expression with resultType string).
Returns:
skipLineCount
public Object skipLineCount()
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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
TextFormat.toJson(JsonWriter jsonWriter)Parameters:
Throws:
treatEmptyAsNull
public Object treatEmptyAsNull()
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:
type
public String type()
Get the type property: Type of dataset storage format.
Overrides:
TextFormat.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
TextFormat.validate()withColumnDelimiter
public TextFormat withColumnDelimiter(Object columnDelimiter)
Set the columnDelimiter property: The column delimiter. Type: string (or Expression with resultType string).
Parameters:
Returns:
withDeserializer
public TextFormat withDeserializer(Object deserializer)
Set the deserializer property: Deserializer. Type: string (or Expression with resultType string).
Overrides:
TextFormat.withDeserializer(Object deserializer)Parameters:
withEncodingName
public TextFormat withEncodingName(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:
withEscapeChar
public TextFormat withEscapeChar(Object escapeChar)
Set the escapeChar property: The escape character. Type: string (or Expression with resultType string).
Parameters:
Returns:
withFirstRowAsHeader
public TextFormat withFirstRowAsHeader(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:
withNullValue
public TextFormat withNullValue(Object nullValue)
Set the nullValue property: The null value string. Type: string (or Expression with resultType string).
Parameters:
Returns:
withQuoteChar
public TextFormat withQuoteChar(Object quoteChar)
Set the quoteChar property: The quote character. Type: string (or Expression with resultType string).
Parameters:
Returns:
withRowDelimiter
public TextFormat withRowDelimiter(Object rowDelimiter)
Set the rowDelimiter property: The row delimiter. Type: string (or Expression with resultType string).
Parameters:
Returns:
withSerializer
public TextFormat withSerializer(Object serializer)
Set the serializer property: Serializer. Type: string (or Expression with resultType string).
Overrides:
TextFormat.withSerializer(Object serializer)Parameters:
withSkipLineCount
public TextFormat withSkipLineCount(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:
withTreatEmptyAsNull
public TextFormat withTreatEmptyAsNull(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: