@InterfaceAudience.Private protected synchronized boolean removeStackIndex() { if (stackIndexes.length > 1) { stackIndexes = Arrays.copyOf(stackIndexes, stackIndexes.length - 1); return false; } else { stackIndexes = null; return true; } }
@InterfaceAudience.Private protected static Long getRootProcedureId(final Map<Long, Procedure> procedures, Procedure proc) { while (proc.hasParent()) { proc = procedures.get(proc.getParentProcId()); if (proc == null) return null; } return proc.getProcId(); }
/** * Interface for normalization plan. */ @InterfaceAudience.Private public interface NormalizationPlan { /** * Executes normalization plan on cluster (does actual splitting/merging work). * @param admin instance of Admin */ void execute(Admin admin); }
@InterfaceAudience.Private @InterfaceStability.Evolving public final class TagType { // Please declare new Tag Types here to avoid step on pre-existing tag types. public static final byte ACL_TAG_TYPE = (byte) 1; public static final byte VISIBILITY_TAG_TYPE = (byte) 2; // public static final byte LOG_REPLAY_TAG_TYPE = (byte) 3; // deprecated public static final byte VISIBILITY_EXP_SERIALIZATION_FORMAT_TAG_TYPE = (byte)4; // String based tag type used in replication public static final byte STRING_VIS_TAG_TYPE = (byte) 7; public static final byte TTL_TAG_TYPE = (byte)8; }
@InterfaceAudience.Private @InterfaceStability.Evolving public abstract class OnePhaseProcedure<TEnvironment> extends Procedure<TEnvironment> { // TODO (e.g. used by online snapshots) }
@InterfaceAudience.Private public PostOpenDeployContext(Region region, long masterSystemTime) { this.region = region; this.masterSystemTime = masterSystemTime; } public Region getRegion() {
/** * Base class to use when actually implementing a {@link Constraint}. It takes * care of getting and setting of configuration for the constraint. */ @InterfaceAudience.Private public abstract class BaseConstraint extends Configured implements Constraint { }
/** * This expects that the underlying arrays won't change. It's intended * for usage internal HBase to and for advanced client applications. * <p>Marked as audience Private as of 1.2.0. {@link Tag} is an internal implementation detail * that should not be exposed publicly. */ @InterfaceAudience.Private public Put addImmutable(byte[] family, byte [] qualifier, byte [] value, Tag[] tag) { return addImmutable(family, qualifier, this.ts, value, tag); }
/** * A CellScanner that knows its size in memory in bytes. * Used playing the CellScanner into an in-memory buffer; knowing the size ahead of time saves * on background buffer resizings. */ @InterfaceAudience.Private @InterfaceStability.Unstable public interface SizedCellScanner extends CellScanner, HeapSize {}
/** * BlockCache which is resizable. */ @InterfaceAudience.Private public interface ResizableBlockCache extends BlockCache { /** * Sets the max heap size that can be used by the BlockCache. * @param size The max heap size. */ void setMaxSize(long size); }
@InterfaceAudience.Private @InterfaceStability.Evolving public abstract class TwoPhaseProcedure<TEnvironment> extends Procedure<TEnvironment> { // TODO (e.g. used by ACLs/VisibilityTags updates) }
/** * If set of MapFile.Readers in Store change, implementors are notified. */ @InterfaceAudience.Private public interface ChangedReadersObserver { /** * Notify observers. * @throws IOException e */ void updateReaders() throws IOException; }
/** * Called by the ProcedureExecutor to assign the parent to the newly created procedure. */ @InterfaceAudience.Private protected void setParentProcId(final long parentProcId) { this.parentProcId = parentProcId; }
/** * Allow that the log sequence id to be set post-construction * Only public for org.apache.hadoop.hbase.regionserver.wal.FSWALEntry * @param sequence */ @InterfaceAudience.Private public void setLogSeqNum(final long sequence) { this.logSeqNum = sequence; }
/** * Thrown by {@link BucketAllocator} */ @InterfaceAudience.Private public class BucketAllocatorException extends IOException { private static final long serialVersionUID = 2479119906660788096L; BucketAllocatorException(String reason) { super(reason); } }
/** * Interface which abstracts implementations on log sequenceId assignment */ @InterfaceAudience.Private public interface SequenceId { public long getSequenceId() throws IOException; }
/** * Keeps track of the encoding state. */ @InterfaceAudience.Private public class EncodingState { /** * The previous Cell the encoder encoded. */ protected Cell prevCell = null; }
/** * Called by the ProcedureExecutor on procedure-load to restore the latch state */ @InterfaceAudience.Private protected synchronized void setChildrenLatch(final int numChildren) { this.childrenLatch = numChildren; }
/** * Internal error which indicates a bug in a data block encoding algorithm. */ @InterfaceAudience.Private public class EncoderBufferTooSmallException extends RuntimeException { private static final long serialVersionUID = 4767495176134878737L; public EncoderBufferTooSmallException(String message) { super(message); } }
@InterfaceAudience.Private public interface EncoderPool { PrefixTreeEncoder checkOut(OutputStream outputStream, boolean includeMvccVersion); void checkIn(PrefixTreeEncoder encoder); }