-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HSEARCH-835 Add Avro model for optimized id structure
- Loading branch information
1 parent
309fdee
commit d376252
Showing
5 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
}, | ||
{ | ||
"name": "id", | ||
"type": "bytes" | ||
"type": "Id" | ||
}, | ||
{ | ||
"name": "document", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
}, | ||
{ | ||
"name": "id", | ||
"type": "bytes" | ||
"type": "Id" | ||
} | ||
] | ||
} |
17 changes: 17 additions & 0 deletions
17
hibernate-search/src/main/resources/org/hibernate/search/remote/codex/avro/v1/Id.avro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
}, | ||
{ | ||
"name": "id", | ||
"type": "bytes" | ||
"type": "Id" | ||
}, | ||
{ | ||
"name": "document", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,8 @@ | |
|
||
`Document`, | ||
|
||
`Id`, | ||
|
||
`OptimizeAll`, | ||
`PurgeAll`, | ||
`Delete`, | ||
|