incubator-accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r1189806 [18/46] - in /incubator/accumulo: branches/1.3/contrib/ branches/1.3/src/core/src/main/java/org/apache/accumulo/core/client/ branches/1.3/src/core/src/main/java/org/apache/accumulo/core/client/admin/ branches/1.3/src/core/src/main/...
Date Thu, 27 Oct 2011 15:25:17 GMT
Modified: incubator/accumulo/branches/1.3/src/core/src/main/java/org/apache/accumulo/core/tabletserver/thrift/CompactionStats.java
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.3/src/core/src/main/java/org/apache/accumulo/core/tabletserver/thrift/CompactionStats.java?rev=1189806&r1=1189805&r2=1189806&view=diff
==============================================================================
--- incubator/accumulo/branches/1.3/src/core/src/main/java/org/apache/accumulo/core/tabletserver/thrift/CompactionStats.java
(original)
+++ incubator/accumulo/branches/1.3/src/core/src/main/java/org/apache/accumulo/core/tabletserver/thrift/CompactionStats.java
Thu Oct 27 15:24:51 2011
@@ -5,107 +5,98 @@
  */
 package org.apache.accumulo.core.tabletserver.thrift;
 
-
-
 import org.apache.thrift.*;
 import org.apache.thrift.meta_data.*;
 import org.apache.thrift.protocol.*;
 
 @SuppressWarnings("serial")
-public class CompactionStats implements TBase<CompactionStats, CompactionStats._Fields>,
java.io.Serializable, Cloneable, Comparable<CompactionStats> {
+public class CompactionStats implements TBase<CompactionStats,CompactionStats._Fields>,
java.io.Serializable, Cloneable, Comparable<CompactionStats> {
   private static final TStruct STRUCT_DESC = new TStruct("CompactionStats");
-
-  private static final TField STATS_FIELD_DESC = new TField("stats", TType.STRUCT, (short)1);
-  private static final TField QUEUE_TIME_FIELD_DESC = new TField("queueTime", TType.DOUBLE,
(short)2);
-  private static final TField QUEUE_SUM_DEV_FIELD_DESC = new TField("queueSumDev", TType.DOUBLE,
(short)3);
-
+  
+  private static final TField STATS_FIELD_DESC = new TField("stats", TType.STRUCT, (short)
1);
+  private static final TField QUEUE_TIME_FIELD_DESC = new TField("queueTime", TType.DOUBLE,
(short) 2);
+  private static final TField QUEUE_SUM_DEV_FIELD_DESC = new TField("queueSumDev", TType.DOUBLE,
(short) 3);
+  
   public ActionStats stats;
   public double queueTime;
   public double queueSumDev;
-
+  
   /** The set of fields this struct contains, along with convenience methods for finding
and manipulating them. */
   public enum _Fields implements TFieldIdEnum {
-    STATS((short)1, "stats"),
-    QUEUE_TIME((short)2, "queueTime"),
-    QUEUE_SUM_DEV((short)3, "queueSumDev");
-
-    private static final java.util.Map<Integer, _Fields> byId = new java.util.HashMap<Integer,
_Fields>();
-    private static final java.util.Map<String, _Fields> byName = new java.util.HashMap<String,
_Fields>();
-
+    STATS((short) 1, "stats"), QUEUE_TIME((short) 2, "queueTime"), QUEUE_SUM_DEV((short)
3, "queueSumDev");
+    
+    private static final java.util.Map<Integer,_Fields> byId = new java.util.HashMap<Integer,_Fields>();
+    private static final java.util.Map<String,_Fields> byName = new java.util.HashMap<String,_Fields>();
+    
     static {
       for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
-        byId.put((int)field._thriftId, field);
+        byId.put((int) field._thriftId, field);
         byName.put(field.getFieldName(), field);
       }
     }
-
+    
     /**
      * Find the _Fields constant that matches fieldId, or null if its not found.
      */
     public static _Fields findByThriftId(int fieldId) {
       return byId.get(fieldId);
     }
-
+    
     /**
-     * Find the _Fields constant that matches fieldId, throwing an exception
-     * if it is not found.
+     * Find the _Fields constant that matches fieldId, throwing an exception if it is not
found.
      */
     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 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) {
       return byName.get(name);
     }
-
+    
     private final short _thriftId;
     private final String _fieldName;
-
+    
     _Fields(short thriftId, String fieldName) {
       _thriftId = thriftId;
       _fieldName = fieldName;
     }
-
+    
     public short getThriftFieldId() {
       return _thriftId;
     }
-
+    
     public String getFieldName() {
       return _fieldName;
     }
   }
-
+  
   // isset id assignments
   private static final int __QUEUETIME_ISSET_ID = 0;
   private static final int __QUEUESUMDEV_ISSET_ID = 1;
   private java.util.BitSet __isset_bit_vector = new java.util.BitSet(2);
-
-  public static final java.util.Map<_Fields, FieldMetaData> metaDataMap = java.util.Collections.unmodifiableMap(new
java.util.EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-    put(_Fields.STATS, new FieldMetaData("stats", TFieldRequirementType.DEFAULT, 
-        new StructMetaData(TType.STRUCT, ActionStats.class)));
-    put(_Fields.QUEUE_TIME, new FieldMetaData("queueTime", TFieldRequirementType.DEFAULT,

-        new FieldValueMetaData(TType.DOUBLE)));
-    put(_Fields.QUEUE_SUM_DEV, new FieldMetaData("queueSumDev", TFieldRequirementType.DEFAULT,

-        new FieldValueMetaData(TType.DOUBLE)));
-  }});
-
+  
+  public static final java.util.Map<_Fields,FieldMetaData> metaDataMap = java.util.Collections.unmodifiableMap(new
java.util.EnumMap<_Fields,FieldMetaData>(
+      _Fields.class) {
+    {
+      put(_Fields.STATS, new FieldMetaData("stats", TFieldRequirementType.DEFAULT, new StructMetaData(TType.STRUCT,
ActionStats.class)));
+      put(_Fields.QUEUE_TIME, new FieldMetaData("queueTime", TFieldRequirementType.DEFAULT,
new FieldValueMetaData(TType.DOUBLE)));
+      put(_Fields.QUEUE_SUM_DEV, new FieldMetaData("queueSumDev", TFieldRequirementType.DEFAULT,
new FieldValueMetaData(TType.DOUBLE)));
+    }
+  });
+  
   static {
     FieldMetaData.addStructMetaDataMap(CompactionStats.class, metaDataMap);
   }
-
-  public CompactionStats() {
-  }
-
-  public CompactionStats(
-    ActionStats stats,
-    double queueTime,
-    double queueSumDev)
-  {
+  
+  public CompactionStats() {}
+  
+  public CompactionStats(ActionStats stats, double queueTime, double queueSumDev) {
     this();
     this.stats = stats;
     this.queueTime = queueTime;
@@ -113,7 +104,7 @@ public class CompactionStats implements 
     this.queueSumDev = queueSumDev;
     setQueueSumDevIsSet(true);
   }
-
+  
   /**
    * Performs a deep copy on <i>other</i>.
    */
@@ -126,168 +117,168 @@ public class CompactionStats implements 
     this.queueTime = other.queueTime;
     this.queueSumDev = other.queueSumDev;
   }
-
+  
   public CompactionStats deepCopy() {
     return new CompactionStats(this);
   }
-
+  
   @Deprecated
   public CompactionStats clone() {
     return new CompactionStats(this);
   }
-
+  
   public ActionStats getStats() {
     return this.stats;
   }
-
+  
   public CompactionStats setStats(ActionStats stats) {
     this.stats = stats;
     return this;
   }
-
+  
   public void unsetStats() {
     this.stats = null;
   }
-
+  
   /** Returns true if field stats is set (has been asigned a value) and false otherwise */
   public boolean isSetStats() {
     return this.stats != null;
   }
-
+  
   public void setStatsIsSet(boolean value) {
     if (!value) {
       this.stats = null;
     }
   }
-
+  
   public double getQueueTime() {
     return this.queueTime;
   }
-
+  
   public CompactionStats setQueueTime(double queueTime) {
     this.queueTime = queueTime;
     setQueueTimeIsSet(true);
     return this;
   }
-
+  
   public void unsetQueueTime() {
     __isset_bit_vector.clear(__QUEUETIME_ISSET_ID);
   }
-
+  
   /** Returns true if field queueTime is set (has been asigned a value) and false otherwise
*/
   public boolean isSetQueueTime() {
     return __isset_bit_vector.get(__QUEUETIME_ISSET_ID);
   }
-
+  
   public void setQueueTimeIsSet(boolean value) {
     __isset_bit_vector.set(__QUEUETIME_ISSET_ID, value);
   }
-
+  
   public double getQueueSumDev() {
     return this.queueSumDev;
   }
-
+  
   public CompactionStats setQueueSumDev(double queueSumDev) {
     this.queueSumDev = queueSumDev;
     setQueueSumDevIsSet(true);
     return this;
   }
-
+  
   public void unsetQueueSumDev() {
     __isset_bit_vector.clear(__QUEUESUMDEV_ISSET_ID);
   }
-
+  
   /** Returns true if field queueSumDev is set (has been asigned a value) and false otherwise
*/
   public boolean isSetQueueSumDev() {
     return __isset_bit_vector.get(__QUEUESUMDEV_ISSET_ID);
   }
-
+  
   public void setQueueSumDevIsSet(boolean value) {
     __isset_bit_vector.set(__QUEUESUMDEV_ISSET_ID, value);
   }
-
+  
   public void setFieldValue(_Fields field, Object value) {
     switch (field) {
-    case STATS:
-      if (value == null) {
-        unsetStats();
-      } else {
-        setStats((ActionStats)value);
-      }
-      break;
-
-    case QUEUE_TIME:
-      if (value == null) {
-        unsetQueueTime();
-      } else {
-        setQueueTime((Double)value);
-      }
-      break;
-
-    case QUEUE_SUM_DEV:
-      if (value == null) {
-        unsetQueueSumDev();
-      } else {
-        setQueueSumDev((Double)value);
-      }
-      break;
-
+      case STATS:
+        if (value == null) {
+          unsetStats();
+        } else {
+          setStats((ActionStats) value);
+        }
+        break;
+      
+      case QUEUE_TIME:
+        if (value == null) {
+          unsetQueueTime();
+        } else {
+          setQueueTime((Double) value);
+        }
+        break;
+      
+      case QUEUE_SUM_DEV:
+        if (value == null) {
+          unsetQueueSumDev();
+        } else {
+          setQueueSumDev((Double) value);
+        }
+        break;
+    
     }
   }
-
+  
   public void setFieldValue(int fieldID, Object value) {
     setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
   }
-
+  
   public Object getFieldValue(_Fields field) {
     switch (field) {
-    case STATS:
-      return getStats();
-
-    case QUEUE_TIME:
-      return new Double(getQueueTime());
-
-    case QUEUE_SUM_DEV:
-      return new Double(getQueueSumDev());
-
+      case STATS:
+        return getStats();
+        
+      case QUEUE_TIME:
+        return new Double(getQueueTime());
+        
+      case QUEUE_SUM_DEV:
+        return new Double(getQueueSumDev());
+        
     }
     throw new IllegalStateException();
   }
-
+  
   public Object getFieldValue(int fieldId) {
     return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
   }
-
+  
   /** Returns true if field corresponding to fieldID is set (has been asigned a value) and
false otherwise */
   public boolean isSet(_Fields field) {
     switch (field) {
-    case STATS:
-      return isSetStats();
-    case QUEUE_TIME:
-      return isSetQueueTime();
-    case QUEUE_SUM_DEV:
-      return isSetQueueSumDev();
+      case STATS:
+        return isSetStats();
+      case QUEUE_TIME:
+        return isSetQueueTime();
+      case QUEUE_SUM_DEV:
+        return isSetQueueSumDev();
     }
     throw new IllegalStateException();
   }
-
+  
   public boolean isSet(int fieldID) {
     return isSet(_Fields.findByThriftIdOrThrow(fieldID));
   }
-
+  
   @Override
   public boolean equals(Object that) {
     if (that == null)
       return false;
     if (that instanceof CompactionStats)
-      return this.equals((CompactionStats)that);
+      return this.equals((CompactionStats) that);
     return false;
   }
-
+  
   public boolean equals(CompactionStats that) {
     if (that == null)
       return false;
-
+    
     boolean this_present_stats = true && this.isSetStats();
     boolean that_present_stats = true && that.isSetStats();
     if (this_present_stats || that_present_stats) {
@@ -296,7 +287,7 @@ public class CompactionStats implements 
       if (!this.stats.equals(that.stats))
         return false;
     }
-
+    
     boolean this_present_queueTime = true;
     boolean that_present_queueTime = true;
     if (this_present_queueTime || that_present_queueTime) {
@@ -305,7 +296,7 @@ public class CompactionStats implements 
       if (this.queueTime != that.queueTime)
         return false;
     }
-
+    
     boolean this_present_queueSumDev = true;
     boolean that_present_queueSumDev = true;
     if (this_present_queueSumDev || that_present_queueSumDev) {
@@ -314,23 +305,23 @@ public class CompactionStats implements 
       if (this.queueSumDev != that.queueSumDev)
         return false;
     }
-
+    
     return true;
   }
-
+  
   @Override
   public int hashCode() {
     return 0;
   }
-
+  
   public int compareTo(CompactionStats other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
-
+    
     int lastComparison = 0;
-    CompactionStats typedOther = (CompactionStats)other;
-
+    CompactionStats typedOther = (CompactionStats) other;
+    
     lastComparison = Boolean.valueOf(isSetStats()).compareTo(isSetStats());
     if (lastComparison != 0) {
       return lastComparison;
@@ -357,14 +348,13 @@ public class CompactionStats implements 
     }
     return 0;
   }
-
+  
   public void read(TProtocol iprot) throws TException {
     TField field;
     iprot.readStructBegin();
-    while (true)
-    {
+    while (true) {
       field = iprot.readFieldBegin();
-      if (field.type == TType.STOP) { 
+      if (field.type == TType.STOP) {
         break;
       }
       _Fields fieldId = _Fields.findByThriftId(field.id);
@@ -376,7 +366,7 @@ public class CompactionStats implements 
             if (field.type == TType.STRUCT) {
               this.stats = new ActionStats();
               this.stats.read(iprot);
-            } else { 
+            } else {
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
@@ -384,7 +374,7 @@ public class CompactionStats implements 
             if (field.type == TType.DOUBLE) {
               this.queueTime = iprot.readDouble();
               setQueueTimeIsSet(true);
-            } else { 
+            } else {
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
@@ -392,7 +382,7 @@ public class CompactionStats implements 
             if (field.type == TType.DOUBLE) {
               this.queueSumDev = iprot.readDouble();
               setQueueSumDevIsSet(true);
-            } else { 
+            } else {
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
@@ -401,14 +391,14 @@ public class CompactionStats implements 
       }
     }
     iprot.readStructEnd();
-
+    
     // check for required fields of primitive type, which can't be checked in the validate
method
     validate();
   }
-
+  
   public void write(TProtocol oprot) throws TException {
     validate();
-
+    
     oprot.writeStructBegin(STRUCT_DESC);
     if (this.stats != null) {
       oprot.writeFieldBegin(STATS_FIELD_DESC);
@@ -424,7 +414,7 @@ public class CompactionStats implements 
     oprot.writeFieldStop();
     oprot.writeStructEnd();
   }
-
+  
   @Override
   public String toString() {
     StringBuilder sb = new StringBuilder("CompactionStats(");
@@ -443,10 +433,9 @@ public class CompactionStats implements 
     sb.append(")");
     return sb.toString();
   }
-
+  
   public void validate() throws TException {
     // check for required fields
   }
-
+  
 }
-

Modified: incubator/accumulo/branches/1.3/src/core/src/main/java/org/apache/accumulo/core/tabletserver/thrift/ConstraintViolationException.java
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.3/src/core/src/main/java/org/apache/accumulo/core/tabletserver/thrift/ConstraintViolationException.java?rev=1189806&r1=1189805&r2=1189806&view=diff
==============================================================================
--- incubator/accumulo/branches/1.3/src/core/src/main/java/org/apache/accumulo/core/tabletserver/thrift/ConstraintViolationException.java
(original)
+++ incubator/accumulo/branches/1.3/src/core/src/main/java/org/apache/accumulo/core/tabletserver/thrift/ConstraintViolationException.java
Thu Oct 27 15:24:51 2011
@@ -5,100 +5,95 @@
  */
 package org.apache.accumulo.core.tabletserver.thrift;
 
-
-
 import org.apache.thrift.*;
 import org.apache.thrift.meta_data.*;
 import org.apache.thrift.protocol.*;
 
 @SuppressWarnings("serial")
-public class ConstraintViolationException extends Exception implements TBase<ConstraintViolationException,
ConstraintViolationException._Fields>, java.io.Serializable, Cloneable {
+public class ConstraintViolationException extends Exception implements TBase<ConstraintViolationException,ConstraintViolationException._Fields>,
+    java.io.Serializable, Cloneable {
   private static final TStruct STRUCT_DESC = new TStruct("ConstraintViolationException");
-
-  private static final TField VIOLATION_SUMMARIES_FIELD_DESC = new TField("violationSummaries",
TType.LIST, (short)1);
-
+  
+  private static final TField VIOLATION_SUMMARIES_FIELD_DESC = new TField("violationSummaries",
TType.LIST, (short) 1);
+  
   public java.util.List<org.apache.accumulo.core.data.thrift.TConstraintViolationSummary>
violationSummaries;
-
+  
   /** The set of fields this struct contains, along with convenience methods for finding
and manipulating them. */
   public enum _Fields implements TFieldIdEnum {
-    VIOLATION_SUMMARIES((short)1, "violationSummaries");
-
-    private static final java.util.Map<String, _Fields> byName = new java.util.HashMap<String,
_Fields>();
-
+    VIOLATION_SUMMARIES((short) 1, "violationSummaries");
+    
+    private static final java.util.Map<String,_Fields> byName = new java.util.HashMap<String,_Fields>();
+    
     static {
       for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
         byName.put(field.getFieldName(), field);
       }
     }
-
+    
     /**
      * Find the _Fields constant that matches fieldId, or null if its not found.
      */
     public static _Fields findByThriftId(int fieldId) {
-      switch(fieldId) {
+      switch (fieldId) {
         case 1: // VIOLATION_SUMMARIES
           return VIOLATION_SUMMARIES;
         default:
           return null;
       }
     }
-
+    
     /**
-     * Find the _Fields constant that matches fieldId, throwing an exception
-     * if it is not found.
+     * Find the _Fields constant that matches fieldId, throwing an exception if it is not
found.
      */
     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 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) {
       return byName.get(name);
     }
-
+    
     private final short _thriftId;
     private final String _fieldName;
-
+    
     _Fields(short thriftId, String fieldName) {
       _thriftId = thriftId;
       _fieldName = fieldName;
     }
-
+    
     public short getThriftFieldId() {
       return _thriftId;
     }
-
+    
     public String getFieldName() {
       return _fieldName;
     }
   }
-
+  
   // isset id assignments
-
-  public static final java.util.Map<_Fields, FieldMetaData> metaDataMap;
+  
+  public static final java.util.Map<_Fields,FieldMetaData> metaDataMap;
   static {
-    java.util.Map<_Fields, FieldMetaData> tmpMap = new java.util.EnumMap<_Fields,
FieldMetaData>(_Fields.class);
-    tmpMap.put(_Fields.VIOLATION_SUMMARIES, new FieldMetaData("violationSummaries", TFieldRequirementType.DEFAULT,

-        new ListMetaData(TType.LIST, 
-            new StructMetaData(TType.STRUCT, org.apache.accumulo.core.data.thrift.TConstraintViolationSummary.class))));
+    java.util.Map<_Fields,FieldMetaData> tmpMap = new java.util.EnumMap<_Fields,FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.VIOLATION_SUMMARIES, new FieldMetaData("violationSummaries", TFieldRequirementType.DEFAULT,
new ListMetaData(TType.LIST,
+        new StructMetaData(TType.STRUCT, org.apache.accumulo.core.data.thrift.TConstraintViolationSummary.class))));
     metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
     FieldMetaData.addStructMetaDataMap(ConstraintViolationException.class, metaDataMap);
   }
-
-  public ConstraintViolationException() {
-  }
-
-  public ConstraintViolationException(
-    java.util.List<org.apache.accumulo.core.data.thrift.TConstraintViolationSummary>
violationSummaries)
-  {
+  
+  public ConstraintViolationException() {}
+  
+  public ConstraintViolationException(java.util.List<org.apache.accumulo.core.data.thrift.TConstraintViolationSummary>
violationSummaries) {
     this();
     this.violationSummaries = violationSummaries;
   }
-
+  
   /**
    * Performs a deep copy on <i>other</i>.
    */
@@ -111,112 +106,112 @@ public class ConstraintViolationExceptio
       this.violationSummaries = __this__violationSummaries;
     }
   }
-
+  
   public ConstraintViolationException deepCopy() {
     return new ConstraintViolationException(this);
   }
-
+  
   @Deprecated
   public ConstraintViolationException clone() {
     return new ConstraintViolationException(this);
   }
-
+  
   public int getViolationSummariesSize() {
     return (this.violationSummaries == null) ? 0 : this.violationSummaries.size();
   }
-
+  
   public java.util.Iterator<org.apache.accumulo.core.data.thrift.TConstraintViolationSummary>
getViolationSummariesIterator() {
     return (this.violationSummaries == null) ? null : this.violationSummaries.iterator();
   }
-
+  
   public void addToViolationSummaries(org.apache.accumulo.core.data.thrift.TConstraintViolationSummary
elem) {
     if (this.violationSummaries == null) {
       this.violationSummaries = new java.util.ArrayList<org.apache.accumulo.core.data.thrift.TConstraintViolationSummary>();
     }
     this.violationSummaries.add(elem);
   }
-
+  
   public java.util.List<org.apache.accumulo.core.data.thrift.TConstraintViolationSummary>
getViolationSummaries() {
     return this.violationSummaries;
   }
-
+  
   public ConstraintViolationException setViolationSummaries(java.util.List<org.apache.accumulo.core.data.thrift.TConstraintViolationSummary>
violationSummaries) {
     this.violationSummaries = violationSummaries;
     return this;
   }
-
+  
   public void unsetViolationSummaries() {
     this.violationSummaries = null;
   }
-
+  
   /** Returns true if field violationSummaries is set (has been asigned a value) and false
otherwise */
   public boolean isSetViolationSummaries() {
     return this.violationSummaries != null;
   }
-
+  
   public void setViolationSummariesIsSet(boolean value) {
     if (!value) {
       this.violationSummaries = null;
     }
   }
-
+  
   @SuppressWarnings("unchecked")
   public void setFieldValue(_Fields field, Object value) {
     switch (field) {
-    case VIOLATION_SUMMARIES:
-      if (value == null) {
-        unsetViolationSummaries();
-      } else {
-        setViolationSummaries((java.util.List<org.apache.accumulo.core.data.thrift.TConstraintViolationSummary>)value);
-      }
-      break;
-
+      case VIOLATION_SUMMARIES:
+        if (value == null) {
+          unsetViolationSummaries();
+        } else {
+          setViolationSummaries((java.util.List<org.apache.accumulo.core.data.thrift.TConstraintViolationSummary>)
value);
+        }
+        break;
+    
     }
   }
-
+  
   public void setFieldValue(int fieldID, Object value) {
     setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
   }
-
+  
   public Object getFieldValue(_Fields field) {
     switch (field) {
-    case VIOLATION_SUMMARIES:
-      return getViolationSummaries();
-
+      case VIOLATION_SUMMARIES:
+        return getViolationSummaries();
+        
     }
     throw new IllegalStateException();
   }
-
+  
   public Object getFieldValue(int fieldId) {
     return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
   }
-
+  
   /** Returns true if field corresponding to fieldID is set (has been asigned a value) and
false otherwise */
   public boolean isSet(_Fields field) {
     switch (field) {
-    case VIOLATION_SUMMARIES:
-      return isSetViolationSummaries();
+      case VIOLATION_SUMMARIES:
+        return isSetViolationSummaries();
     }
     throw new IllegalStateException();
   }
-
+  
   public boolean isSet(int fieldID) {
     return isSet(_Fields.findByThriftIdOrThrow(fieldID));
   }
-
+  
   @Override
   public boolean equals(Object that) {
     if (that == null)
       return false;
     if (that instanceof ConstraintViolationException)
-      return this.equals((ConstraintViolationException)that);
+      return this.equals((ConstraintViolationException) that);
     return false;
   }
-
+  
   public boolean equals(ConstraintViolationException that) {
     if (that == null)
       return false;
-
+    
     boolean this_present_violationSummaries = true && this.isSetViolationSummaries();
     boolean that_present_violationSummaries = true && that.isSetViolationSummaries();
     if (this_present_violationSummaries || that_present_violationSummaries) {
@@ -225,42 +220,42 @@ public class ConstraintViolationExceptio
       if (!this.violationSummaries.equals(that.violationSummaries))
         return false;
     }
-
+    
     return true;
   }
-
+  
   @Override
   public int hashCode() {
     return 0;
   }
-
+  
   public int compareTo(ConstraintViolationException other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
-
+    
     int lastComparison = 0;
-    ConstraintViolationException typedOther = (ConstraintViolationException)other;
-
+    ConstraintViolationException typedOther = (ConstraintViolationException) other;
+    
     lastComparison = Boolean.valueOf(isSetViolationSummaries()).compareTo(typedOther.isSetViolationSummaries());
     if (lastComparison != 0) {
       return lastComparison;
     }
-    if (isSetViolationSummaries()) {      lastComparison = TBaseHelper.compareTo(this.violationSummaries,
typedOther.violationSummaries);
+    if (isSetViolationSummaries()) {
+      lastComparison = TBaseHelper.compareTo(this.violationSummaries, typedOther.violationSummaries);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
     return 0;
   }
-
+  
   public void read(TProtocol iprot) throws TException {
     TField field;
     iprot.readStructBegin();
-    while (true)
-    {
+    while (true) {
       field = iprot.readFieldBegin();
-      if (field.type == TType.STOP) { 
+      if (field.type == TType.STOP) {
         break;
       }
       switch (field.id) {
@@ -269,8 +264,7 @@ public class ConstraintViolationExceptio
             {
               TList _list0 = iprot.readListBegin();
               this.violationSummaries = new java.util.ArrayList<org.apache.accumulo.core.data.thrift.TConstraintViolationSummary>(_list0.size);
-              for (int _i1 = 0; _i1 < _list0.size; ++_i1)
-              {
+              for (int _i1 = 0; _i1 < _list0.size; ++_i1) {
                 org.apache.accumulo.core.data.thrift.TConstraintViolationSummary _elem2;
                 _elem2 = new org.apache.accumulo.core.data.thrift.TConstraintViolationSummary();
                 _elem2.read(iprot);
@@ -278,7 +272,7 @@ public class ConstraintViolationExceptio
               }
               iprot.readListEnd();
             }
-          } else { 
+          } else {
             TProtocolUtil.skip(iprot, field.type);
           }
           break;
@@ -288,21 +282,20 @@ public class ConstraintViolationExceptio
       iprot.readFieldEnd();
     }
     iprot.readStructEnd();
-
+    
     // check for required fields of primitive type, which can't be checked in the validate
method
     validate();
   }
-
+  
   public void write(TProtocol oprot) throws TException {
     validate();
-
+    
     oprot.writeStructBegin(STRUCT_DESC);
     if (this.violationSummaries != null) {
       oprot.writeFieldBegin(VIOLATION_SUMMARIES_FIELD_DESC);
       {
         oprot.writeListBegin(new TList(TType.STRUCT, this.violationSummaries.size()));
-        for (org.apache.accumulo.core.data.thrift.TConstraintViolationSummary _iter3 : this.violationSummaries)
-        {
+        for (org.apache.accumulo.core.data.thrift.TConstraintViolationSummary _iter3 : this.violationSummaries)
{
           _iter3.write(oprot);
         }
         oprot.writeListEnd();
@@ -312,7 +305,7 @@ public class ConstraintViolationExceptio
     oprot.writeFieldStop();
     oprot.writeStructEnd();
   }
-
+  
   @Override
   public String toString() {
     StringBuilder sb = new StringBuilder("ConstraintViolationException(");
@@ -325,10 +318,9 @@ public class ConstraintViolationExceptio
     sb.append(")");
     return sb.toString();
   }
-
+  
   public void validate() throws TException {
     // check for required fields
   }
-
+  
 }
-

Modified: incubator/accumulo/branches/1.3/src/core/src/main/java/org/apache/accumulo/core/tabletserver/thrift/LogFile.java
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.3/src/core/src/main/java/org/apache/accumulo/core/tabletserver/thrift/LogFile.java?rev=1189806&r1=1189805&r2=1189806&view=diff
==============================================================================
--- incubator/accumulo/branches/1.3/src/core/src/main/java/org/apache/accumulo/core/tabletserver/thrift/LogFile.java
(original)
+++ incubator/accumulo/branches/1.3/src/core/src/main/java/org/apache/accumulo/core/tabletserver/thrift/LogFile.java
Thu Oct 27 15:24:51 2011
@@ -5,40 +5,37 @@
  */
 package org.apache.accumulo.core.tabletserver.thrift;
 
-
-
 import org.apache.thrift.*;
 import org.apache.thrift.meta_data.*;
 import org.apache.thrift.protocol.*;
 
 @SuppressWarnings("serial")
-public class LogFile implements TBase<LogFile, LogFile._Fields>, java.io.Serializable,
Cloneable {
+public class LogFile implements TBase<LogFile,LogFile._Fields>, java.io.Serializable,
Cloneable {
   private static final TStruct STRUCT_DESC = new TStruct("LogFile");
-
-  private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1);
-  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)2);
-
+  
+  private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)
1);
+  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short) 2);
+  
   public String name;
   public long id;
-
+  
   /** The set of fields this struct contains, along with convenience methods for finding
and manipulating them. */
   public enum _Fields implements TFieldIdEnum {
-    NAME((short)1, "name"),
-    ID((short)2, "id");
-
-    private static final java.util.Map<String, _Fields> byName = new java.util.HashMap<String,
_Fields>();
-
+    NAME((short) 1, "name"), ID((short) 2, "id");
+    
+    private static final java.util.Map<String,_Fields> byName = new java.util.HashMap<String,_Fields>();
+    
     static {
       for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
         byName.put(field.getFieldName(), field);
       }
     }
-
+    
     /**
      * Find the _Fields constant that matches fieldId, or null if its not found.
      */
     public static _Fields findByThriftId(int fieldId) {
-      switch(fieldId) {
+      switch (fieldId) {
         case 1: // NAME
           return NAME;
         case 2: // ID
@@ -47,69 +44,63 @@ public class LogFile implements TBase<Lo
           return null;
       }
     }
-
+    
     /**
-     * Find the _Fields constant that matches fieldId, throwing an exception
-     * if it is not found.
+     * Find the _Fields constant that matches fieldId, throwing an exception if it is not
found.
      */
     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 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) {
       return byName.get(name);
     }
-
+    
     private final short _thriftId;
     private final String _fieldName;
-
+    
     _Fields(short thriftId, String fieldName) {
       _thriftId = thriftId;
       _fieldName = fieldName;
     }
-
+    
     public short getThriftFieldId() {
       return _thriftId;
     }
-
+    
     public String getFieldName() {
       return _fieldName;
     }
   }
-
+  
   // isset id assignments
   private static final int __ID_ISSET_ID = 0;
   private java.util.BitSet __isset_bit_vector = new java.util.BitSet(1);
-
-  public static final java.util.Map<_Fields, FieldMetaData> metaDataMap;
+  
+  public static final java.util.Map<_Fields,FieldMetaData> metaDataMap;
   static {
-    java.util.Map<_Fields, FieldMetaData> tmpMap = new java.util.EnumMap<_Fields,
FieldMetaData>(_Fields.class);
-    tmpMap.put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
-        new FieldValueMetaData(TType.STRING)));
-    tmpMap.put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-        new FieldValueMetaData(TType.I64        , "LogID")));
+    java.util.Map<_Fields,FieldMetaData> tmpMap = new java.util.EnumMap<_Fields,FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, new
FieldValueMetaData(TType.STRING)));
+    tmpMap.put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.I64,
"LogID")));
     metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
     FieldMetaData.addStructMetaDataMap(LogFile.class, metaDataMap);
   }
-
-  public LogFile() {
-  }
-
-  public LogFile(
-    String name,
-    long id)
-  {
+  
+  public LogFile() {}
+  
+  public LogFile(String name, long id) {
     this();
     this.name = name;
     this.id = id;
     setIdIsSet(true);
   }
-
+  
   /**
    * Performs a deep copy on <i>other</i>.
    */
@@ -121,132 +112,132 @@ public class LogFile implements TBase<Lo
     }
     this.id = other.id;
   }
-
+  
   public LogFile deepCopy() {
     return new LogFile(this);
   }
-
+  
   @Deprecated
   public LogFile clone() {
     return new LogFile(this);
   }
-
+  
   public String getName() {
     return this.name;
   }
-
+  
   public LogFile setName(String name) {
     this.name = name;
     return this;
   }
-
+  
   public void unsetName() {
     this.name = null;
   }
-
+  
   /** Returns true if field name is set (has been asigned a value) and false otherwise */
   public boolean isSetName() {
     return this.name != null;
   }
-
+  
   public void setNameIsSet(boolean value) {
     if (!value) {
       this.name = null;
     }
   }
-
+  
   public long getId() {
     return this.id;
   }
-
+  
   public LogFile setId(long id) {
     this.id = id;
     setIdIsSet(true);
     return this;
   }
-
+  
   public void unsetId() {
     __isset_bit_vector.clear(__ID_ISSET_ID);
   }
-
+  
   /** Returns true if field id is set (has been asigned a value) and false otherwise */
   public boolean isSetId() {
     return __isset_bit_vector.get(__ID_ISSET_ID);
   }
-
+  
   public void setIdIsSet(boolean value) {
     __isset_bit_vector.set(__ID_ISSET_ID, value);
   }
-
+  
   public void setFieldValue(_Fields field, Object value) {
     switch (field) {
-    case NAME:
-      if (value == null) {
-        unsetName();
-      } else {
-        setName((String)value);
-      }
-      break;
-
-    case ID:
-      if (value == null) {
-        unsetId();
-      } else {
-        setId((Long)value);
-      }
-      break;
-
+      case NAME:
+        if (value == null) {
+          unsetName();
+        } else {
+          setName((String) value);
+        }
+        break;
+      
+      case ID:
+        if (value == null) {
+          unsetId();
+        } else {
+          setId((Long) value);
+        }
+        break;
+    
     }
   }
-
+  
   public void setFieldValue(int fieldID, Object value) {
     setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
   }
-
+  
   public Object getFieldValue(_Fields field) {
     switch (field) {
-    case NAME:
-      return getName();
-
-    case ID:
-      return new Long(getId());
-
+      case NAME:
+        return getName();
+        
+      case ID:
+        return new Long(getId());
+        
     }
     throw new IllegalStateException();
   }
-
+  
   public Object getFieldValue(int fieldId) {
     return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
   }
-
+  
   /** Returns true if field corresponding to fieldID is set (has been asigned a value) and
false otherwise */
   public boolean isSet(_Fields field) {
     switch (field) {
-    case NAME:
-      return isSetName();
-    case ID:
-      return isSetId();
+      case NAME:
+        return isSetName();
+      case ID:
+        return isSetId();
     }
     throw new IllegalStateException();
   }
-
+  
   public boolean isSet(int fieldID) {
     return isSet(_Fields.findByThriftIdOrThrow(fieldID));
   }
-
+  
   @Override
   public boolean equals(Object that) {
     if (that == null)
       return false;
     if (that instanceof LogFile)
-      return this.equals((LogFile)that);
+      return this.equals((LogFile) that);
     return false;
   }
-
+  
   public boolean equals(LogFile that) {
     if (that == null)
       return false;
-
+    
     boolean this_present_name = true && this.isSetName();
     boolean that_present_name = true && that.isSetName();
     if (this_present_name || that_present_name) {
@@ -255,7 +246,7 @@ public class LogFile implements TBase<Lo
       if (!this.name.equals(that.name))
         return false;
     }
-
+    
     boolean this_present_id = true;
     boolean that_present_id = true;
     if (this_present_id || that_present_id) {
@@ -264,28 +255,29 @@ public class LogFile implements TBase<Lo
       if (this.id != that.id)
         return false;
     }
-
+    
     return true;
   }
-
+  
   @Override
   public int hashCode() {
     return 0;
   }
-
+  
   public int compareTo(LogFile other) {
     if (!getClass().equals(other.getClass())) {
       return getClass().getName().compareTo(other.getClass().getName());
     }
-
+    
     int lastComparison = 0;
-    LogFile typedOther = (LogFile)other;
-
+    LogFile typedOther = (LogFile) other;
+    
     lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
     if (lastComparison != 0) {
       return lastComparison;
     }
-    if (isSetName()) {      lastComparison = TBaseHelper.compareTo(this.name, typedOther.name);
+    if (isSetName()) {
+      lastComparison = TBaseHelper.compareTo(this.name, typedOther.name);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -294,28 +286,28 @@ public class LogFile implements TBase<Lo
     if (lastComparison != 0) {
       return lastComparison;
     }
-    if (isSetId()) {      lastComparison = TBaseHelper.compareTo(this.id, typedOther.id);
+    if (isSetId()) {
+      lastComparison = TBaseHelper.compareTo(this.id, typedOther.id);
       if (lastComparison != 0) {
         return lastComparison;
       }
     }
     return 0;
   }
-
+  
   public void read(TProtocol iprot) throws TException {
     TField field;
     iprot.readStructBegin();
-    while (true)
-    {
+    while (true) {
       field = iprot.readFieldBegin();
-      if (field.type == TType.STOP) { 
+      if (field.type == TType.STOP) {
         break;
       }
       switch (field.id) {
         case 1: // NAME
           if (field.type == TType.STRING) {
             this.name = iprot.readString();
-          } else { 
+          } else {
             TProtocolUtil.skip(iprot, field.type);
           }
           break;
@@ -323,7 +315,7 @@ public class LogFile implements TBase<Lo
           if (field.type == TType.I64) {
             this.id = iprot.readI64();
             setIdIsSet(true);
-          } else { 
+          } else {
             TProtocolUtil.skip(iprot, field.type);
           }
           break;
@@ -333,14 +325,14 @@ public class LogFile implements TBase<Lo
       iprot.readFieldEnd();
     }
     iprot.readStructEnd();
-
+    
     // check for required fields of primitive type, which can't be checked in the validate
method
     validate();
   }
-
+  
   public void write(TProtocol oprot) throws TException {
     validate();
-
+    
     oprot.writeStructBegin(STRUCT_DESC);
     if (this.name != null) {
       oprot.writeFieldBegin(NAME_FIELD_DESC);
@@ -353,7 +345,7 @@ public class LogFile implements TBase<Lo
     oprot.writeFieldStop();
     oprot.writeStructEnd();
   }
-
+  
   @Override
   public String toString() {
     StringBuilder sb = new StringBuilder("LogFile(");
@@ -369,10 +361,9 @@ public class LogFile implements TBase<Lo
     sb.append(")");
     return sb.toString();
   }
-
+  
   public void validate() throws TException {
     // check for required fields
   }
-
+  
 }
-



Mime
View raw message