github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/pingcap/go-hbase/protobuf/Comparator.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  // This file contains protocol buffers that are used for filters
    21  
    22  option java_package = "org.apache.hadoop.hbase.protobuf.generated";
    23  option java_outer_classname = "ComparatorProtos";
    24  option java_generic_services = true;
    25  option java_generate_equals_and_hash = true;
    26  option optimize_for = SPEED;
    27  
    28  // This file contains protocol buffers that are used for comparators (e.g. in filters)
    29  
    30  message Comparator {
    31    required string name = 1;
    32    optional bytes serialized_comparator = 2;
    33  }
    34  
    35  message ByteArrayComparable {
    36    optional bytes value = 1;
    37  }
    38  
    39  message BinaryComparator {
    40    required ByteArrayComparable comparable = 1;
    41  }
    42  
    43  message LongComparator {
    44    required ByteArrayComparable comparable = 1;
    45  }
    46  
    47  message BinaryPrefixComparator {
    48    required ByteArrayComparable comparable = 1;
    49  }
    50  
    51  message BitComparator {
    52    required ByteArrayComparable comparable = 1;
    53    required BitwiseOp bitwise_op = 2;
    54  
    55    enum BitwiseOp {
    56      AND = 1;
    57      OR = 2;
    58      XOR = 3;
    59    }
    60  }
    61  
    62  message NullComparator {
    63  }
    64  
    65  message RegexStringComparator {
    66    required string pattern = 1;
    67    required int32 pattern_flags = 2;
    68    required string charset = 3;
    69    optional string engine = 4;
    70  }
    71  
    72  message SubstringComparator {
    73    required string substr = 1;
    74  }