org.apache.accumulo.core.data.thrift
Class TConstraintViolationSummary

java.lang.Object
  extended by org.apache.accumulo.core.data.thrift.TConstraintViolationSummary
All Implemented Interfaces:
Serializable, Cloneable, Comparable<TConstraintViolationSummary>, org.apache.thrift.TBase<TConstraintViolationSummary,TConstraintViolationSummary._Fields>

public class TConstraintViolationSummary
extends Object
implements org.apache.thrift.TBase<TConstraintViolationSummary,TConstraintViolationSummary._Fields>, Serializable, Cloneable, Comparable<TConstraintViolationSummary>

See Also:
Serialized Form

Nested Class Summary
static class TConstraintViolationSummary._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 String constrainClass
           
static Map<TConstraintViolationSummary._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 long numberOfViolatingMutations
           
 short violationCode
           
 String violationDescription
           
 
Constructor Summary
TConstraintViolationSummary()
           
TConstraintViolationSummary(String constrainClass, short violationCode, String violationDescription, long numberOfViolatingMutations)
           
TConstraintViolationSummary(TConstraintViolationSummary other)
          Performs a deep copy on other.
 
Method Summary
 void clear()
           
 int compareTo(TConstraintViolationSummary other)
           
 TConstraintViolationSummary deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(TConstraintViolationSummary that)
           
 TConstraintViolationSummary._Fields fieldForId(int fieldId)
           
 String getConstrainClass()
           
 Object getFieldValue(TConstraintViolationSummary._Fields field)
           
 long getNumberOfViolatingMutations()
           
 short getViolationCode()
           
 String getViolationDescription()
           
 int hashCode()
           
 boolean isSet(TConstraintViolationSummary._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetConstrainClass()
          Returns true if field constrainClass is set (has been assigned a value) and false otherwise
 boolean isSetNumberOfViolatingMutations()
          Returns true if field numberOfViolatingMutations is set (has been assigned a value) and false otherwise
 boolean isSetViolationCode()
          Returns true if field violationCode is set (has been assigned a value) and false otherwise
 boolean isSetViolationDescription()
          Returns true if field violationDescription is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 TConstraintViolationSummary setConstrainClass(String constrainClass)
           
 void setConstrainClassIsSet(boolean value)
           
 void setFieldValue(TConstraintViolationSummary._Fields field, Object value)
           
 TConstraintViolationSummary setNumberOfViolatingMutations(long numberOfViolatingMutations)
           
 void setNumberOfViolatingMutationsIsSet(boolean value)
           
 TConstraintViolationSummary setViolationCode(short violationCode)
           
 void setViolationCodeIsSet(boolean value)
           
 TConstraintViolationSummary setViolationDescription(String violationDescription)
           
 void setViolationDescriptionIsSet(boolean value)
           
 String toString()
           
 void unsetConstrainClass()
           
 void unsetNumberOfViolatingMutations()
           
 void unsetViolationCode()
           
 void unsetViolationDescription()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

constrainClass

public String constrainClass

violationCode

public short violationCode

violationDescription

public String violationDescription

numberOfViolatingMutations

public long numberOfViolatingMutations

metaDataMap

public static final Map<TConstraintViolationSummary._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

TConstraintViolationSummary

public TConstraintViolationSummary()

TConstraintViolationSummary

public TConstraintViolationSummary(String constrainClass,
                                   short violationCode,
                                   String violationDescription,
                                   long numberOfViolatingMutations)

TConstraintViolationSummary

public TConstraintViolationSummary(TConstraintViolationSummary other)
Performs a deep copy on other.

Method Detail

deepCopy

public TConstraintViolationSummary deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<TConstraintViolationSummary,TConstraintViolationSummary._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<TConstraintViolationSummary,TConstraintViolationSummary._Fields>

getConstrainClass

public String getConstrainClass()

setConstrainClass

public TConstraintViolationSummary setConstrainClass(String constrainClass)

unsetConstrainClass

public void unsetConstrainClass()

isSetConstrainClass

public boolean isSetConstrainClass()
Returns true if field constrainClass is set (has been assigned a value) and false otherwise


setConstrainClassIsSet

public void setConstrainClassIsSet(boolean value)

getViolationCode

public short getViolationCode()

setViolationCode

public TConstraintViolationSummary setViolationCode(short violationCode)

unsetViolationCode

public void unsetViolationCode()

isSetViolationCode

public boolean isSetViolationCode()
Returns true if field violationCode is set (has been assigned a value) and false otherwise


setViolationCodeIsSet

public void setViolationCodeIsSet(boolean value)

getViolationDescription

public String getViolationDescription()

setViolationDescription

public TConstraintViolationSummary setViolationDescription(String violationDescription)

unsetViolationDescription

public void unsetViolationDescription()

isSetViolationDescription

public boolean isSetViolationDescription()
Returns true if field violationDescription is set (has been assigned a value) and false otherwise


setViolationDescriptionIsSet

public void setViolationDescriptionIsSet(boolean value)

getNumberOfViolatingMutations

public long getNumberOfViolatingMutations()

setNumberOfViolatingMutations

public TConstraintViolationSummary setNumberOfViolatingMutations(long numberOfViolatingMutations)

unsetNumberOfViolatingMutations

public void unsetNumberOfViolatingMutations()

isSetNumberOfViolatingMutations

public boolean isSetNumberOfViolatingMutations()
Returns true if field numberOfViolatingMutations is set (has been assigned a value) and false otherwise


setNumberOfViolatingMutationsIsSet

public void setNumberOfViolatingMutationsIsSet(boolean value)

setFieldValue

public void setFieldValue(TConstraintViolationSummary._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<TConstraintViolationSummary,TConstraintViolationSummary._Fields>

getFieldValue

public Object getFieldValue(TConstraintViolationSummary._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<TConstraintViolationSummary,TConstraintViolationSummary._Fields>

isSet

public boolean isSet(TConstraintViolationSummary._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<TConstraintViolationSummary,TConstraintViolationSummary._Fields>

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(TConstraintViolationSummary that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(TConstraintViolationSummary other)
Specified by:
compareTo in interface Comparable<TConstraintViolationSummary>

fieldForId

public TConstraintViolationSummary._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<TConstraintViolationSummary,TConstraintViolationSummary._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<TConstraintViolationSummary,TConstraintViolationSummary._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<TConstraintViolationSummary,TConstraintViolationSummary._Fields>
Throws:
org.apache.thrift.TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2015 Apache Accumulo Project. All rights reserved.