HBASE-21650 Add DDL operation and some other miscellaneous to thrift2 (ADDENDUM add some comments)
This commit is contained in:
parent
7820ba1dbd
commit
b620334c20
@ -38,7 +38,7 @@ import org.slf4j.LoggerFactory;
|
||||
* An AlreadyExists exceptions signals that a table with the specified
|
||||
* name already exists
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class AlreadyExists extends TException implements org.apache.thrift.TBase<AlreadyExists, AlreadyExists._Fields>, java.io.Serializable, Cloneable, Comparable<AlreadyExists> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AlreadyExists");
|
||||
|
||||
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||
/**
|
||||
* A BatchMutation object is used to apply a number of Mutations to a single row.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class BatchMutation implements org.apache.thrift.TBase<BatchMutation, BatchMutation._Fields>, java.io.Serializable, Cloneable, Comparable<BatchMutation> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("BatchMutation");
|
||||
|
||||
|
@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory;
|
||||
* such as the number of versions, compression settings, etc. It is
|
||||
* used as input when creating a table or adding a column.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class ColumnDescriptor implements org.apache.thrift.TBase<ColumnDescriptor, ColumnDescriptor._Fields>, java.io.Serializable, Cloneable, Comparable<ColumnDescriptor> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ColumnDescriptor");
|
||||
|
||||
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class Hbase {
|
||||
|
||||
public interface Iface {
|
||||
|
@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory;
|
||||
* to the Hbase master or an Hbase region server. Also used to return
|
||||
* more general Hbase error conditions.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class IOError extends TException implements org.apache.thrift.TBase<IOError, IOError._Fields>, java.io.Serializable, Cloneable, Comparable<IOError> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("IOError");
|
||||
|
||||
|
@ -38,7 +38,7 @@ import org.slf4j.LoggerFactory;
|
||||
* An IllegalArgument exception indicates an illegal or invalid
|
||||
* argument was passed into a procedure.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class IllegalArgument extends TException implements org.apache.thrift.TBase<IllegalArgument, IllegalArgument._Fields>, java.io.Serializable, Cloneable, Comparable<IllegalArgument> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("IllegalArgument");
|
||||
|
||||
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||
/**
|
||||
* A Mutation object is used to either update or delete a column-value.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class Mutation implements org.apache.thrift.TBase<Mutation, Mutation._Fields>, java.io.Serializable, Cloneable, Comparable<Mutation> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Mutation");
|
||||
|
||||
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||
/**
|
||||
* An Append object is used to specify the parameters for performing the append operation.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TAppend implements org.apache.thrift.TBase<TAppend, TAppend._Fields>, java.io.Serializable, Cloneable, Comparable<TAppend> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAppend");
|
||||
|
||||
|
@ -40,7 +40,7 @@ import org.slf4j.LoggerFactory;
|
||||
* the timestamp of a cell to a first-class value, making it easy to take
|
||||
* note of temporal data. Cell is used all the way from HStore up to HTable.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TCell implements org.apache.thrift.TBase<TCell, TCell._Fields>, java.io.Serializable, Cloneable, Comparable<TCell> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCell");
|
||||
|
||||
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||
/**
|
||||
* Holds column name and the cell.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TColumn implements org.apache.thrift.TBase<TColumn, TColumn._Fields>, java.io.Serializable, Cloneable, Comparable<TColumn> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumn");
|
||||
|
||||
|
@ -38,7 +38,7 @@ import org.slf4j.LoggerFactory;
|
||||
* For increments that are not incrementColumnValue
|
||||
* equivalents.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TIncrement implements org.apache.thrift.TBase<TIncrement, TIncrement._Fields>, java.io.Serializable, Cloneable, Comparable<TIncrement> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TIncrement");
|
||||
|
||||
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||
/**
|
||||
* A TRegionInfo contains information about an HTable region.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TRegionInfo implements org.apache.thrift.TBase<TRegionInfo, TRegionInfo._Fields>, java.io.Serializable, Cloneable, Comparable<TRegionInfo> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRegionInfo");
|
||||
|
||||
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||
/**
|
||||
* Holds row name and then a map of columns to cells.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TRowResult implements org.apache.thrift.TBase<TRowResult, TRowResult._Fields>, java.io.Serializable, Cloneable, Comparable<TRowResult> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRowResult");
|
||||
|
||||
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||
/**
|
||||
* A Scan object is used to specify scanner parameters when opening a scanner.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TScan implements org.apache.thrift.TBase<TScan, TScan._Fields>, java.io.Serializable, Cloneable, Comparable<TScan> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TScan");
|
||||
|
||||
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TAppend implements org.apache.thrift.TBase<TAppend, TAppend._Fields>, java.io.Serializable, Cloneable, Comparable<TAppend> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAppend");
|
||||
|
||||
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TAuthorization implements org.apache.thrift.TBase<TAuthorization, TAuthorization._Fields>, java.io.Serializable, Cloneable, Comparable<TAuthorization> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TAuthorization");
|
||||
|
||||
|
@ -11,6 +11,10 @@ import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
import org.apache.thrift.TEnum;
|
||||
|
||||
/**
|
||||
* Thrift wrapper around
|
||||
* org.apache.hadoop.hbase.regionserver.BloomType
|
||||
*/
|
||||
public enum TBloomFilterType implements org.apache.thrift.TEnum {
|
||||
/**
|
||||
* Bloomfilters disabled
|
||||
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TCellVisibility implements org.apache.thrift.TBase<TCellVisibility, TCellVisibility._Fields>, java.io.Serializable, Cloneable, Comparable<TCellVisibility> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCellVisibility");
|
||||
|
||||
|
@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory;
|
||||
* in a HBase table by column family and optionally
|
||||
* a column qualifier and timestamp
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TColumn implements org.apache.thrift.TBase<TColumn, TColumn._Fields>, java.io.Serializable, Cloneable, Comparable<TColumn> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumn");
|
||||
|
||||
|
@ -34,7 +34,11 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
/**
|
||||
* Thrift wrapper around
|
||||
* org.apache.hadoop.hbase.client.ColumnFamilyDescriptor
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TColumnFamilyDescriptor implements org.apache.thrift.TBase<TColumnFamilyDescriptor, TColumnFamilyDescriptor._Fields>, java.io.Serializable, Cloneable, Comparable<TColumnFamilyDescriptor> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumnFamilyDescriptor");
|
||||
|
||||
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||
/**
|
||||
* Represents a single cell and the amount to increment it by
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TColumnIncrement implements org.apache.thrift.TBase<TColumnIncrement, TColumnIncrement._Fields>, java.io.Serializable, Cloneable, Comparable<TColumnIncrement> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumnIncrement");
|
||||
|
||||
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||
/**
|
||||
* Represents a single cell and its value.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TColumnValue implements org.apache.thrift.TBase<TColumnValue, TColumnValue._Fields>, java.io.Serializable, Cloneable, Comparable<TColumnValue> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumnValue");
|
||||
|
||||
|
@ -11,6 +11,10 @@ import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
import org.apache.thrift.TEnum;
|
||||
|
||||
/**
|
||||
* Thrift wrapper around
|
||||
* org.apache.hadoop.hbase.io.compress.Algorithm
|
||||
*/
|
||||
public enum TCompressionAlgorithm implements org.apache.thrift.TEnum {
|
||||
LZO(0),
|
||||
GZ(1),
|
||||
|
@ -11,6 +11,10 @@ import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
import org.apache.thrift.TEnum;
|
||||
|
||||
/**
|
||||
* Thrift wrapper around
|
||||
* org.apache.hadoop.hbase.io.encoding.DataBlockEncoding
|
||||
*/
|
||||
public enum TDataBlockEncoding implements org.apache.thrift.TEnum {
|
||||
/**
|
||||
* Disable data block encoding.
|
||||
|
@ -60,7 +60,7 @@ import org.slf4j.LoggerFactory;
|
||||
* by changing the durability. If you don't provide durability, it defaults to
|
||||
* column family's default setting for durability.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TDelete implements org.apache.thrift.TBase<TDelete, TDelete._Fields>, java.io.Serializable, Cloneable, Comparable<TDelete> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TDelete");
|
||||
|
||||
|
@ -47,7 +47,7 @@ import org.slf4j.LoggerFactory;
|
||||
* If you specify a time range and a timestamp the range is ignored.
|
||||
* Timestamps on TColumns are ignored.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TGet implements org.apache.thrift.TBase<TGet, TGet._Fields>, java.io.Serializable, Cloneable, Comparable<TGet> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGet");
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class THRegionInfo implements org.apache.thrift.TBase<THRegionInfo, THRegionInfo._Fields>, java.io.Serializable, Cloneable, Comparable<THRegionInfo> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("THRegionInfo");
|
||||
|
||||
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class THRegionLocation implements org.apache.thrift.TBase<THRegionLocation, THRegionLocation._Fields>, java.io.Serializable, Cloneable, Comparable<THRegionLocation> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("THRegionLocation");
|
||||
|
||||
|
@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory;
|
||||
* to the HBase master or a HBase region server. Also used to return
|
||||
* more general HBase error conditions.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TIOError extends TException implements org.apache.thrift.TBase<TIOError, TIOError._Fields>, java.io.Serializable, Cloneable, Comparable<TIOError> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TIOError");
|
||||
|
||||
|
@ -38,7 +38,7 @@ import org.slf4j.LoggerFactory;
|
||||
* A TIllegalArgument exception indicates an illegal or invalid
|
||||
* argument was passed into a procedure.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TIllegalArgument extends TException implements org.apache.thrift.TBase<TIllegalArgument, TIllegalArgument._Fields>, java.io.Serializable, Cloneable, Comparable<TIllegalArgument> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TIllegalArgument");
|
||||
|
||||
|
@ -41,7 +41,7 @@ import org.slf4j.LoggerFactory;
|
||||
* by changing the durability. If you don't provide durability, it defaults to
|
||||
* column family's default setting for durability.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TIncrement implements org.apache.thrift.TBase<TIncrement, TIncrement._Fields>, java.io.Serializable, Cloneable, Comparable<TIncrement> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TIncrement");
|
||||
|
||||
|
@ -11,6 +11,10 @@ import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
import org.apache.thrift.TEnum;
|
||||
|
||||
/**
|
||||
* Thrift wrapper around
|
||||
* org.apache.hadoop.hbase.KeepDeletedCells
|
||||
*/
|
||||
public enum TKeepDeletedCells implements org.apache.thrift.TEnum {
|
||||
/**
|
||||
* Deleted Cells are not retained.
|
||||
|
@ -34,7 +34,11 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
/**
|
||||
* Thrift wrapper around
|
||||
* org.apache.hadoop.hbase.NamespaceDescriptor
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TNamespaceDescriptor implements org.apache.thrift.TBase<TNamespaceDescriptor, TNamespaceDescriptor._Fields>, java.io.Serializable, Cloneable, Comparable<TNamespaceDescriptor> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TNamespaceDescriptor");
|
||||
|
||||
|
@ -46,7 +46,7 @@ import org.slf4j.LoggerFactory;
|
||||
* by changing the durability. If you don't provide durability, it defaults to
|
||||
* column family's default setting for durability.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TPut implements org.apache.thrift.TBase<TPut, TPut._Fields>, java.io.Serializable, Cloneable, Comparable<TPut> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TPut");
|
||||
|
||||
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||
/**
|
||||
* if no Result is found, row and columnValues will not be set.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TResult implements org.apache.thrift.TBase<TResult, TResult._Fields>, java.io.Serializable, Cloneable, Comparable<TResult> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TResult");
|
||||
|
||||
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||
/**
|
||||
* A TRowMutations object is used to apply a number of Mutations to a single row.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TRowMutations implements org.apache.thrift.TBase<TRowMutations, TRowMutations._Fields>, java.io.Serializable, Cloneable, Comparable<TRowMutations> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRowMutations");
|
||||
|
||||
|
@ -38,7 +38,7 @@ import org.slf4j.LoggerFactory;
|
||||
* Any timestamps in the columns are ignored but the colFamTimeRangeMap included, use timeRange to select by timestamp.
|
||||
* Max versions defaults to 1.
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TScan implements org.apache.thrift.TBase<TScan, TScan._Fields>, java.io.Serializable, Cloneable, Comparable<TScan> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TScan");
|
||||
|
||||
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TServerName implements org.apache.thrift.TBase<TServerName, TServerName._Fields>, java.io.Serializable, Cloneable, Comparable<TServerName> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TServerName");
|
||||
|
||||
|
@ -34,7 +34,11 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
/**
|
||||
* Thrift wrapper around
|
||||
* org.apache.hadoop.hbase.client.TableDescriptor
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TTableDescriptor implements org.apache.thrift.TBase<TTableDescriptor, TTableDescriptor._Fields>, java.io.Serializable, Cloneable, Comparable<TTableDescriptor> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TTableDescriptor");
|
||||
|
||||
|
@ -34,7 +34,11 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
/**
|
||||
* Thrift wrapper around
|
||||
* org.apache.hadoop.hbase.TableName
|
||||
*/
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TTableName implements org.apache.thrift.TBase<TTableName, TTableName._Fields>, java.io.Serializable, Cloneable, Comparable<TTableName> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TTableName");
|
||||
|
||||
@ -47,12 +51,24 @@ public class TTableName implements org.apache.thrift.TBase<TTableName, TTableNam
|
||||
schemes.put(TupleScheme.class, new TTableNameTupleSchemeFactory());
|
||||
}
|
||||
|
||||
/**
|
||||
* namespace name
|
||||
*/
|
||||
public ByteBuffer ns; // required
|
||||
/**
|
||||
* tablename
|
||||
*/
|
||||
public ByteBuffer qualifier; // required
|
||||
|
||||
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
||||
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
||||
/**
|
||||
* namespace name
|
||||
*/
|
||||
NS((short)1, "ns"),
|
||||
/**
|
||||
* tablename
|
||||
*/
|
||||
QUALIFIER((short)2, "qualifier");
|
||||
|
||||
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
||||
@ -157,6 +173,9 @@ public class TTableName implements org.apache.thrift.TBase<TTableName, TTableNam
|
||||
this.qualifier = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* namespace name
|
||||
*/
|
||||
public byte[] getNs() {
|
||||
setNs(org.apache.thrift.TBaseHelper.rightSize(ns));
|
||||
return ns == null ? null : ns.array();
|
||||
@ -166,6 +185,9 @@ public class TTableName implements org.apache.thrift.TBase<TTableName, TTableNam
|
||||
return org.apache.thrift.TBaseHelper.copyBinary(ns);
|
||||
}
|
||||
|
||||
/**
|
||||
* namespace name
|
||||
*/
|
||||
public TTableName setNs(byte[] ns) {
|
||||
this.ns = ns == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(ns, ns.length));
|
||||
return this;
|
||||
@ -191,6 +213,9 @@ public class TTableName implements org.apache.thrift.TBase<TTableName, TTableNam
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* tablename
|
||||
*/
|
||||
public byte[] getQualifier() {
|
||||
setQualifier(org.apache.thrift.TBaseHelper.rightSize(qualifier));
|
||||
return qualifier == null ? null : qualifier.array();
|
||||
@ -200,6 +225,9 @@ public class TTableName implements org.apache.thrift.TBase<TTableName, TTableNam
|
||||
return org.apache.thrift.TBaseHelper.copyBinary(qualifier);
|
||||
}
|
||||
|
||||
/**
|
||||
* tablename
|
||||
*/
|
||||
public TTableName setQualifier(byte[] qualifier) {
|
||||
this.qualifier = qualifier == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(qualifier, qualifier.length));
|
||||
return this;
|
||||
|
@ -34,7 +34,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-27")
|
||||
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-28")
|
||||
public class TTimeRange implements org.apache.thrift.TBase<TTimeRange, TTimeRange._Fields>, java.io.Serializable, Cloneable, Comparable<TTimeRange> {
|
||||
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TTimeRange");
|
||||
|
||||
|
@ -315,6 +315,10 @@ enum TCompareOp {
|
||||
NO_OP = 6
|
||||
}
|
||||
|
||||
/**
|
||||
* Thrift wrapper around
|
||||
* org.apache.hadoop.hbase.regionserver.BloomType
|
||||
*/
|
||||
enum TBloomFilterType {
|
||||
/**
|
||||
* Bloomfilters disabled
|
||||
@ -338,6 +342,10 @@ enum TBloomFilterType {
|
||||
ROWPREFIX_DELIMITED = 4
|
||||
}
|
||||
|
||||
/**
|
||||
* Thrift wrapper around
|
||||
* org.apache.hadoop.hbase.io.compress.Algorithm
|
||||
*/
|
||||
enum TCompressionAlgorithm {
|
||||
LZO = 0,
|
||||
GZ = 1,
|
||||
@ -348,6 +356,10 @@ enum TCompressionAlgorithm {
|
||||
ZSTD = 6
|
||||
}
|
||||
|
||||
/**
|
||||
* Thrift wrapper around
|
||||
* org.apache.hadoop.hbase.io.encoding.DataBlockEncoding
|
||||
*/
|
||||
enum TDataBlockEncoding {
|
||||
/** Disable data block encoding. */
|
||||
NONE = 0,
|
||||
@ -361,6 +373,10 @@ enum TDataBlockEncoding {
|
||||
ROW_INDEX_V1 = 7
|
||||
}
|
||||
|
||||
/**
|
||||
* Thrift wrapper around
|
||||
* org.apache.hadoop.hbase.KeepDeletedCells
|
||||
*/
|
||||
enum TKeepDeletedCells {
|
||||
/** Deleted Cells are not retained. */
|
||||
FALSE = 0,
|
||||
@ -380,11 +396,21 @@ enum TKeepDeletedCells {
|
||||
TTL = 2
|
||||
}
|
||||
|
||||
/**
|
||||
* Thrift wrapper around
|
||||
* org.apache.hadoop.hbase.TableName
|
||||
*/
|
||||
struct TTableName {
|
||||
/** namespace name */
|
||||
1: required binary ns
|
||||
/** tablename */
|
||||
2: required binary qualifier
|
||||
}
|
||||
|
||||
/**
|
||||
* Thrift wrapper around
|
||||
* org.apache.hadoop.hbase.client.ColumnFamilyDescriptor
|
||||
*/
|
||||
struct TColumnFamilyDescriptor {
|
||||
1: required binary name
|
||||
2: optional map<binary, binary> attributes
|
||||
@ -409,6 +435,10 @@ struct TColumnFamilyDescriptor {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Thrift wrapper around
|
||||
* org.apache.hadoop.hbase.client.TableDescriptor
|
||||
*/
|
||||
struct TTableDescriptor {
|
||||
1: required TTableName tableName
|
||||
2: optional list<TColumnFamilyDescriptor> columns
|
||||
@ -416,6 +446,10 @@ struct TTableDescriptor {
|
||||
4: optional TDurability durability
|
||||
}
|
||||
|
||||
/**
|
||||
* Thrift wrapper around
|
||||
* org.apache.hadoop.hbase.NamespaceDescriptor
|
||||
*/
|
||||
struct TNamespaceDescriptor {
|
||||
1: required string name
|
||||
2: optional map<string, string> configuration
|
||||
@ -761,110 +795,238 @@ service THBaseService {
|
||||
7: required TRowMutations rowMutations
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* Get a table descriptor.
|
||||
* @return the TableDescriptor of the giving tablename
|
||||
**/
|
||||
TTableDescriptor getTableDescriptor(
|
||||
1: required TTableName table
|
||||
/** the tablename of the table to get tableDescriptor*/
|
||||
1: required TTableName table
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* Get table descriptors of tables.
|
||||
* @return the TableDescriptor of the giving tablename
|
||||
**/
|
||||
list<TTableDescriptor> getTableDescriptors(
|
||||
/** the tablename list of the tables to get tableDescriptor*/
|
||||
1: required list<TTableName> tables
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
*
|
||||
* @return true if table exists already, false if not
|
||||
**/
|
||||
bool tableExists(
|
||||
1: TTableName tableName
|
||||
/** the tablename of the tables to check*/
|
||||
1: TTableName tableName
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* Get table descriptors of tables that match the given pattern
|
||||
* @return the tableDescriptors of the matching table
|
||||
**/
|
||||
list<TTableDescriptor> getTableDescriptorsByPattern(
|
||||
/** The regular expression to match against */
|
||||
1: required string regex
|
||||
/** set to false if match only against userspace tables */
|
||||
2: required bool includeSysTables
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* Get table descriptors of tables in the given namespace
|
||||
* @return the tableDescriptors in the namespce
|
||||
**/
|
||||
list<TTableDescriptor> getTableDescriptorsByNamespace(
|
||||
1: required string name
|
||||
) throws (1: TIOError io)
|
||||
|
||||
list<TTableName> getTableNamesByPattern(
|
||||
1: required string regex
|
||||
2: required bool includeSysTables
|
||||
) throws (1: TIOError io)
|
||||
|
||||
list<TTableName> getTableNamesByNamespace(
|
||||
/** The namesapce's name */
|
||||
1: required string name
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* Get table names of tables that match the given pattern
|
||||
* @return the table names of the matching table
|
||||
**/
|
||||
list<TTableName> getTableNamesByPattern(
|
||||
/** The regular expression to match against */
|
||||
1: required string regex
|
||||
/** set to false if match only against userspace tables */
|
||||
2: required bool includeSysTables
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* Get table names of tables in the given namespace
|
||||
* @return the table names of the matching table
|
||||
**/
|
||||
list<TTableName> getTableNamesByNamespace(
|
||||
/** The namesapce's name */
|
||||
1: required string name
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* Creates a new table with an initial set of empty regions defined by the specified split keys.
|
||||
* The total number of regions created will be the number of split keys plus one. Synchronous
|
||||
* operation.
|
||||
**/
|
||||
void createTable(
|
||||
/** table descriptor for table */
|
||||
1: required TTableDescriptor desc
|
||||
/** rray of split keys for the initial regions of the table */
|
||||
2: required list<binary> splitKeys
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* Deletes a table. Synchronous operation.
|
||||
**/
|
||||
void deleteTable(
|
||||
/** the tablename to delete */
|
||||
1: required TTableName tableName
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* Truncate a table. Synchronous operation.
|
||||
**/
|
||||
void truncateTable(
|
||||
/** the tablename to truncate */
|
||||
1: required TTableName tableName
|
||||
/** whether to preserve previous splits*/
|
||||
2: required bool preserveSplits
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* Enalbe a table
|
||||
**/
|
||||
void enableTable(
|
||||
/** the tablename to enable */
|
||||
1: required TTableName tableName
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* Disable a table
|
||||
**/
|
||||
void disableTable(
|
||||
/** the tablename to disable */
|
||||
1: required TTableName tableName
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
*
|
||||
* @return true if table is enabled, false if not
|
||||
**/
|
||||
bool isTableEnabled(
|
||||
/** the tablename to check */
|
||||
1: required TTableName tableName
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
*
|
||||
* @return true if table is disabled, false if not
|
||||
**/
|
||||
bool isTableDisabled(
|
||||
/** the tablename to check */
|
||||
1: required TTableName tableName
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
*
|
||||
* @return true if table is available, false if not
|
||||
**/
|
||||
bool isTableAvailable(
|
||||
/** the tablename to check */
|
||||
1: required TTableName tableName
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* Use this api to check if the table has been created with the specified number of splitkeys
|
||||
* which was used while creating the given table. Note : If this api is used after a table's
|
||||
* region gets splitted, the api may return false.
|
||||
*
|
||||
* @return true if table is available, false if not
|
||||
**/
|
||||
bool isTableAvailableWithSplit(
|
||||
/** the tablename to check */
|
||||
1: required TTableName tableName
|
||||
/** keys to check if the table has been created with all split keys */
|
||||
2: required list<binary> splitKeys
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* Add a column family to an existing table. Synchronous operation.
|
||||
**/
|
||||
void addColumnFamily(
|
||||
/** the tablename to add column family to */
|
||||
1: required TTableName tableName
|
||||
/** column family descriptor of column family to be added */
|
||||
2: required TColumnFamilyDescriptor column
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* Delete a column family from a table. Synchronous operation.
|
||||
**/
|
||||
void deleteColumnFamily(
|
||||
/** the tablename to delete column family from */
|
||||
1: required TTableName tableName
|
||||
/** name of column family to be deleted */
|
||||
2: required binary column
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* Modify an existing column family on a table. Synchronous operation.
|
||||
**/
|
||||
void modifyColumnFamily(
|
||||
/** the tablename to modify column family */
|
||||
1: required TTableName tableName
|
||||
/** column family descriptor of column family to be modified */
|
||||
2: required TColumnFamilyDescriptor column
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* Modify an existing table
|
||||
**/
|
||||
void modifyTable(
|
||||
/** the descriptor of the table to modify */
|
||||
1: required TTableDescriptor desc
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* Create a new namespace. Blocks until namespace has been successfully created or an exception is
|
||||
* thrown
|
||||
**/
|
||||
void createNamespace(
|
||||
/** descriptor which describes the new namespace */
|
||||
1: required TNamespaceDescriptor namespaceDesc
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* Modify an existing namespace. Blocks until namespace has been successfully modified or an
|
||||
* exception is thrown
|
||||
**/
|
||||
void modifyNamespace(
|
||||
/** descriptor which describes the new namespace */
|
||||
1: required TNamespaceDescriptor namespaceDesc
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* Delete an existing namespace. Only empty namespaces (no tables) can be removed.
|
||||
* Blocks until namespace has been successfully deleted or an
|
||||
* exception is thrown.
|
||||
**/
|
||||
void deleteNamespace(
|
||||
/** namespace name */
|
||||
1: required string name
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* Get a namespace descriptor by name.
|
||||
* @retrun the descriptor
|
||||
**/
|
||||
TNamespaceDescriptor getNamespaceDescriptor(
|
||||
/** name of namespace descriptor */
|
||||
1: required string name
|
||||
) throws (1: TIOError io)
|
||||
|
||||
/**
|
||||
* @return all namespaces
|
||||
**/
|
||||
list<TNamespaceDescriptor> listNamespaceDescriptors(
|
||||
) throws (1: TIOError io)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user