001/* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, software 013 * distributed under the License is distributed on an "AS IS" BASIS, 014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 015 * See the License for the specific language governing permissions and 016 * limitations under the License. 017 */ 018package org.apache.hadoop.hbase.filter; 019 020import org.apache.hadoop.hbase.exceptions.DeserializationException; 021import org.apache.yetus.audience.InterfaceAudience; 022 023/** 024 * This filter was deprecated in 2.0.0 and should be removed in 3.0.0. We keep the code here to 025 * prevent the proto serialization exceptions puzzle those users who use older version clients to 026 * communicate with newer version servers. 027 * @deprecated Deprecated in 2.0.0 and will be removed in 3.0.0. 028 * @see <a href="https://issues.apache.org/jira/browse/HBASE-13347">HBASE-13347</a> 029 */ 030@InterfaceAudience.Public 031@Deprecated 032public class FirstKeyValueMatchingQualifiersFilter extends FirstKeyOnlyFilter { 033 034 /** 035 * Parses a serialized representation of {@link FirstKeyValueMatchingQualifiersFilter} 036 * @param pbBytes A pb serialized {@link FirstKeyValueMatchingQualifiersFilter} instance 037 * @return An instance of {@link FirstKeyValueMatchingQualifiersFilter} made from 038 * <code>bytes</code> 039 * @throws DeserializationException if an error occurred 040 * @see #toByteArray 041 */ 042 public static FirstKeyValueMatchingQualifiersFilter parseFrom(final byte[] pbBytes) 043 throws DeserializationException { 044 throw new DeserializationException( 045 "Stop using FirstKeyValueMatchingQualifiersFilter, which has been permanently removed"); 046 } 047}