HBASE-4342 Update Thrift to 0.7.0
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1166455 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
73661b9b5e
commit
bc524bbe59
@ -452,6 +452,7 @@ Release 0.91.0 - Unreleased
|
|||||||
HBASE-4327 Compile HBase against hadoop 0.22 (Joep Rottinghuis)
|
HBASE-4327 Compile HBase against hadoop 0.22 (Joep Rottinghuis)
|
||||||
HBASE-4339 Improve eclipse documentation and project file generation
|
HBASE-4339 Improve eclipse documentation and project file generation
|
||||||
(Eric Charles)
|
(Eric Charles)
|
||||||
|
HBASE-4342 Update Thrift to 0.7.0 (Moaz Reyad)
|
||||||
|
|
||||||
TASKS
|
TASKS
|
||||||
HBASE-3559 Move report of split to master OFF the heartbeat channel
|
HBASE-3559 Move report of split to master OFF the heartbeat channel
|
||||||
|
2
pom.xml
2
pom.xml
@ -663,7 +663,7 @@
|
|||||||
<protobuf.version>2.4.0a</protobuf.version>
|
<protobuf.version>2.4.0a</protobuf.version>
|
||||||
<slf4j.version>1.5.8</slf4j.version><!-- newer version available -->
|
<slf4j.version>1.5.8</slf4j.version><!-- newer version available -->
|
||||||
<stax-api.version>1.0.1</stax-api.version>
|
<stax-api.version>1.0.1</stax-api.version>
|
||||||
<thrift.version>0.6.1</thrift.version>
|
<thrift.version>0.7.0</thrift.version>
|
||||||
<zookeeper.version>3.3.3</zookeeper.version>
|
<zookeeper.version>3.3.3</zookeeper.version>
|
||||||
<hadoop-snappy.version>0.0.1-SNAPSHOT</hadoop-snappy.version>
|
<hadoop-snappy.version>0.0.1-SNAPSHOT</hadoop-snappy.version>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Autogenerated by Thrift
|
* Autogenerated by Thrift Compiler (0.7.0)
|
||||||
*
|
*
|
||||||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||||
*/
|
*/
|
||||||
@ -29,7 +29,7 @@ public class AlreadyExists extends Exception implements org.apache.thrift.TBase<
|
|||||||
|
|
||||||
private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1);
|
private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1);
|
||||||
|
|
||||||
public String message;
|
public String message; // required
|
||||||
|
|
||||||
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
||||||
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Autogenerated by Thrift
|
* Autogenerated by Thrift Compiler (0.7.0)
|
||||||
*
|
*
|
||||||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||||
*/
|
*/
|
||||||
@ -29,8 +29,8 @@ public class BatchMutation implements org.apache.thrift.TBase<BatchMutation, Bat
|
|||||||
private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)1);
|
private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)1);
|
||||||
private static final org.apache.thrift.protocol.TField MUTATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("mutations", org.apache.thrift.protocol.TType.LIST, (short)2);
|
private static final org.apache.thrift.protocol.TField MUTATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("mutations", org.apache.thrift.protocol.TType.LIST, (short)2);
|
||||||
|
|
||||||
public ByteBuffer row;
|
public ByteBuffer row; // required
|
||||||
public List<Mutation> mutations;
|
public List<Mutation> mutations; // required
|
||||||
|
|
||||||
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
||||||
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
||||||
@ -364,7 +364,7 @@ public class BatchMutation implements org.apache.thrift.TBase<BatchMutation, Bat
|
|||||||
this.mutations = new ArrayList<Mutation>(_list0.size);
|
this.mutations = new ArrayList<Mutation>(_list0.size);
|
||||||
for (int _i1 = 0; _i1 < _list0.size; ++_i1)
|
for (int _i1 = 0; _i1 < _list0.size; ++_i1)
|
||||||
{
|
{
|
||||||
Mutation _elem2;
|
Mutation _elem2; // required
|
||||||
_elem2 = new Mutation();
|
_elem2 = new Mutation();
|
||||||
_elem2.read(iprot);
|
_elem2.read(iprot);
|
||||||
this.mutations.add(_elem2);
|
this.mutations.add(_elem2);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Autogenerated by Thrift
|
* Autogenerated by Thrift Compiler (0.7.0)
|
||||||
*
|
*
|
||||||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||||
*/
|
*/
|
||||||
@ -38,15 +38,15 @@ public class ColumnDescriptor implements org.apache.thrift.TBase<ColumnDescripto
|
|||||||
private static final org.apache.thrift.protocol.TField BLOCK_CACHE_ENABLED_FIELD_DESC = new org.apache.thrift.protocol.TField("blockCacheEnabled", org.apache.thrift.protocol.TType.BOOL, (short)8);
|
private static final org.apache.thrift.protocol.TField BLOCK_CACHE_ENABLED_FIELD_DESC = new org.apache.thrift.protocol.TField("blockCacheEnabled", org.apache.thrift.protocol.TType.BOOL, (short)8);
|
||||||
private static final org.apache.thrift.protocol.TField TIME_TO_LIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("timeToLive", org.apache.thrift.protocol.TType.I32, (short)9);
|
private static final org.apache.thrift.protocol.TField TIME_TO_LIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("timeToLive", org.apache.thrift.protocol.TType.I32, (short)9);
|
||||||
|
|
||||||
public ByteBuffer name;
|
public ByteBuffer name; // required
|
||||||
public int maxVersions;
|
public int maxVersions; // required
|
||||||
public String compression;
|
public String compression; // required
|
||||||
public boolean inMemory;
|
public boolean inMemory; // required
|
||||||
public String bloomFilterType;
|
public String bloomFilterType; // required
|
||||||
public int bloomFilterVectorSize;
|
public int bloomFilterVectorSize; // required
|
||||||
public int bloomFilterNbHashes;
|
public int bloomFilterNbHashes; // required
|
||||||
public boolean blockCacheEnabled;
|
public boolean blockCacheEnabled; // required
|
||||||
public int timeToLive;
|
public int timeToLive; // required
|
||||||
|
|
||||||
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
||||||
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
||||||
@ -563,28 +563,28 @@ public class ColumnDescriptor implements org.apache.thrift.TBase<ColumnDescripto
|
|||||||
return getName();
|
return getName();
|
||||||
|
|
||||||
case MAX_VERSIONS:
|
case MAX_VERSIONS:
|
||||||
return new Integer(getMaxVersions());
|
return Integer.valueOf(getMaxVersions());
|
||||||
|
|
||||||
case COMPRESSION:
|
case COMPRESSION:
|
||||||
return getCompression();
|
return getCompression();
|
||||||
|
|
||||||
case IN_MEMORY:
|
case IN_MEMORY:
|
||||||
return new Boolean(isInMemory());
|
return Boolean.valueOf(isInMemory());
|
||||||
|
|
||||||
case BLOOM_FILTER_TYPE:
|
case BLOOM_FILTER_TYPE:
|
||||||
return getBloomFilterType();
|
return getBloomFilterType();
|
||||||
|
|
||||||
case BLOOM_FILTER_VECTOR_SIZE:
|
case BLOOM_FILTER_VECTOR_SIZE:
|
||||||
return new Integer(getBloomFilterVectorSize());
|
return Integer.valueOf(getBloomFilterVectorSize());
|
||||||
|
|
||||||
case BLOOM_FILTER_NB_HASHES:
|
case BLOOM_FILTER_NB_HASHES:
|
||||||
return new Integer(getBloomFilterNbHashes());
|
return Integer.valueOf(getBloomFilterNbHashes());
|
||||||
|
|
||||||
case BLOCK_CACHE_ENABLED:
|
case BLOCK_CACHE_ENABLED:
|
||||||
return new Boolean(isBlockCacheEnabled());
|
return Boolean.valueOf(isBlockCacheEnabled());
|
||||||
|
|
||||||
case TIME_TO_LIVE:
|
case TIME_TO_LIVE:
|
||||||
return new Integer(getTimeToLive());
|
return Integer.valueOf(getTimeToLive());
|
||||||
|
|
||||||
}
|
}
|
||||||
throw new IllegalStateException();
|
throw new IllegalStateException();
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Autogenerated by Thrift
|
* Autogenerated by Thrift Compiler (0.7.0)
|
||||||
*
|
*
|
||||||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||||
*/
|
*/
|
||||||
@ -30,7 +30,7 @@ public class IOError extends Exception implements org.apache.thrift.TBase<IOErro
|
|||||||
|
|
||||||
private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1);
|
private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1);
|
||||||
|
|
||||||
public String message;
|
public String message; // required
|
||||||
|
|
||||||
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
||||||
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Autogenerated by Thrift
|
* Autogenerated by Thrift Compiler (0.7.0)
|
||||||
*
|
*
|
||||||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||||
*/
|
*/
|
||||||
@ -29,7 +29,7 @@ public class IllegalArgument extends Exception implements org.apache.thrift.TBas
|
|||||||
|
|
||||||
private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1);
|
private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1);
|
||||||
|
|
||||||
public String message;
|
public String message; // required
|
||||||
|
|
||||||
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
||||||
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Autogenerated by Thrift
|
* Autogenerated by Thrift Compiler (0.7.0)
|
||||||
*
|
*
|
||||||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||||
*/
|
*/
|
||||||
@ -30,9 +30,9 @@ public class Mutation implements org.apache.thrift.TBase<Mutation, Mutation._Fie
|
|||||||
private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)2);
|
private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)2);
|
||||||
private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)3);
|
private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)3);
|
||||||
|
|
||||||
public boolean isDelete;
|
public boolean isDelete; // required
|
||||||
public ByteBuffer column;
|
public ByteBuffer column; // required
|
||||||
public ByteBuffer value;
|
public ByteBuffer value; // required
|
||||||
|
|
||||||
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
||||||
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
||||||
@ -282,7 +282,7 @@ public class Mutation implements org.apache.thrift.TBase<Mutation, Mutation._Fie
|
|||||||
public Object getFieldValue(_Fields field) {
|
public Object getFieldValue(_Fields field) {
|
||||||
switch (field) {
|
switch (field) {
|
||||||
case IS_DELETE:
|
case IS_DELETE:
|
||||||
return new Boolean(isIsDelete());
|
return Boolean.valueOf(isIsDelete());
|
||||||
|
|
||||||
case COLUMN:
|
case COLUMN:
|
||||||
return getColumn();
|
return getColumn();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Autogenerated by Thrift
|
* Autogenerated by Thrift Compiler (0.7.0)
|
||||||
*
|
*
|
||||||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||||
*/
|
*/
|
||||||
@ -32,8 +32,8 @@ public class TCell implements org.apache.thrift.TBase<TCell, TCell._Fields>, jav
|
|||||||
private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)1);
|
private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)1);
|
||||||
private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2);
|
private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2);
|
||||||
|
|
||||||
public ByteBuffer value;
|
public ByteBuffer value; // required
|
||||||
public long timestamp;
|
public long timestamp; // required
|
||||||
|
|
||||||
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
||||||
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
||||||
@ -231,7 +231,7 @@ public class TCell implements org.apache.thrift.TBase<TCell, TCell._Fields>, jav
|
|||||||
return getValue();
|
return getValue();
|
||||||
|
|
||||||
case TIMESTAMP:
|
case TIMESTAMP:
|
||||||
return new Long(getTimestamp());
|
return Long.valueOf(getTimestamp());
|
||||||
|
|
||||||
}
|
}
|
||||||
throw new IllegalStateException();
|
throw new IllegalStateException();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Autogenerated by Thrift
|
* Autogenerated by Thrift Compiler (0.7.0)
|
||||||
*
|
*
|
||||||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||||
*/
|
*/
|
||||||
@ -32,11 +32,11 @@ public class TRegionInfo implements org.apache.thrift.TBase<TRegionInfo, TRegion
|
|||||||
private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)4);
|
private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)4);
|
||||||
private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.BYTE, (short)5);
|
private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.BYTE, (short)5);
|
||||||
|
|
||||||
public ByteBuffer startKey;
|
public ByteBuffer startKey; // required
|
||||||
public ByteBuffer endKey;
|
public ByteBuffer endKey; // required
|
||||||
public long id;
|
public long id; // required
|
||||||
public ByteBuffer name;
|
public ByteBuffer name; // required
|
||||||
public byte version;
|
public byte version; // required
|
||||||
|
|
||||||
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
||||||
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
||||||
@ -386,13 +386,13 @@ public class TRegionInfo implements org.apache.thrift.TBase<TRegionInfo, TRegion
|
|||||||
return getEndKey();
|
return getEndKey();
|
||||||
|
|
||||||
case ID:
|
case ID:
|
||||||
return new Long(getId());
|
return Long.valueOf(getId());
|
||||||
|
|
||||||
case NAME:
|
case NAME:
|
||||||
return getName();
|
return getName();
|
||||||
|
|
||||||
case VERSION:
|
case VERSION:
|
||||||
return new Byte(getVersion());
|
return Byte.valueOf(getVersion());
|
||||||
|
|
||||||
}
|
}
|
||||||
throw new IllegalStateException();
|
throw new IllegalStateException();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Autogenerated by Thrift
|
* Autogenerated by Thrift Compiler (0.7.0)
|
||||||
*
|
*
|
||||||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||||
*/
|
*/
|
||||||
@ -29,8 +29,8 @@ public class TRowResult implements org.apache.thrift.TBase<TRowResult, TRowResul
|
|||||||
private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)1);
|
private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)1);
|
||||||
private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.MAP, (short)2);
|
private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.MAP, (short)2);
|
||||||
|
|
||||||
public ByteBuffer row;
|
public ByteBuffer row; // required
|
||||||
public Map<ByteBuffer,TCell> columns;
|
public Map<ByteBuffer,TCell> columns; // required
|
||||||
|
|
||||||
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
||||||
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
||||||
@ -369,8 +369,8 @@ public class TRowResult implements org.apache.thrift.TBase<TRowResult, TRowResul
|
|||||||
this.columns = new HashMap<ByteBuffer,TCell>(2*_map4.size);
|
this.columns = new HashMap<ByteBuffer,TCell>(2*_map4.size);
|
||||||
for (int _i5 = 0; _i5 < _map4.size; ++_i5)
|
for (int _i5 = 0; _i5 < _map4.size; ++_i5)
|
||||||
{
|
{
|
||||||
ByteBuffer _key6;
|
ByteBuffer _key6; // required
|
||||||
TCell _val7;
|
TCell _val7; // required
|
||||||
_key6 = iprot.readBinary();
|
_key6 = iprot.readBinary();
|
||||||
_val7 = new TCell();
|
_val7 = new TCell();
|
||||||
_val7.read(iprot);
|
_val7.read(iprot);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Autogenerated by Thrift
|
* Autogenerated by Thrift Compiler (0.7.0)
|
||||||
*
|
*
|
||||||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
||||||
*/
|
*/
|
||||||
@ -20,34 +20,28 @@ import java.util.Arrays;
|
|||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import org.apache.thrift.*;
|
|
||||||
import org.apache.thrift.async.*;
|
|
||||||
import org.apache.thrift.meta_data.*;
|
|
||||||
import org.apache.thrift.transport.*;
|
|
||||||
import org.apache.thrift.protocol.*;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A Scan object is used to specify scanner parameters when opening a scanner.
|
* A Scan object is used to specify scanner parameters when opening a scanner.
|
||||||
*/
|
*/
|
||||||
public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable, Cloneable {
|
public class TScan implements org.apache.thrift.TBase<TScan, TScan._Fields>, java.io.Serializable, Cloneable {
|
||||||
private static final TStruct STRUCT_DESC = new TStruct("TScan");
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TScan");
|
||||||
|
|
||||||
private static final TField START_ROW_FIELD_DESC = new TField("startRow", TType.STRING, (short)1);
|
private static final org.apache.thrift.protocol.TField START_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("startRow", org.apache.thrift.protocol.TType.STRING, (short)1);
|
||||||
private static final TField STOP_ROW_FIELD_DESC = new TField("stopRow", TType.STRING, (short)2);
|
private static final org.apache.thrift.protocol.TField STOP_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("stopRow", org.apache.thrift.protocol.TType.STRING, (short)2);
|
||||||
private static final TField TIMESTAMP_FIELD_DESC = new TField("timestamp", TType.I64, (short)3);
|
private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3);
|
||||||
private static final TField COLUMNS_FIELD_DESC = new TField("columns", TType.LIST, (short)4);
|
private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)4);
|
||||||
private static final TField CACHING_FIELD_DESC = new TField("caching", TType.I32, (short)5);
|
private static final org.apache.thrift.protocol.TField CACHING_FIELD_DESC = new org.apache.thrift.protocol.TField("caching", org.apache.thrift.protocol.TType.I32, (short)5);
|
||||||
private static final TField FILTER_STRING_FIELD_DESC = new TField("filterString", TType.STRING, (short)6);
|
private static final org.apache.thrift.protocol.TField FILTER_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("filterString", org.apache.thrift.protocol.TType.STRING, (short)6);
|
||||||
|
|
||||||
public ByteBuffer startRow;
|
public ByteBuffer startRow; // required
|
||||||
public ByteBuffer stopRow;
|
public ByteBuffer stopRow; // required
|
||||||
public long timestamp;
|
public long timestamp; // required
|
||||||
public List<ByteBuffer> columns;
|
public List<ByteBuffer> columns; // required
|
||||||
public int caching;
|
public int caching; // required
|
||||||
public ByteBuffer filterString;
|
public ByteBuffer filterString; // required
|
||||||
|
|
||||||
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
||||||
public enum _Fields implements TFieldIdEnum {
|
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
||||||
START_ROW((short)1, "startRow"),
|
START_ROW((short)1, "startRow"),
|
||||||
STOP_ROW((short)2, "stopRow"),
|
STOP_ROW((short)2, "stopRow"),
|
||||||
TIMESTAMP((short)3, "timestamp"),
|
TIMESTAMP((short)3, "timestamp"),
|
||||||
@ -124,24 +118,24 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
private static final int __CACHING_ISSET_ID = 1;
|
private static final int __CACHING_ISSET_ID = 1;
|
||||||
private BitSet __isset_bit_vector = new BitSet(2);
|
private BitSet __isset_bit_vector = new BitSet(2);
|
||||||
|
|
||||||
public static final Map<_Fields, FieldMetaData> metaDataMap;
|
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
||||||
static {
|
static {
|
||||||
Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
|
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
||||||
tmpMap.put(_Fields.START_ROW, new FieldMetaData("startRow", TFieldRequirementType.OPTIONAL,
|
tmpMap.put(_Fields.START_ROW, new org.apache.thrift.meta_data.FieldMetaData("startRow", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
||||||
new FieldValueMetaData(TType.STRING , "Text")));
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
|
||||||
tmpMap.put(_Fields.STOP_ROW, new FieldMetaData("stopRow", TFieldRequirementType.OPTIONAL,
|
tmpMap.put(_Fields.STOP_ROW, new org.apache.thrift.meta_data.FieldMetaData("stopRow", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
||||||
new FieldValueMetaData(TType.STRING , "Text")));
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
|
||||||
tmpMap.put(_Fields.TIMESTAMP, new FieldMetaData("timestamp", TFieldRequirementType.OPTIONAL,
|
tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
||||||
new FieldValueMetaData(TType.I64)));
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
||||||
tmpMap.put(_Fields.COLUMNS, new FieldMetaData("columns", TFieldRequirementType.OPTIONAL,
|
tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
||||||
new ListMetaData(TType.LIST,
|
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
||||||
new FieldValueMetaData(TType.STRING , "Text"))));
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
|
||||||
tmpMap.put(_Fields.CACHING, new FieldMetaData("caching", TFieldRequirementType.OPTIONAL,
|
tmpMap.put(_Fields.CACHING, new org.apache.thrift.meta_data.FieldMetaData("caching", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
||||||
new FieldValueMetaData(TType.I32)));
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
||||||
tmpMap.put(_Fields.FILTER_STRING, new FieldMetaData("filterString", TFieldRequirementType.OPTIONAL,
|
tmpMap.put(_Fields.FILTER_STRING, new org.apache.thrift.meta_data.FieldMetaData("filterString", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
||||||
new FieldValueMetaData(TType.STRING , "Text")));
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
|
||||||
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
||||||
FieldMetaData.addStructMetaDataMap(TScan.class, metaDataMap);
|
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TScan.class, metaDataMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
public TScan() {
|
public TScan() {
|
||||||
@ -190,16 +184,16 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
}
|
}
|
||||||
|
|
||||||
public byte[] getStartRow() {
|
public byte[] getStartRow() {
|
||||||
setStartRow(TBaseHelper.rightSize(startRow));
|
setStartRow(org.apache.thrift.TBaseHelper.rightSize(startRow));
|
||||||
return startRow.array();
|
return startRow == null ? null : startRow.array();
|
||||||
}
|
}
|
||||||
|
|
||||||
public ByteBuffer BufferForStartRow() {
|
public ByteBuffer bufferForStartRow() {
|
||||||
return startRow;
|
return startRow;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TScan setStartRow(byte[] startRow) {
|
public TScan setStartRow(byte[] startRow) {
|
||||||
setStartRow(ByteBuffer.wrap(startRow));
|
setStartRow(startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(startRow));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -212,7 +206,7 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
this.startRow = null;
|
this.startRow = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns true if field startRow is set (has been asigned a value) and false otherwise */
|
/** Returns true if field startRow is set (has been assigned a value) and false otherwise */
|
||||||
public boolean isSetStartRow() {
|
public boolean isSetStartRow() {
|
||||||
return this.startRow != null;
|
return this.startRow != null;
|
||||||
}
|
}
|
||||||
@ -224,16 +218,16 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
}
|
}
|
||||||
|
|
||||||
public byte[] getStopRow() {
|
public byte[] getStopRow() {
|
||||||
setStopRow(TBaseHelper.rightSize(stopRow));
|
setStopRow(org.apache.thrift.TBaseHelper.rightSize(stopRow));
|
||||||
return stopRow.array();
|
return stopRow == null ? null : stopRow.array();
|
||||||
}
|
}
|
||||||
|
|
||||||
public ByteBuffer BufferForStopRow() {
|
public ByteBuffer bufferForStopRow() {
|
||||||
return stopRow;
|
return stopRow;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TScan setStopRow(byte[] stopRow) {
|
public TScan setStopRow(byte[] stopRow) {
|
||||||
setStopRow(ByteBuffer.wrap(stopRow));
|
setStopRow(stopRow == null ? (ByteBuffer)null : ByteBuffer.wrap(stopRow));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -246,7 +240,7 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
this.stopRow = null;
|
this.stopRow = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns true if field stopRow is set (has been asigned a value) and false otherwise */
|
/** Returns true if field stopRow is set (has been assigned a value) and false otherwise */
|
||||||
public boolean isSetStopRow() {
|
public boolean isSetStopRow() {
|
||||||
return this.stopRow != null;
|
return this.stopRow != null;
|
||||||
}
|
}
|
||||||
@ -271,7 +265,7 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
__isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
|
__isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns true if field timestamp is set (has been asigned a value) and false otherwise */
|
/** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
|
||||||
public boolean isSetTimestamp() {
|
public boolean isSetTimestamp() {
|
||||||
return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
|
return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
|
||||||
}
|
}
|
||||||
@ -308,7 +302,7 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
this.columns = null;
|
this.columns = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns true if field columns is set (has been asigned a value) and false otherwise */
|
/** Returns true if field columns is set (has been assigned a value) and false otherwise */
|
||||||
public boolean isSetColumns() {
|
public boolean isSetColumns() {
|
||||||
return this.columns != null;
|
return this.columns != null;
|
||||||
}
|
}
|
||||||
@ -333,7 +327,7 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
__isset_bit_vector.clear(__CACHING_ISSET_ID);
|
__isset_bit_vector.clear(__CACHING_ISSET_ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns true if field caching is set (has been asigned a value) and false otherwise */
|
/** Returns true if field caching is set (has been assigned a value) and false otherwise */
|
||||||
public boolean isSetCaching() {
|
public boolean isSetCaching() {
|
||||||
return __isset_bit_vector.get(__CACHING_ISSET_ID);
|
return __isset_bit_vector.get(__CACHING_ISSET_ID);
|
||||||
}
|
}
|
||||||
@ -343,16 +337,16 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
}
|
}
|
||||||
|
|
||||||
public byte[] getFilterString() {
|
public byte[] getFilterString() {
|
||||||
setFilterString(TBaseHelper.rightSize(filterString));
|
setFilterString(org.apache.thrift.TBaseHelper.rightSize(filterString));
|
||||||
return filterString.array();
|
return filterString == null ? null : filterString.array();
|
||||||
}
|
}
|
||||||
|
|
||||||
public ByteBuffer BufferForFilterString() {
|
public ByteBuffer bufferForFilterString() {
|
||||||
return filterString;
|
return filterString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TScan setFilterString(byte[] filterString) {
|
public TScan setFilterString(byte[] filterString) {
|
||||||
setFilterString(ByteBuffer.wrap(filterString));
|
setFilterString(filterString == null ? (ByteBuffer)null : ByteBuffer.wrap(filterString));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -365,7 +359,7 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
this.filterString = null;
|
this.filterString = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns true if field filterString is set (has been asigned a value) and false otherwise */
|
/** Returns true if field filterString is set (has been assigned a value) and false otherwise */
|
||||||
public boolean isSetFilterString() {
|
public boolean isSetFilterString() {
|
||||||
return this.filterString != null;
|
return this.filterString != null;
|
||||||
}
|
}
|
||||||
@ -438,13 +432,13 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
return getStopRow();
|
return getStopRow();
|
||||||
|
|
||||||
case TIMESTAMP:
|
case TIMESTAMP:
|
||||||
return new Long(getTimestamp());
|
return Long.valueOf(getTimestamp());
|
||||||
|
|
||||||
case COLUMNS:
|
case COLUMNS:
|
||||||
return getColumns();
|
return getColumns();
|
||||||
|
|
||||||
case CACHING:
|
case CACHING:
|
||||||
return new Integer(getCaching());
|
return Integer.valueOf(getCaching());
|
||||||
|
|
||||||
case FILTER_STRING:
|
case FILTER_STRING:
|
||||||
return getFilterString();
|
return getFilterString();
|
||||||
@ -453,7 +447,7 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
throw new IllegalStateException();
|
throw new IllegalStateException();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
||||||
public boolean isSet(_Fields field) {
|
public boolean isSet(_Fields field) {
|
||||||
if (field == null) {
|
if (field == null) {
|
||||||
throw new IllegalArgumentException();
|
throw new IllegalArgumentException();
|
||||||
@ -564,7 +558,7 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
return lastComparison;
|
return lastComparison;
|
||||||
}
|
}
|
||||||
if (isSetStartRow()) {
|
if (isSetStartRow()) {
|
||||||
lastComparison = TBaseHelper.compareTo(this.startRow, typedOther.startRow);
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, typedOther.startRow);
|
||||||
if (lastComparison != 0) {
|
if (lastComparison != 0) {
|
||||||
return lastComparison;
|
return lastComparison;
|
||||||
}
|
}
|
||||||
@ -574,7 +568,7 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
return lastComparison;
|
return lastComparison;
|
||||||
}
|
}
|
||||||
if (isSetStopRow()) {
|
if (isSetStopRow()) {
|
||||||
lastComparison = TBaseHelper.compareTo(this.stopRow, typedOther.stopRow);
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stopRow, typedOther.stopRow);
|
||||||
if (lastComparison != 0) {
|
if (lastComparison != 0) {
|
||||||
return lastComparison;
|
return lastComparison;
|
||||||
}
|
}
|
||||||
@ -584,7 +578,7 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
return lastComparison;
|
return lastComparison;
|
||||||
}
|
}
|
||||||
if (isSetTimestamp()) {
|
if (isSetTimestamp()) {
|
||||||
lastComparison = TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
|
||||||
if (lastComparison != 0) {
|
if (lastComparison != 0) {
|
||||||
return lastComparison;
|
return lastComparison;
|
||||||
}
|
}
|
||||||
@ -594,7 +588,7 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
return lastComparison;
|
return lastComparison;
|
||||||
}
|
}
|
||||||
if (isSetColumns()) {
|
if (isSetColumns()) {
|
||||||
lastComparison = TBaseHelper.compareTo(this.columns, typedOther.columns);
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
|
||||||
if (lastComparison != 0) {
|
if (lastComparison != 0) {
|
||||||
return lastComparison;
|
return lastComparison;
|
||||||
}
|
}
|
||||||
@ -604,7 +598,7 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
return lastComparison;
|
return lastComparison;
|
||||||
}
|
}
|
||||||
if (isSetCaching()) {
|
if (isSetCaching()) {
|
||||||
lastComparison = TBaseHelper.compareTo(this.caching, typedOther.caching);
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.caching, typedOther.caching);
|
||||||
if (lastComparison != 0) {
|
if (lastComparison != 0) {
|
||||||
return lastComparison;
|
return lastComparison;
|
||||||
}
|
}
|
||||||
@ -614,7 +608,7 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
return lastComparison;
|
return lastComparison;
|
||||||
}
|
}
|
||||||
if (isSetFilterString()) {
|
if (isSetFilterString()) {
|
||||||
lastComparison = TBaseHelper.compareTo(this.filterString, typedOther.filterString);
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filterString, typedOther.filterString);
|
||||||
if (lastComparison != 0) {
|
if (lastComparison != 0) {
|
||||||
return lastComparison;
|
return lastComparison;
|
||||||
}
|
}
|
||||||
@ -626,72 +620,72 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
return _Fields.findByThriftId(fieldId);
|
return _Fields.findByThriftId(fieldId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void read(TProtocol iprot) throws TException {
|
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
||||||
TField field;
|
org.apache.thrift.protocol.TField field;
|
||||||
iprot.readStructBegin();
|
iprot.readStructBegin();
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
field = iprot.readFieldBegin();
|
field = iprot.readFieldBegin();
|
||||||
if (field.type == TType.STOP) {
|
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
switch (field.id) {
|
switch (field.id) {
|
||||||
case 1: // START_ROW
|
case 1: // START_ROW
|
||||||
if (field.type == TType.STRING) {
|
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
||||||
this.startRow = iprot.readBinary();
|
this.startRow = iprot.readBinary();
|
||||||
} else {
|
} else {
|
||||||
TProtocolUtil.skip(iprot, field.type);
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2: // STOP_ROW
|
case 2: // STOP_ROW
|
||||||
if (field.type == TType.STRING) {
|
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
||||||
this.stopRow = iprot.readBinary();
|
this.stopRow = iprot.readBinary();
|
||||||
} else {
|
} else {
|
||||||
TProtocolUtil.skip(iprot, field.type);
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 3: // TIMESTAMP
|
case 3: // TIMESTAMP
|
||||||
if (field.type == TType.I64) {
|
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
||||||
this.timestamp = iprot.readI64();
|
this.timestamp = iprot.readI64();
|
||||||
setTimestampIsSet(true);
|
setTimestampIsSet(true);
|
||||||
} else {
|
} else {
|
||||||
TProtocolUtil.skip(iprot, field.type);
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 4: // COLUMNS
|
case 4: // COLUMNS
|
||||||
if (field.type == TType.LIST) {
|
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
||||||
{
|
{
|
||||||
TList _list9 = iprot.readListBegin();
|
org.apache.thrift.protocol.TList _list9 = iprot.readListBegin();
|
||||||
this.columns = new ArrayList<ByteBuffer>(_list9.size);
|
this.columns = new ArrayList<ByteBuffer>(_list9.size);
|
||||||
for (int _i10 = 0; _i10 < _list9.size; ++_i10)
|
for (int _i10 = 0; _i10 < _list9.size; ++_i10)
|
||||||
{
|
{
|
||||||
ByteBuffer _elem11;
|
ByteBuffer _elem11; // required
|
||||||
_elem11 = iprot.readBinary();
|
_elem11 = iprot.readBinary();
|
||||||
this.columns.add(_elem11);
|
this.columns.add(_elem11);
|
||||||
}
|
}
|
||||||
iprot.readListEnd();
|
iprot.readListEnd();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
TProtocolUtil.skip(iprot, field.type);
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 5: // CACHING
|
case 5: // CACHING
|
||||||
if (field.type == TType.I32) {
|
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
||||||
this.caching = iprot.readI32();
|
this.caching = iprot.readI32();
|
||||||
setCachingIsSet(true);
|
setCachingIsSet(true);
|
||||||
} else {
|
} else {
|
||||||
TProtocolUtil.skip(iprot, field.type);
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 6: // FILTER_STRING
|
case 6: // FILTER_STRING
|
||||||
if (field.type == TType.STRING) {
|
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
||||||
this.filterString = iprot.readBinary();
|
this.filterString = iprot.readBinary();
|
||||||
} else {
|
} else {
|
||||||
TProtocolUtil.skip(iprot, field.type);
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
TProtocolUtil.skip(iprot, field.type);
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
||||||
}
|
}
|
||||||
iprot.readFieldEnd();
|
iprot.readFieldEnd();
|
||||||
}
|
}
|
||||||
@ -701,7 +695,7 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
validate();
|
validate();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void write(TProtocol oprot) throws TException {
|
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
||||||
validate();
|
validate();
|
||||||
|
|
||||||
oprot.writeStructBegin(STRUCT_DESC);
|
oprot.writeStructBegin(STRUCT_DESC);
|
||||||
@ -728,7 +722,7 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
if (isSetColumns()) {
|
if (isSetColumns()) {
|
||||||
oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
|
oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
|
||||||
{
|
{
|
||||||
oprot.writeListBegin(new TList(TType.STRING, this.columns.size()));
|
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.columns.size()));
|
||||||
for (ByteBuffer _iter12 : this.columns)
|
for (ByteBuffer _iter12 : this.columns)
|
||||||
{
|
{
|
||||||
oprot.writeBinary(_iter12);
|
oprot.writeBinary(_iter12);
|
||||||
@ -814,9 +808,27 @@ public class TScan implements TBase<TScan, TScan._Fields>, java.io.Serializable,
|
|||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void validate() throws TException {
|
public void validate() throws org.apache.thrift.TException {
|
||||||
// check for required fields
|
// check for required fields
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
||||||
|
try {
|
||||||
|
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
||||||
|
} catch (org.apache.thrift.TException te) {
|
||||||
|
throw new java.io.IOException(te);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
||||||
|
try {
|
||||||
|
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
||||||
|
__isset_bit_vector = new BitSet(1);
|
||||||
|
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
||||||
|
} catch (org.apache.thrift.TException te) {
|
||||||
|
throw new java.io.IOException(te);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user