pageviewtypes.go 871 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * EliasDB
  3. *
  4. * Copyright 2016 Matthias Ladkau. All rights reserved.
  5. *
  6. * This Source Code Form is subject to the terms of the Mozilla Public
  7. * License, v. 2.0. If a copy of the MPL was not distributed with this
  8. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  9. */
  10. package view
  11. /*
  12. TypeFreePage is a free page waiting to be (re)allocated
  13. */
  14. const TypeFreePage = 0
  15. /*
  16. TypeDataPage is a page which is in use and contains data
  17. */
  18. const TypeDataPage = 1
  19. /*
  20. TypeTranslationPage is a page which translates between physical and logical row ids
  21. */
  22. const TypeTranslationPage = 2
  23. /*
  24. TypeFreeLogicalSlotPage is a page which holds free logical slot ids
  25. (used to give stable ids to objects which can grow in size)
  26. */
  27. const TypeFreeLogicalSlotPage = 3
  28. /*
  29. TypeFreePhysicalSlotPage is a page which holds free physical slot ids
  30. */
  31. const TypeFreePhysicalSlotPage = 4