ArrowTextConfigurationInternal
Groups the settings used for formatting the response if the response should be Arrow formatted.
using Azure.Core;
using Azure.Storage.Common;
using System.Collections.Generic;
using System.Linq;
using System.Xml;
namespace Azure.Storage.Blobs.Models
{
[CodeGenModel("ArrowConfiguration")]
internal class ArrowTextConfigurationInternal : IXmlSerializable
{
public IList<ArrowFieldInternal> Schema { get; }
public ArrowTextConfigurationInternal(IEnumerable<ArrowFieldInternal> schema)
{
Argument.AssertNotNull(schema, "schema");
Schema = schema.ToList();
}
internal ArrowTextConfigurationInternal(IList<ArrowFieldInternal> schema)
{
Schema = schema;
}
void IXmlSerializable.Write(XmlWriter writer, string nameHint)
{
writer.WriteStartElement(nameHint ?? "ArrowConfiguration");
writer.WriteStartElement("Schema");
foreach (ArrowFieldInternal item in Schema) {
writer.WriteObjectValue(item, "Field");
}
writer.WriteEndElement();
writer.WriteEndElement();
}
}
}