Java Code Examples for org.apache.yetus.audience.InterfaceAudience#LimitedPrivate

The following examples show how to use org.apache.yetus.audience.InterfaceAudience#LimitedPrivate . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Connection.java    From hbase with Apache License 2.0 2 votes vote down vote up
/**
 * Retrieve an Hbck implementation to fix an HBase cluster.
 * The returned Hbck is not guaranteed to be thread-safe. A new instance should be created by
 * each thread. This is a lightweight operation. Pooling or caching of the returned Hbck instance
 * is not recommended.
 * <br>
 * The caller is responsible for calling {@link Hbck#close()} on the returned Hbck instance.
 *<br>
 * This will be used mostly by hbck tool.
 *
 * @return an Hbck instance for active master. Active master is fetched from the zookeeper.
 */
@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.HBCK)
default Hbck getHbck() throws IOException {
  return FutureUtils.get(toAsyncConnection().getHbck());
}
 
Example 2
Source File: Connection.java    From hbase with Apache License 2.0 2 votes vote down vote up
/**
 * Retrieve an Hbck implementation to fix an HBase cluster.
 * The returned Hbck is not guaranteed to be thread-safe. A new instance should be created by
 * each thread. This is a lightweight operation. Pooling or caching of the returned Hbck instance
 * is not recommended.
 * <br>
 * The caller is responsible for calling {@link Hbck#close()} on the returned Hbck instance.
 *<br>
 * This will be used mostly by hbck tool. This may only be used to by pass getting
 * registered master from ZK. In situations where ZK is not available or active master is not
 * registered with ZK and user can get master address by other means, master can be explicitly
 * specified.
 *
 * @param masterServer explicit {@link ServerName} for master server
 * @return an Hbck instance for a specified master server
 */
@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.HBCK)
default Hbck getHbck(ServerName masterServer) throws IOException {
  return toAsyncConnection().getHbck(masterServer);
}
 
Example 3
Source File: AsyncConnection.java    From hbase with Apache License 2.0 2 votes vote down vote up
/**
 * Retrieve an Hbck implementation to fix an HBase cluster. The returned Hbck is not guaranteed to
 * be thread-safe. A new instance should be created by each thread. This is a lightweight
 * operation. Pooling or caching of the returned Hbck instance is not recommended.
 * <p/>
 * The caller is responsible for calling {@link Hbck#close()} on the returned Hbck instance.
 * <p/>
 * This will be used mostly by hbck tool.
 * @return an Hbck instance for active master. Active master is fetched from the zookeeper.
 */
@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.HBCK)
CompletableFuture<Hbck> getHbck();
 
Example 4
Source File: AsyncConnection.java    From hbase with Apache License 2.0 2 votes vote down vote up
/**
 * Retrieve an Hbck implementation to fix an HBase cluster. The returned Hbck is not guaranteed to
 * be thread-safe. A new instance should be created by each thread. This is a lightweight
 * operation. Pooling or caching of the returned Hbck instance is not recommended.
 * <p/>
 * The caller is responsible for calling {@link Hbck#close()} on the returned Hbck instance.
 * <p/>
 * This will be used mostly by hbck tool. This may only be used to by pass getting registered
 * master from ZK. In situations where ZK is not available or active master is not registered with
 * ZK and user can get master address by other means, master can be explicitly specified.
 * @param masterServer explicit {@link ServerName} for master server
 * @return an Hbck instance for a specified master server
 */
@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.HBCK)
Hbck getHbck(ServerName masterServer) throws IOException;
 
Example 5
Source File: CellUtil.java    From hbase with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the given timestamp to the cell.
 *
 * Note that this method is a LimitedPrivate API and may change between minor releases.
 * @param cell
 * @param ts
 * @throws IOException when the passed cell is not of type {@link ExtendedCell}
 */
@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC)
public static void setTimestamp(Cell cell, long ts) throws IOException {
  PrivateCellUtil.setTimestamp(cell, ts);
}
 
Example 6
Source File: CellUtil.java    From hbase with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the given timestamp to the cell.
 *
 * Note that this method is a LimitedPrivate API and may change between minor releases.
 * @param cell
 * @param ts buffer containing the timestamp value
 * @param tsOffset offset to the new timestamp
 * @throws IOException when the passed cell is not of type {@link ExtendedCell}
 */
@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC)
public static void setTimestamp(Cell cell, byte[] ts, int tsOffset) throws IOException {
  PrivateCellUtil.setTimestamp(cell, Bytes.toLong(ts, tsOffset));
}