Avro C#

Static Public Attributes | List of all members
Avro.File.DataFileConstants Class Reference

Constants used in data files. More...

## Static Public Attributes
const string | MetaDataSync = "avro.sync"
| Key for the 'sync' metadata entry. More...
const string | MetaDataCodec = "avro.codec"
| Key for the 'codec' metadata entry. More...
const string | MetaDataSchema = "avro.schema"
| Key for the 'schema' metadata entry. More...
const string | NullCodec = "null"
| Identifier for the null codec. More...
const string | DeflateCodec = "deflate"
| Identifier for the deflate codec. More...
const string | SnappyCodec = "snappy"
| Identifier for the Snappy codec. More...
const string | BZip2Codec = "bzip2"
| Identifier for the BZip2 codec. More...
const string | XZCodec = "xz"
| Identifier for the XZ codec. More...
const string | ZstandardCodec = "zstandard"
| Identifier for the Zstandard codec. More...
const string | MetaDataReserved = "avro"
| Reserved 'avro' metadata key. More...
const int | Version = 1
| Avro specification version. More...
static byte[] | Magic
| Magic bytes at the beginning of an Avro data file. More...
const int | NullCodecHash = 2
| Hash code for the null codec. More...
const int | DeflateCodecHash = 0
| Hash code for the deflate codec. More...
const int | SyncSize = 16
| Size of a sync token in bytes. More...
const int | DefaultSyncInterval = 4000 * SyncSize
| Default interval for sync tokens. More...

## Detailed Description

Constants used in data files.

## Member Data Documentation

## ◆ BZip2Codec

const string Avro.File.DataFileConstants.BZip2Codec = "bzip2"
| static

Identifier for the BZip2 codec.

## ◆ DefaultSyncInterval

const int Avro.File.DataFileConstants.DefaultSyncInterval = 4000 * SyncSize
| static

Default interval for sync tokens.

## ◆ DeflateCodec

const string Avro.File.DataFileConstants.DeflateCodec = "deflate"
| static

Identifier for the deflate codec.

## ◆ DeflateCodecHash

const int Avro.File.DataFileConstants.DeflateCodecHash = 0
| static

Hash code for the deflate codec.

See also
  DeflateCodec.GetHashCode()

## ◆ Magic

byte [] Avro.File.DataFileConstants.Magic
| static

Initial value:
= { (byte)'O',
(byte)'b',
(byte)'j',
Version }

Magic bytes at the beginning of an Avro data file.

## ◆ MetaDataCodec

const string Avro.File.DataFileConstants.MetaDataCodec = "avro.codec"
| static

Key for the 'codec' metadata entry.

## ◆ MetaDataReserved

const string Avro.File.DataFileConstants.MetaDataReserved = "avro"
| static

Reserved 'avro' metadata key.

## ◆ MetaDataSchema

const string Avro.File.DataFileConstants.MetaDataSchema = "avro.schema"
| static

Key for the 'schema' metadata entry.

## ◆ MetaDataSync

const string Avro.File.DataFileConstants.MetaDataSync = "avro.sync"
| static

Key for the 'sync' metadata entry.

## ◆ NullCodec

const string Avro.File.DataFileConstants.NullCodec = "null"
| static

Identifier for the null codec.

## ◆ NullCodecHash

const int Avro.File.DataFileConstants.NullCodecHash = 2
| static

Hash code for the null codec.

See also
  NullCodec.GetHashCode()

## ◆ SnappyCodec

const string Avro.File.DataFileConstants.SnappyCodec = "snappy"
| static

Identifier for the Snappy codec.

## ◆ SyncSize

const int Avro.File.DataFileConstants.SyncSize = 16
| static

Size of a sync token in bytes.

## ◆ Version

const int Avro.File.DataFileConstants.Version = 1
| static

Avro specification version.

## ◆ XZCodec

const string Avro.File.DataFileConstants.XZCodec = "xz"
| static

Identifier for the XZ codec.

## ◆ ZstandardCodec

const string Avro.File.DataFileConstants.ZstandardCodec = "zstandard"
| static

Identifier for the Zstandard codec.

The documentation for this class was generated from the following file:

- src/apache/main/File/DataFileConstants.cs

Avro.File.DataFileConstants.Version
const int Version
Avro specification version.
Definition: DataFileConstants.cs:82