github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/pingcap/go-hbase/protobuf/Cell.proto (about)

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