Class TextFormat
- java.lang.Object
-
- com.azure.resourcemanager.datafactory.models.DatasetStorageFormat
-
- com.azure.resourcemanager.datafactory.models.TextFormat
-
public final class TextFormat extends DatasetStorageFormat
The data stored in text format.
-
-
Constructor Summary
Constructors Constructor Description TextFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectcolumnDelimiter()Get the columnDelimiter property: The column delimiter.ObjectencodingName()Get the encodingName property: The code page name of the preferred encoding.ObjectescapeChar()Get the escapeChar property: The escape character.ObjectfirstRowAsHeader()Get the firstRowAsHeader property: When used as input, treat the first row of data as headers.ObjectnullValue()Get the nullValue property: The null value string.ObjectquoteChar()Get the quoteChar property: The quote character.ObjectrowDelimiter()Get the rowDelimiter property: The row delimiter.ObjectskipLineCount()Get the skipLineCount property: The number of lines/rows to be skipped when parsing text files.ObjecttreatEmptyAsNull()Get the treatEmptyAsNull property: Treat empty column values in the text file as null.voidvalidate()Validates the instance.TextFormatwithColumnDelimiter(Object columnDelimiter)Set the columnDelimiter property: The column delimiter.TextFormatwithDeserializer(Object deserializer)Set the deserializer property: Deserializer.TextFormatwithEncodingName(Object encodingName)Set the encodingName property: The code page name of the preferred encoding.TextFormatwithEscapeChar(Object escapeChar)Set the escapeChar property: The escape character.TextFormatwithFirstRowAsHeader(Object firstRowAsHeader)Set the firstRowAsHeader property: When used as input, treat the first row of data as headers.TextFormatwithNullValue(Object nullValue)Set the nullValue property: The null value string.TextFormatwithQuoteChar(Object quoteChar)Set the quoteChar property: The quote character.TextFormatwithRowDelimiter(Object rowDelimiter)Set the rowDelimiter property: The row delimiter.TextFormatwithSerializer(Object serializer)Set the serializer property: Serializer.TextFormatwithSkipLineCount(Object skipLineCount)Set the skipLineCount property: The number of lines/rows to be skipped when parsing text files.TextFormatwithTreatEmptyAsNull(Object treatEmptyAsNull)Set the treatEmptyAsNull property: Treat empty column values in the text file as null.-
Methods inherited from class com.azure.resourcemanager.datafactory.models.DatasetStorageFormat
additionalProperties, deserializer, serializer, withAdditionalProperties
-
-
-
-
Method Detail
-
columnDelimiter
public Object columnDelimiter()
Get the columnDelimiter property: The column delimiter. Type: string (or Expression with resultType string).- Returns:
- the columnDelimiter value.
-
withColumnDelimiter
public TextFormat withColumnDelimiter(Object columnDelimiter)
Set the columnDelimiter property: The column delimiter. Type: string (or Expression with resultType string).- Parameters:
columnDelimiter- the columnDelimiter value to set.- Returns:
- the TextFormat object itself.
-
rowDelimiter
public Object rowDelimiter()
Get the rowDelimiter property: The row delimiter. Type: string (or Expression with resultType string).- Returns:
- the rowDelimiter value.
-
withRowDelimiter
public TextFormat withRowDelimiter(Object rowDelimiter)
Set the rowDelimiter property: The row delimiter. Type: string (or Expression with resultType string).- Parameters:
rowDelimiter- the rowDelimiter value to set.- Returns:
- the TextFormat object itself.
-
escapeChar
public Object escapeChar()
Get the escapeChar property: The escape character. Type: string (or Expression with resultType string).- Returns:
- the escapeChar value.
-
withEscapeChar
public TextFormat withEscapeChar(Object escapeChar)
Set the escapeChar property: The escape character. Type: string (or Expression with resultType string).- Parameters:
escapeChar- the escapeChar value to set.- Returns:
- the TextFormat object itself.
-
quoteChar
public Object quoteChar()
Get the quoteChar property: The quote character. Type: string (or Expression with resultType string).- Returns:
- the quoteChar value.
-
withQuoteChar
public TextFormat withQuoteChar(Object quoteChar)
Set the quoteChar property: The quote character. Type: string (or Expression with resultType string).- Parameters:
quoteChar- the quoteChar value to set.- Returns:
- the TextFormat object itself.
-
nullValue
public Object nullValue()
Get the nullValue property: The null value string. Type: string (or Expression with resultType string).- Returns:
- the nullValue value.
-
withNullValue
public TextFormat withNullValue(Object nullValue)
Set the nullValue property: The null value string. Type: string (or Expression with resultType string).- Parameters:
nullValue- the nullValue value to set.- Returns:
- the TextFormat object itself.
-
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:
- the encodingName value.
-
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:
encodingName- the encodingName value to set.- Returns:
- the TextFormat object itself.
-
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:
- the treatEmptyAsNull value.
-
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:
treatEmptyAsNull- the treatEmptyAsNull value to set.- Returns:
- the TextFormat object itself.
-
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:
- the skipLineCount value.
-
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:
skipLineCount- the skipLineCount value to set.- Returns:
- the TextFormat object itself.
-
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:
- the firstRowAsHeader value.
-
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:
firstRowAsHeader- the firstRowAsHeader value to set.- Returns:
- the TextFormat object itself.
-
withSerializer
public TextFormat withSerializer(Object serializer)
Set the serializer property: Serializer. Type: string (or Expression with resultType string).- Overrides:
withSerializerin classDatasetStorageFormat- Parameters:
serializer- the serializer value to set.- Returns:
- the DatasetStorageFormat object itself.
-
withDeserializer
public TextFormat withDeserializer(Object deserializer)
Set the deserializer property: Deserializer. Type: string (or Expression with resultType string).- Overrides:
withDeserializerin classDatasetStorageFormat- Parameters:
deserializer- the deserializer value to set.- Returns:
- the DatasetStorageFormat object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classDatasetStorageFormat- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-