Class Dialect
Dialect are options to change the default CSV output format; https://www.w3.org/TR/2015/REC-tabular-metadata-20151217/#dialect-descriptions
Inheritance
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class Dialect : IEquatable<Dialect>
Constructors
Dialect(Nullable<Boolean>, String, List<Dialect.AnnotationsEnum>, String, Nullable<Dialect.DateTimeFormatEnum>)
Initializes a new instance of the Dialect class.
Declaration
public Dialect(bool? header, string delimiter = ",", List<Dialect.AnnotationsEnum> annotations = null, string commentPrefix = "#", Dialect.DateTimeFormatEnum? dateTimeFormat = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
header | If true, the results will contain a header row (default to true). |
System. |
delimiter | Separator between cells; the default is , (default to ","). |
List<Dialect. |
annotations | https://www.w3.org/TR/2015/REC-tabular-data-model-20151217/#columns. |
System. |
commentPrefix | Character prefixed to comment strings (default to "#"). |
System. |
dateTimeFormat | Format of timestamps (default to DateTimeFormatEnum.RFC3339). |
Properties
Annotations
Declaration
public List<Dialect.AnnotationsEnum> Annotations { get; set; }
Property Value
Type | Description |
---|---|
List<Dialect. |
https://www.w3.org/TR/2015/REC-tabular-data-model-20151217/#columns |
CommentPrefix
Character prefixed to comment strings
Declaration
public string CommentPrefix { get; set; }
Property Value
Type | Description |
---|---|
System. |
Character prefixed to comment strings |
DateTimeFormat
Format of timestamps
Declaration
public Dialect.DateTimeFormatEnum? DateTimeFormat { get; set; }
Property Value
Type | Description |
---|---|
System. |
Format of timestamps |
Delimiter
Separator between cells; the default is ,
Declaration
public string Delimiter { get; set; }
Property Value
Type | Description |
---|---|
System. |
Separator between cells; the default is , |
Header
If true, the results will contain a header row
Declaration
public bool? Header { get; set; }
Property Value
Type | Description |
---|---|
System. |
If true, the results will contain a header row |
Methods
Equals(Dialect)
Returns true if Dialect instances are equal
Declaration
public bool Equals(Dialect input)
Parameters
Type | Name | Description |
---|---|---|
Dialect | input | Instance of Dialect to be compared |
Returns
Type | Description |
---|---|
System. |
Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System. |
input | Object to be compared |
Returns
Type | Description |
---|---|
System. |
Boolean |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
Hash code |
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System. |
JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
String presentation of the object |