Skip to content

Commit

Permalink
HSEARCH-835 Add Avro model for optimized id structure
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelbernard authored and hferentschik committed Aug 24, 2011
1 parent 309fdee commit d376252
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
{
"name": "id",
"type": "bytes"
"type": "Id"
},
{
"name": "document",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
{
"name": "id",
"type": "bytes"
"type": "Id"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "Id",
"type": "record", //this is a record as it's the only type that can be named in Avro
"fields": [
{
"name": "value",
"type": [
"bytes", //serialized form
"string",
"int",
"long",
"float",
"double"
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
{
"name": "id",
"type": "bytes"
"type": "Id"
},
{
"name": "document",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

`Document`,

`Id`,

`OptimizeAll`,
`PurgeAll`,
`Delete`,
Expand Down

0 comments on commit d376252

Please sign in to comment.