accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject [20/41] accumulo git commit: ACCUMULO-4551 Add thrift-gen changes from 0.10.0
Date Thu, 09 Feb 2017 19:29:48 GMT
http://git-wip-us.apache.org/repos/asf/accumulo/blob/62bbce43/core/src/main/java/org/apache/accumulo/core/tabletserver/thrift/ActiveCompaction.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/accumulo/core/tabletserver/thrift/ActiveCompaction.java
b/core/src/main/java/org/apache/accumulo/core/tabletserver/thrift/ActiveCompaction.java
index 4c0decc..fa9dbd4 100644
--- a/core/src/main/java/org/apache/accumulo/core/tabletserver/thrift/ActiveCompaction.java
+++ b/core/src/main/java/org/apache/accumulo/core/tabletserver/thrift/ActiveCompaction.java
@@ -15,42 +15,15 @@
  * limitations under the License.
  */
 /**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  *  @generated
  */
 package org.apache.accumulo.core.tabletserver.thrift;
 
-import org.apache.thrift.scheme.IScheme;
-import org.apache.thrift.scheme.SchemeFactory;
-import org.apache.thrift.scheme.StandardScheme;
-
-import org.apache.thrift.scheme.TupleScheme;
-import org.apache.thrift.protocol.TTupleProtocol;
-import org.apache.thrift.protocol.TProtocolException;
-import org.apache.thrift.EncodingUtils;
-import org.apache.thrift.TException;
-import org.apache.thrift.async.AsyncMethodCallback;
-import org.apache.thrift.server.AbstractNonblockingServer.*;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.EnumMap;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.EnumSet;
-import java.util.Collections;
-import java.util.BitSet;
-import java.nio.ByteBuffer;
-import java.util.Arrays;
-import javax.annotation.Generated;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.10.0)")
 public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompaction, ActiveCompaction._Fields>,
java.io.Serializable, Cloneable, Comparable<ActiveCompaction> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ActiveCompaction");
 
@@ -66,16 +39,13 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
   private static final org.apache.thrift.protocol.TField SSI_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("ssiList",
org.apache.thrift.protocol.TType.LIST, (short)10);
   private static final org.apache.thrift.protocol.TField SSIO_FIELD_DESC = new org.apache.thrift.protocol.TField("ssio",
org.apache.thrift.protocol.TType.MAP, (short)11);
 
-  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes =
new HashMap<Class<? extends IScheme>, SchemeFactory>();
-  static {
-    schemes.put(StandardScheme.class, new ActiveCompactionStandardSchemeFactory());
-    schemes.put(TupleScheme.class, new ActiveCompactionTupleSchemeFactory());
-  }
+  private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new
ActiveCompactionStandardSchemeFactory();
+  private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new
ActiveCompactionTupleSchemeFactory();
 
   public org.apache.accumulo.core.data.thrift.TKeyExtent extent; // required
   public long age; // required
-  public List<String> inputFiles; // required
-  public String outputFile; // required
+  public java.util.List<java.lang.String> inputFiles; // required
+  public java.lang.String outputFile; // required
   /**
    * 
    * @see CompactionType
@@ -86,11 +56,11 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
    * @see CompactionReason
    */
   public CompactionReason reason; // required
-  public String localityGroup; // required
+  public java.lang.String localityGroup; // required
   public long entriesRead; // required
   public long entriesWritten; // required
-  public List<org.apache.accumulo.core.data.thrift.IterInfo> ssiList; // required
-  public Map<String,Map<String,String>> ssio; // required
+  public java.util.List<org.apache.accumulo.core.data.thrift.IterInfo> ssiList; //
required
+  public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>
ssio; // 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 {
@@ -114,10 +84,10 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
     SSI_LIST((short)10, "ssiList"),
     SSIO((short)11, "ssio");
 
-    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+    private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String,
_Fields>();
 
     static {
-      for (_Fields field : EnumSet.allOf(_Fields.class)) {
+      for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
         byName.put(field.getFieldName(), field);
       }
     }
@@ -160,21 +130,21 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
      */
     public static _Fields findByThriftIdOrThrow(int fieldId) {
       _Fields fields = findByThriftId(fieldId);
-      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't
exist!");
+      if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId
+ " doesn't exist!");
       return fields;
     }
 
     /**
      * Find the _Fields constant that matches name, or null if its not found.
      */
-    public static _Fields findByName(String name) {
+    public static _Fields findByName(java.lang.String name) {
       return byName.get(name);
     }
 
     private final short _thriftId;
-    private final String _fieldName;
+    private final java.lang.String _fieldName;
 
-    _Fields(short thriftId, String fieldName) {
+    _Fields(short thriftId, java.lang.String fieldName) {
       _thriftId = thriftId;
       _fieldName = fieldName;
     }
@@ -183,7 +153,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
       return _thriftId;
     }
 
-    public String getFieldName() {
+    public java.lang.String getFieldName() {
       return _fieldName;
     }
   }
@@ -193,9 +163,9 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
   private static final int __ENTRIESREAD_ISSET_ID = 1;
   private static final int __ENTRIESWRITTEN_ISSET_ID = 2;
   private byte __isset_bitfield = 0;
-  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+  public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData>
metaDataMap;
   static {
-    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields,
org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new
java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
     tmpMap.put(_Fields.EXTENT, new org.apache.thrift.meta_data.FieldMetaData("extent", org.apache.thrift.TFieldRequirementType.DEFAULT,

         new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT,
org.apache.accumulo.core.data.thrift.TKeyExtent.class)));
     tmpMap.put(_Fields.AGE, new org.apache.thrift.meta_data.FieldMetaData("age", org.apache.thrift.TFieldRequirementType.DEFAULT,

@@ -224,7 +194,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
             new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,

                 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),

                 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))));
-    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
     org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ActiveCompaction.class,
metaDataMap);
   }
 
@@ -234,15 +204,15 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
   public ActiveCompaction(
     org.apache.accumulo.core.data.thrift.TKeyExtent extent,
     long age,
-    List<String> inputFiles,
-    String outputFile,
+    java.util.List<java.lang.String> inputFiles,
+    java.lang.String outputFile,
     CompactionType type,
     CompactionReason reason,
-    String localityGroup,
+    java.lang.String localityGroup,
     long entriesRead,
     long entriesWritten,
-    List<org.apache.accumulo.core.data.thrift.IterInfo> ssiList,
-    Map<String,Map<String,String>> ssio)
+    java.util.List<org.apache.accumulo.core.data.thrift.IterInfo> ssiList,
+    java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>
ssio)
   {
     this();
     this.extent = extent;
@@ -271,7 +241,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
     }
     this.age = other.age;
     if (other.isSetInputFiles()) {
-      List<String> __this__inputFiles = new ArrayList<String>(other.inputFiles);
+      java.util.List<java.lang.String> __this__inputFiles = new java.util.ArrayList<java.lang.String>(other.inputFiles);
       this.inputFiles = __this__inputFiles;
     }
     if (other.isSetOutputFile()) {
@@ -289,22 +259,22 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
     this.entriesRead = other.entriesRead;
     this.entriesWritten = other.entriesWritten;
     if (other.isSetSsiList()) {
-      List<org.apache.accumulo.core.data.thrift.IterInfo> __this__ssiList = new ArrayList<org.apache.accumulo.core.data.thrift.IterInfo>(other.ssiList.size());
+      java.util.List<org.apache.accumulo.core.data.thrift.IterInfo> __this__ssiList
= new java.util.ArrayList<org.apache.accumulo.core.data.thrift.IterInfo>(other.ssiList.size());
       for (org.apache.accumulo.core.data.thrift.IterInfo other_element : other.ssiList) {
         __this__ssiList.add(new org.apache.accumulo.core.data.thrift.IterInfo(other_element));
       }
       this.ssiList = __this__ssiList;
     }
     if (other.isSetSsio()) {
-      Map<String,Map<String,String>> __this__ssio = new HashMap<String,Map<String,String>>(other.ssio.size());
-      for (Map.Entry<String, Map<String,String>> other_element : other.ssio.entrySet())
{
+      java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>
__this__ssio = new java.util.HashMap<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>(other.ssio.size());
+      for (java.util.Map.Entry<java.lang.String, java.util.Map<java.lang.String,java.lang.String>>
other_element : other.ssio.entrySet()) {
 
-        String other_element_key = other_element.getKey();
-        Map<String,String> other_element_value = other_element.getValue();
+        java.lang.String other_element_key = other_element.getKey();
+        java.util.Map<java.lang.String,java.lang.String> other_element_value = other_element.getValue();
 
-        String __this__ssio_copy_key = other_element_key;
+        java.lang.String __this__ssio_copy_key = other_element_key;
 
-        Map<String,String> __this__ssio_copy_value = new HashMap<String,String>(other_element_value);
+        java.util.Map<java.lang.String,java.lang.String> __this__ssio_copy_value =
new java.util.HashMap<java.lang.String,java.lang.String>(other_element_value);
 
         __this__ssio.put(__this__ssio_copy_key, __this__ssio_copy_value);
       }
@@ -369,38 +339,38 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
   }
 
   public void unsetAge() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __AGE_ISSET_ID);
+    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __AGE_ISSET_ID);
   }
 
   /** Returns true if field age is set (has been assigned a value) and false otherwise */
   public boolean isSetAge() {
-    return EncodingUtils.testBit(__isset_bitfield, __AGE_ISSET_ID);
+    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __AGE_ISSET_ID);
   }
 
   public void setAgeIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __AGE_ISSET_ID, value);
+    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __AGE_ISSET_ID,
value);
   }
 
   public int getInputFilesSize() {
     return (this.inputFiles == null) ? 0 : this.inputFiles.size();
   }
 
-  public java.util.Iterator<String> getInputFilesIterator() {
+  public java.util.Iterator<java.lang.String> getInputFilesIterator() {
     return (this.inputFiles == null) ? null : this.inputFiles.iterator();
   }
 
-  public void addToInputFiles(String elem) {
+  public void addToInputFiles(java.lang.String elem) {
     if (this.inputFiles == null) {
-      this.inputFiles = new ArrayList<String>();
+      this.inputFiles = new java.util.ArrayList<java.lang.String>();
     }
     this.inputFiles.add(elem);
   }
 
-  public List<String> getInputFiles() {
+  public java.util.List<java.lang.String> getInputFiles() {
     return this.inputFiles;
   }
 
-  public ActiveCompaction setInputFiles(List<String> inputFiles) {
+  public ActiveCompaction setInputFiles(java.util.List<java.lang.String> inputFiles)
{
     this.inputFiles = inputFiles;
     return this;
   }
@@ -420,11 +390,11 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
     }
   }
 
-  public String getOutputFile() {
+  public java.lang.String getOutputFile() {
     return this.outputFile;
   }
 
-  public ActiveCompaction setOutputFile(String outputFile) {
+  public ActiveCompaction setOutputFile(java.lang.String outputFile) {
     this.outputFile = outputFile;
     return this;
   }
@@ -508,11 +478,11 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
     }
   }
 
-  public String getLocalityGroup() {
+  public java.lang.String getLocalityGroup() {
     return this.localityGroup;
   }
 
-  public ActiveCompaction setLocalityGroup(String localityGroup) {
+  public ActiveCompaction setLocalityGroup(java.lang.String localityGroup) {
     this.localityGroup = localityGroup;
     return this;
   }
@@ -543,16 +513,16 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
   }
 
   public void unsetEntriesRead() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ENTRIESREAD_ISSET_ID);
+    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ENTRIESREAD_ISSET_ID);
   }
 
   /** Returns true if field entriesRead is set (has been assigned a value) and false otherwise
*/
   public boolean isSetEntriesRead() {
-    return EncodingUtils.testBit(__isset_bitfield, __ENTRIESREAD_ISSET_ID);
+    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ENTRIESREAD_ISSET_ID);
   }
 
   public void setEntriesReadIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ENTRIESREAD_ISSET_ID, value);
+    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ENTRIESREAD_ISSET_ID,
value);
   }
 
   public long getEntriesWritten() {
@@ -566,16 +536,16 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
   }
 
   public void unsetEntriesWritten() {
-    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ENTRIESWRITTEN_ISSET_ID);
+    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ENTRIESWRITTEN_ISSET_ID);
   }
 
   /** Returns true if field entriesWritten is set (has been assigned a value) and false otherwise
*/
   public boolean isSetEntriesWritten() {
-    return EncodingUtils.testBit(__isset_bitfield, __ENTRIESWRITTEN_ISSET_ID);
+    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ENTRIESWRITTEN_ISSET_ID);
   }
 
   public void setEntriesWrittenIsSet(boolean value) {
-    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ENTRIESWRITTEN_ISSET_ID,
value);
+    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ENTRIESWRITTEN_ISSET_ID,
value);
   }
 
   public int getSsiListSize() {
@@ -588,16 +558,16 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
 
   public void addToSsiList(org.apache.accumulo.core.data.thrift.IterInfo elem) {
     if (this.ssiList == null) {
-      this.ssiList = new ArrayList<org.apache.accumulo.core.data.thrift.IterInfo>();
+      this.ssiList = new java.util.ArrayList<org.apache.accumulo.core.data.thrift.IterInfo>();
     }
     this.ssiList.add(elem);
   }
 
-  public List<org.apache.accumulo.core.data.thrift.IterInfo> getSsiList() {
+  public java.util.List<org.apache.accumulo.core.data.thrift.IterInfo> getSsiList()
{
     return this.ssiList;
   }
 
-  public ActiveCompaction setSsiList(List<org.apache.accumulo.core.data.thrift.IterInfo>
ssiList) {
+  public ActiveCompaction setSsiList(java.util.List<org.apache.accumulo.core.data.thrift.IterInfo>
ssiList) {
     this.ssiList = ssiList;
     return this;
   }
@@ -621,18 +591,18 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
     return (this.ssio == null) ? 0 : this.ssio.size();
   }
 
-  public void putToSsio(String key, Map<String,String> val) {
+  public void putToSsio(java.lang.String key, java.util.Map<java.lang.String,java.lang.String>
val) {
     if (this.ssio == null) {
-      this.ssio = new HashMap<String,Map<String,String>>();
+      this.ssio = new java.util.HashMap<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>();
     }
     this.ssio.put(key, val);
   }
 
-  public Map<String,Map<String,String>> getSsio() {
+  public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>
getSsio() {
     return this.ssio;
   }
 
-  public ActiveCompaction setSsio(Map<String,Map<String,String>> ssio) {
+  public ActiveCompaction setSsio(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>
ssio) {
     this.ssio = ssio;
     return this;
   }
@@ -652,7 +622,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
     }
   }
 
-  public void setFieldValue(_Fields field, Object value) {
+  public void setFieldValue(_Fields field, java.lang.Object value) {
     switch (field) {
     case EXTENT:
       if (value == null) {
@@ -666,7 +636,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
       if (value == null) {
         unsetAge();
       } else {
-        setAge((Long)value);
+        setAge((java.lang.Long)value);
       }
       break;
 
@@ -674,7 +644,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
       if (value == null) {
         unsetInputFiles();
       } else {
-        setInputFiles((List<String>)value);
+        setInputFiles((java.util.List<java.lang.String>)value);
       }
       break;
 
@@ -682,7 +652,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
       if (value == null) {
         unsetOutputFile();
       } else {
-        setOutputFile((String)value);
+        setOutputFile((java.lang.String)value);
       }
       break;
 
@@ -706,7 +676,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
       if (value == null) {
         unsetLocalityGroup();
       } else {
-        setLocalityGroup((String)value);
+        setLocalityGroup((java.lang.String)value);
       }
       break;
 
@@ -714,7 +684,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
       if (value == null) {
         unsetEntriesRead();
       } else {
-        setEntriesRead((Long)value);
+        setEntriesRead((java.lang.Long)value);
       }
       break;
 
@@ -722,7 +692,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
       if (value == null) {
         unsetEntriesWritten();
       } else {
-        setEntriesWritten((Long)value);
+        setEntriesWritten((java.lang.Long)value);
       }
       break;
 
@@ -730,7 +700,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
       if (value == null) {
         unsetSsiList();
       } else {
-        setSsiList((List<org.apache.accumulo.core.data.thrift.IterInfo>)value);
+        setSsiList((java.util.List<org.apache.accumulo.core.data.thrift.IterInfo>)value);
       }
       break;
 
@@ -738,14 +708,14 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
       if (value == null) {
         unsetSsio();
       } else {
-        setSsio((Map<String,Map<String,String>>)value);
+        setSsio((java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>)value);
       }
       break;
 
     }
   }
 
-  public Object getFieldValue(_Fields field) {
+  public java.lang.Object getFieldValue(_Fields field) {
     switch (field) {
     case EXTENT:
       return getExtent();
@@ -781,13 +751,13 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
       return getSsio();
 
     }
-    throw new IllegalStateException();
+    throw new java.lang.IllegalStateException();
   }
 
   /** Returns true if field corresponding to fieldID is set (has been assigned a value) and
false otherwise */
   public boolean isSet(_Fields field) {
     if (field == null) {
-      throw new IllegalArgumentException();
+      throw new java.lang.IllegalArgumentException();
     }
 
     switch (field) {
@@ -814,11 +784,11 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
     case SSIO:
       return isSetSsio();
     }
-    throw new IllegalStateException();
+    throw new java.lang.IllegalStateException();
   }
 
   @Override
-  public boolean equals(Object that) {
+  public boolean equals(java.lang.Object that) {
     if (that == null)
       return false;
     if (that instanceof ActiveCompaction)
@@ -829,6 +799,8 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
   public boolean equals(ActiveCompaction that) {
     if (that == null)
       return false;
+    if (this == that)
+      return true;
 
     boolean this_present_extent = true && this.isSetExtent();
     boolean that_present_extent = true && that.isSetExtent();
@@ -934,64 +906,47 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
 
   @Override
   public int hashCode() {
-    List<Object> list = new ArrayList<Object>();
-
-    boolean present_extent = true && (isSetExtent());
-    list.add(present_extent);
-    if (present_extent)
-      list.add(extent);
-
-    boolean present_age = true;
-    list.add(present_age);
-    if (present_age)
-      list.add(age);
-
-    boolean present_inputFiles = true && (isSetInputFiles());
-    list.add(present_inputFiles);
-    if (present_inputFiles)
-      list.add(inputFiles);
-
-    boolean present_outputFile = true && (isSetOutputFile());
-    list.add(present_outputFile);
-    if (present_outputFile)
-      list.add(outputFile);
-
-    boolean present_type = true && (isSetType());
-    list.add(present_type);
-    if (present_type)
-      list.add(type.getValue());
-
-    boolean present_reason = true && (isSetReason());
-    list.add(present_reason);
-    if (present_reason)
-      list.add(reason.getValue());
-
-    boolean present_localityGroup = true && (isSetLocalityGroup());
-    list.add(present_localityGroup);
-    if (present_localityGroup)
-      list.add(localityGroup);
-
-    boolean present_entriesRead = true;
-    list.add(present_entriesRead);
-    if (present_entriesRead)
-      list.add(entriesRead);
-
-    boolean present_entriesWritten = true;
-    list.add(present_entriesWritten);
-    if (present_entriesWritten)
-      list.add(entriesWritten);
-
-    boolean present_ssiList = true && (isSetSsiList());
-    list.add(present_ssiList);
-    if (present_ssiList)
-      list.add(ssiList);
-
-    boolean present_ssio = true && (isSetSsio());
-    list.add(present_ssio);
-    if (present_ssio)
-      list.add(ssio);
-
-    return list.hashCode();
+    int hashCode = 1;
+
+    hashCode = hashCode * 8191 + ((isSetExtent()) ? 131071 : 524287);
+    if (isSetExtent())
+      hashCode = hashCode * 8191 + extent.hashCode();
+
+    hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(age);
+
+    hashCode = hashCode * 8191 + ((isSetInputFiles()) ? 131071 : 524287);
+    if (isSetInputFiles())
+      hashCode = hashCode * 8191 + inputFiles.hashCode();
+
+    hashCode = hashCode * 8191 + ((isSetOutputFile()) ? 131071 : 524287);
+    if (isSetOutputFile())
+      hashCode = hashCode * 8191 + outputFile.hashCode();
+
+    hashCode = hashCode * 8191 + ((isSetType()) ? 131071 : 524287);
+    if (isSetType())
+      hashCode = hashCode * 8191 + type.getValue();
+
+    hashCode = hashCode * 8191 + ((isSetReason()) ? 131071 : 524287);
+    if (isSetReason())
+      hashCode = hashCode * 8191 + reason.getValue();
+
+    hashCode = hashCode * 8191 + ((isSetLocalityGroup()) ? 131071 : 524287);
+    if (isSetLocalityGroup())
+      hashCode = hashCode * 8191 + localityGroup.hashCode();
+
+    hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(entriesRead);
+
+    hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(entriesWritten);
+
+    hashCode = hashCode * 8191 + ((isSetSsiList()) ? 131071 : 524287);
+    if (isSetSsiList())
+      hashCode = hashCode * 8191 + ssiList.hashCode();
+
+    hashCode = hashCode * 8191 + ((isSetSsio()) ? 131071 : 524287);
+    if (isSetSsio())
+      hashCode = hashCode * 8191 + ssio.hashCode();
+
+    return hashCode;
   }
 
   @Override
@@ -1002,7 +957,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
 
     int lastComparison = 0;
 
-    lastComparison = Boolean.valueOf(isSetExtent()).compareTo(other.isSetExtent());
+    lastComparison = java.lang.Boolean.valueOf(isSetExtent()).compareTo(other.isSetExtent());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -1012,7 +967,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetAge()).compareTo(other.isSetAge());
+    lastComparison = java.lang.Boolean.valueOf(isSetAge()).compareTo(other.isSetAge());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -1022,7 +977,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetInputFiles()).compareTo(other.isSetInputFiles());
+    lastComparison = java.lang.Boolean.valueOf(isSetInputFiles()).compareTo(other.isSetInputFiles());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -1032,7 +987,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetOutputFile()).compareTo(other.isSetOutputFile());
+    lastComparison = java.lang.Boolean.valueOf(isSetOutputFile()).compareTo(other.isSetOutputFile());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -1042,7 +997,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType());
+    lastComparison = java.lang.Boolean.valueOf(isSetType()).compareTo(other.isSetType());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -1052,7 +1007,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetReason()).compareTo(other.isSetReason());
+    lastComparison = java.lang.Boolean.valueOf(isSetReason()).compareTo(other.isSetReason());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -1062,7 +1017,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetLocalityGroup()).compareTo(other.isSetLocalityGroup());
+    lastComparison = java.lang.Boolean.valueOf(isSetLocalityGroup()).compareTo(other.isSetLocalityGroup());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -1072,7 +1027,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetEntriesRead()).compareTo(other.isSetEntriesRead());
+    lastComparison = java.lang.Boolean.valueOf(isSetEntriesRead()).compareTo(other.isSetEntriesRead());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -1082,7 +1037,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetEntriesWritten()).compareTo(other.isSetEntriesWritten());
+    lastComparison = java.lang.Boolean.valueOf(isSetEntriesWritten()).compareTo(other.isSetEntriesWritten());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -1092,7 +1047,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetSsiList()).compareTo(other.isSetSsiList());
+    lastComparison = java.lang.Boolean.valueOf(isSetSsiList()).compareTo(other.isSetSsiList());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -1102,7 +1057,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetSsio()).compareTo(other.isSetSsio());
+    lastComparison = java.lang.Boolean.valueOf(isSetSsio()).compareTo(other.isSetSsio());
     if (lastComparison != 0) {
       return lastComparison;
     }
@@ -1120,16 +1075,16 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
   }
 
   public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
{
-    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+    scheme(iprot).read(iprot, this);
   }
 
   public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
{
-    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+    scheme(oprot).write(oprot, this);
   }
 
   @Override
-  public String toString() {
-    StringBuilder sb = new StringBuilder("ActiveCompaction(");
+  public java.lang.String toString() {
+    java.lang.StringBuilder sb = new java.lang.StringBuilder("ActiveCompaction(");
     boolean first = true;
 
     sb.append("extent:");
@@ -1227,7 +1182,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
     }
   }
 
-  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException
{
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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_bitfield = 0;
@@ -1237,13 +1192,13 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
     }
   }
 
-  private static class ActiveCompactionStandardSchemeFactory implements SchemeFactory {
+  private static class ActiveCompactionStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory
{
     public ActiveCompactionStandardScheme getScheme() {
       return new ActiveCompactionStandardScheme();
     }
   }
 
-  private static class ActiveCompactionStandardScheme extends StandardScheme<ActiveCompaction>
{
+  private static class ActiveCompactionStandardScheme extends org.apache.thrift.scheme.StandardScheme<ActiveCompaction>
{
 
     public void read(org.apache.thrift.protocol.TProtocol iprot, ActiveCompaction struct)
throws org.apache.thrift.TException {
       org.apache.thrift.protocol.TField schemeField;
@@ -1276,8 +1231,8 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
             if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
               {
                 org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
-                struct.inputFiles = new ArrayList<String>(_list52.size);
-                String _elem53;
+                struct.inputFiles = new java.util.ArrayList<java.lang.String>(_list52.size);
+                java.lang.String _elem53;
                 for (int _i54 = 0; _i54 < _list52.size; ++_i54)
                 {
                   _elem53 = iprot.readString();
@@ -1342,7 +1297,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
             if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
               {
                 org.apache.thrift.protocol.TList _list55 = iprot.readListBegin();
-                struct.ssiList = new ArrayList<org.apache.accumulo.core.data.thrift.IterInfo>(_list55.size);
+                struct.ssiList = new java.util.ArrayList<org.apache.accumulo.core.data.thrift.IterInfo>(_list55.size);
                 org.apache.accumulo.core.data.thrift.IterInfo _elem56;
                 for (int _i57 = 0; _i57 < _list55.size; ++_i57)
                 {
@@ -1361,17 +1316,17 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
             if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
               {
                 org.apache.thrift.protocol.TMap _map58 = iprot.readMapBegin();
-                struct.ssio = new HashMap<String,Map<String,String>>(2*_map58.size);
-                String _key59;
-                Map<String,String> _val60;
+                struct.ssio = new java.util.HashMap<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>(2*_map58.size);
+                java.lang.String _key59;
+                java.util.Map<java.lang.String,java.lang.String> _val60;
                 for (int _i61 = 0; _i61 < _map58.size; ++_i61)
                 {
                   _key59 = iprot.readString();
                   {
                     org.apache.thrift.protocol.TMap _map62 = iprot.readMapBegin();
-                    _val60 = new HashMap<String,String>(2*_map62.size);
-                    String _key63;
-                    String _val64;
+                    _val60 = new java.util.HashMap<java.lang.String,java.lang.String>(2*_map62.size);
+                    java.lang.String _key63;
+                    java.lang.String _val64;
                     for (int _i65 = 0; _i65 < _map62.size; ++_i65)
                     {
                       _key63 = iprot.readString();
@@ -1416,7 +1371,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
         oprot.writeFieldBegin(INPUT_FILES_FIELD_DESC);
         {
           oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING,
struct.inputFiles.size()));
-          for (String _iter66 : struct.inputFiles)
+          for (java.lang.String _iter66 : struct.inputFiles)
           {
             oprot.writeString(_iter66);
           }
@@ -1466,12 +1421,12 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
         oprot.writeFieldBegin(SSIO_FIELD_DESC);
         {
           oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING,
org.apache.thrift.protocol.TType.MAP, struct.ssio.size()));
-          for (Map.Entry<String, Map<String,String>> _iter68 : struct.ssio.entrySet())
+          for (java.util.Map.Entry<java.lang.String, java.util.Map<java.lang.String,java.lang.String>>
_iter68 : struct.ssio.entrySet())
           {
             oprot.writeString(_iter68.getKey());
             {
               oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING,
org.apache.thrift.protocol.TType.STRING, _iter68.getValue().size()));
-              for (Map.Entry<String, String> _iter69 : _iter68.getValue().entrySet())
+              for (java.util.Map.Entry<java.lang.String, java.lang.String> _iter69
: _iter68.getValue().entrySet())
               {
                 oprot.writeString(_iter69.getKey());
                 oprot.writeString(_iter69.getValue());
@@ -1489,18 +1444,18 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
 
   }
 
-  private static class ActiveCompactionTupleSchemeFactory implements SchemeFactory {
+  private static class ActiveCompactionTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory
{
     public ActiveCompactionTupleScheme getScheme() {
       return new ActiveCompactionTupleScheme();
     }
   }
 
-  private static class ActiveCompactionTupleScheme extends TupleScheme<ActiveCompaction>
{
+  private static class ActiveCompactionTupleScheme extends org.apache.thrift.scheme.TupleScheme<ActiveCompaction>
{
 
     @Override
     public void write(org.apache.thrift.protocol.TProtocol prot, ActiveCompaction struct)
throws org.apache.thrift.TException {
-      TTupleProtocol oprot = (TTupleProtocol) prot;
-      BitSet optionals = new BitSet();
+      org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol)
prot;
+      java.util.BitSet optionals = new java.util.BitSet();
       if (struct.isSetExtent()) {
         optionals.set(0);
       }
@@ -1544,7 +1499,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
       if (struct.isSetInputFiles()) {
         {
           oprot.writeI32(struct.inputFiles.size());
-          for (String _iter70 : struct.inputFiles)
+          for (java.lang.String _iter70 : struct.inputFiles)
           {
             oprot.writeString(_iter70);
           }
@@ -1580,12 +1535,12 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
       if (struct.isSetSsio()) {
         {
           oprot.writeI32(struct.ssio.size());
-          for (Map.Entry<String, Map<String,String>> _iter72 : struct.ssio.entrySet())
+          for (java.util.Map.Entry<java.lang.String, java.util.Map<java.lang.String,java.lang.String>>
_iter72 : struct.ssio.entrySet())
           {
             oprot.writeString(_iter72.getKey());
             {
               oprot.writeI32(_iter72.getValue().size());
-              for (Map.Entry<String, String> _iter73 : _iter72.getValue().entrySet())
+              for (java.util.Map.Entry<java.lang.String, java.lang.String> _iter73
: _iter72.getValue().entrySet())
               {
                 oprot.writeString(_iter73.getKey());
                 oprot.writeString(_iter73.getValue());
@@ -1598,8 +1553,8 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
 
     @Override
     public void read(org.apache.thrift.protocol.TProtocol prot, ActiveCompaction struct)
throws org.apache.thrift.TException {
-      TTupleProtocol iprot = (TTupleProtocol) prot;
-      BitSet incoming = iprot.readBitSet(11);
+      org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol)
prot;
+      java.util.BitSet incoming = iprot.readBitSet(11);
       if (incoming.get(0)) {
         struct.extent = new org.apache.accumulo.core.data.thrift.TKeyExtent();
         struct.extent.read(iprot);
@@ -1612,8 +1567,8 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
       if (incoming.get(2)) {
         {
           org.apache.thrift.protocol.TList _list74 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING,
iprot.readI32());
-          struct.inputFiles = new ArrayList<String>(_list74.size);
-          String _elem75;
+          struct.inputFiles = new java.util.ArrayList<java.lang.String>(_list74.size);
+          java.lang.String _elem75;
           for (int _i76 = 0; _i76 < _list74.size; ++_i76)
           {
             _elem75 = iprot.readString();
@@ -1649,7 +1604,7 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
       if (incoming.get(9)) {
         {
           org.apache.thrift.protocol.TList _list77 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT,
iprot.readI32());
-          struct.ssiList = new ArrayList<org.apache.accumulo.core.data.thrift.IterInfo>(_list77.size);
+          struct.ssiList = new java.util.ArrayList<org.apache.accumulo.core.data.thrift.IterInfo>(_list77.size);
           org.apache.accumulo.core.data.thrift.IterInfo _elem78;
           for (int _i79 = 0; _i79 < _list77.size; ++_i79)
           {
@@ -1663,17 +1618,17 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
       if (incoming.get(10)) {
         {
           org.apache.thrift.protocol.TMap _map80 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING,
org.apache.thrift.protocol.TType.MAP, iprot.readI32());
-          struct.ssio = new HashMap<String,Map<String,String>>(2*_map80.size);
-          String _key81;
-          Map<String,String> _val82;
+          struct.ssio = new java.util.HashMap<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>(2*_map80.size);
+          java.lang.String _key81;
+          java.util.Map<java.lang.String,java.lang.String> _val82;
           for (int _i83 = 0; _i83 < _map80.size; ++_i83)
           {
             _key81 = iprot.readString();
             {
               org.apache.thrift.protocol.TMap _map84 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING,
org.apache.thrift.protocol.TType.STRING, iprot.readI32());
-              _val82 = new HashMap<String,String>(2*_map84.size);
-              String _key85;
-              String _val86;
+              _val82 = new java.util.HashMap<java.lang.String,java.lang.String>(2*_map84.size);
+              java.lang.String _key85;
+              java.lang.String _val86;
               for (int _i87 = 0; _i87 < _map84.size; ++_i87)
               {
                 _key85 = iprot.readString();
@@ -1689,5 +1644,9 @@ public class ActiveCompaction implements org.apache.thrift.TBase<ActiveCompactio
     }
   }
 
+  private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol
proto) {
+    return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY
: TUPLE_SCHEME_FACTORY).getScheme();
+  }
+  private static void unusedMethod() {}
 }
 


Mime
View raw message