Skip to content

Commit

Permalink
Avro compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Lin Jian committed May 12, 2020
1 parent 0e88f7d commit 05b293f
Show file tree
Hide file tree
Showing 7 changed files with 472 additions and 36 deletions.
16 changes: 9 additions & 7 deletions sdk/storage/storage-internal-avro/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
"name": "storage-internal-avro",
"version": "1.0.0",
"author": "Microsoft Corporation",
"version": "1.0.0-preview.1",
"description": "internal avro parser",
"main": "index.js",
"directories": {
"test": "tests"
"license": "MIT",
"main": "./srt/index.ts",
"module": "dist-esm/index.js",
"types": "./types/index.d.ts",
"engines": {
"node": ">=8.0.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build:es6": "tsc -p tsconfig.json"
},
"author": "Microsoft Corporation",
"license": "MIT",
"dependencies": {
"tslib": "^1.10.0"
},
Expand Down
50 changes: 50 additions & 0 deletions sdk/storage/storage-internal-avro/src/AvroConstants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
export const AvroConstants = {
SYNC_MARKER_SIZE: 16,

// 'O', 'b', 'j', 1
INIT_BYTES: new Uint8Array([79, 98, 106, 1]),

CODEC_KEY: "avro.codec",

SCHEMA_KEY: "avro.schema",

NULL: "null",

BOOLEAN: "boolean",

INT: "int",

LONG: "long",

FLOAT: "float",

DOUBLE: "double",

BYTES: "bytes",

STRING: "string",

RECORD: "record",

ENUM: "enum",

MAP: "map",

ARRAY: "array",

UNION: "union",

FIXED: "fixed",

ALIASES: "aliases",

NAME: "name",

FIELDS: "fields",

TYPE: "type",

SYMBOLS: "symbols",

VALUES: "values",
};
Loading

0 comments on commit 05b293f

Please sign in to comment.