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