| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System; |
| | 5 | | using System.Collections.Generic; |
| | 6 | | using System.Text; |
| | 7 | |
|
| | 8 | | namespace Azure.Storage.Internal.Avro |
| | 9 | | { |
| | 10 | | internal class AvroConstants |
| | 11 | | { |
| | 12 | | public const int SyncMarkerSize = 16; |
| 2 | 13 | | public static byte[] InitBytes = |
| 2 | 14 | | { |
| 2 | 15 | | (byte)'O', |
| 2 | 16 | | (byte)'b', |
| 2 | 17 | | (byte)'j', |
| 2 | 18 | | (byte)1 |
| 2 | 19 | | }; |
| | 20 | | public const string CodecKey = "avro.codec"; |
| | 21 | | public const string SchemaKey = "avro.schema"; |
| | 22 | |
|
| | 23 | | public const string Null = "null"; |
| | 24 | | public const string Boolean = "boolean"; |
| | 25 | | public const string Int = "int"; |
| | 26 | | public const string Long = "long"; |
| | 27 | | public const string Float = "float"; |
| | 28 | | public const string Double = "double"; |
| | 29 | | public const string Bytes = "bytes"; |
| | 30 | | public const string String = "string"; |
| | 31 | | public const string Record = "record"; |
| | 32 | | public const string Enum = "enum"; |
| | 33 | | public const string Map = "map"; |
| | 34 | | public const string Array = "array"; |
| | 35 | | public const string Union = "union"; |
| | 36 | | public const string Fixed = "fixed"; |
| | 37 | |
|
| | 38 | | public const string Aliases = "aliases"; |
| | 39 | | public const string Name = "name"; |
| | 40 | | public const string Fields = "fields"; |
| | 41 | | public const string Type = "type"; |
| | 42 | | public const string Symbols = "symbols"; |
| | 43 | | public const string Values = "values"; |
| | 44 | | } |
| | 45 | | } |