Cell.proto 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. // Cell and KeyValue protos
  19. package pb;
  20. option java_package = "org.apache.hadoop.hbase.protobuf.generated";
  21. option java_outer_classname = "CellProtos";
  22. option java_generate_equals_and_hash = true;
  23. option optimize_for = SPEED;
  24. /**
  25. * The type of the key in a Cell
  26. */
  27. enum CellType {
  28. MINIMUM = 0;
  29. PUT = 4;
  30. DELETE = 8;
  31. DELETE_COLUMN = 12;
  32. DELETE_FAMILY = 14;
  33. // MAXIMUM is used when searching; you look from maximum on down.
  34. MAXIMUM = 255;
  35. }
  36. /**
  37. * Protocol buffer version of Cell.
  38. */
  39. message Cell {
  40. optional bytes row = 1;
  41. optional bytes family = 2;
  42. optional bytes qualifier = 3;
  43. optional uint64 timestamp = 4;
  44. optional CellType cell_type = 5;
  45. optional bytes value = 6;
  46. optional bytes tags = 7;
  47. }
  48. /**
  49. * Protocol buffer version of KeyValue.
  50. * It doesn't have those transient parameters
  51. */
  52. message KeyValue {
  53. required bytes row = 1;
  54. required bytes family = 2;
  55. required bytes qualifier = 3;
  56. optional uint64 timestamp = 4;
  57. optional CellType key_type = 5;
  58. optional bytes value = 6;
  59. optional bytes tags = 7;
  60. }