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; 019 020import java.util.List; 021import org.apache.yetus.audience.InterfaceAudience; 022 023/** 024 * Allows creating a cell with {@link Tag} An instance of this type can be acquired by using 025 * RegionCoprocessorEnvironment#getCellBuilder (for prod code) and {@link RawCellBuilderFactory} 026 * (for unit tests). 027 */ 028@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC) 029public interface RawCellBuilder extends CellBuilder { 030 @Override 031 RawCellBuilder setRow(final byte[] row); 032 033 @Override 034 RawCellBuilder setRow(final byte[] row, final int rOffset, final int rLength); 035 036 @Override 037 RawCellBuilder setFamily(final byte[] family); 038 039 @Override 040 RawCellBuilder setFamily(final byte[] family, final int fOffset, final int fLength); 041 042 @Override 043 RawCellBuilder setQualifier(final byte[] qualifier); 044 045 @Override 046 RawCellBuilder setQualifier(final byte[] qualifier, final int qOffset, final int qLength); 047 048 @Override 049 RawCellBuilder setTimestamp(final long timestamp); 050 051 @Override 052 RawCellBuilder setType(final Cell.Type type); 053 054 @Override 055 RawCellBuilder setValue(final byte[] value); 056 057 @Override 058 RawCellBuilder setValue(final byte[] value, final int vOffset, final int vLength); 059 060 RawCellBuilder setTags(final List<Tag> tags); 061 062 @Override 063 RawCell build(); 064 065 @Override 066 RawCellBuilder clear(); 067}