org.apache.accumulo.core.data.thrift
Class UpdateErrors
java.lang.Object
org.apache.accumulo.core.data.thrift.UpdateErrors
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable<UpdateErrors>, org.apache.thrift.TBase<UpdateErrors,UpdateErrors._Fields>
public class UpdateErrors
- extends Object
- implements org.apache.thrift.TBase<UpdateErrors,UpdateErrors._Fields>, Serializable, Cloneable, Comparable<UpdateErrors>
- See Also:
- Serialized Form
Nested Class Summary |
static class |
UpdateErrors._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them. |
failedExtents
public Map<TKeyExtent,Long> failedExtents
violationSummaries
public List<TConstraintViolationSummary> violationSummaries
authorizationFailures
public Map<TKeyExtent,SecurityErrorCode> authorizationFailures
metaDataMap
public static final Map<UpdateErrors._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
UpdateErrors
public UpdateErrors()
UpdateErrors
public UpdateErrors(Map<TKeyExtent,Long> failedExtents,
List<TConstraintViolationSummary> violationSummaries,
Map<TKeyExtent,SecurityErrorCode> authorizationFailures)
UpdateErrors
public UpdateErrors(UpdateErrors other)
- Performs a deep copy on other.
deepCopy
public UpdateErrors deepCopy()
- Specified by:
deepCopy
in interface org.apache.thrift.TBase<UpdateErrors,UpdateErrors._Fields>
clear
public void clear()
- Specified by:
clear
in interface org.apache.thrift.TBase<UpdateErrors,UpdateErrors._Fields>
getFailedExtentsSize
public int getFailedExtentsSize()
putToFailedExtents
public void putToFailedExtents(TKeyExtent key,
long val)
getFailedExtents
public Map<TKeyExtent,Long> getFailedExtents()
setFailedExtents
public UpdateErrors setFailedExtents(Map<TKeyExtent,Long> failedExtents)
unsetFailedExtents
public void unsetFailedExtents()
isSetFailedExtents
public boolean isSetFailedExtents()
- Returns true if field failedExtents is set (has been assigned a value) and false otherwise
setFailedExtentsIsSet
public void setFailedExtentsIsSet(boolean value)
getViolationSummariesSize
public int getViolationSummariesSize()
getViolationSummariesIterator
public Iterator<TConstraintViolationSummary> getViolationSummariesIterator()
addToViolationSummaries
public void addToViolationSummaries(TConstraintViolationSummary elem)
getViolationSummaries
public List<TConstraintViolationSummary> getViolationSummaries()
setViolationSummaries
public UpdateErrors setViolationSummaries(List<TConstraintViolationSummary> violationSummaries)
unsetViolationSummaries
public void unsetViolationSummaries()
isSetViolationSummaries
public boolean isSetViolationSummaries()
- Returns true if field violationSummaries is set (has been assigned a value) and false otherwise
setViolationSummariesIsSet
public void setViolationSummariesIsSet(boolean value)
getAuthorizationFailuresSize
public int getAuthorizationFailuresSize()
putToAuthorizationFailures
public void putToAuthorizationFailures(TKeyExtent key,
SecurityErrorCode val)
getAuthorizationFailures
public Map<TKeyExtent,SecurityErrorCode> getAuthorizationFailures()
setAuthorizationFailures
public UpdateErrors setAuthorizationFailures(Map<TKeyExtent,SecurityErrorCode> authorizationFailures)
unsetAuthorizationFailures
public void unsetAuthorizationFailures()
isSetAuthorizationFailures
public boolean isSetAuthorizationFailures()
- Returns true if field authorizationFailures is set (has been assigned a value) and false otherwise
setAuthorizationFailuresIsSet
public void setAuthorizationFailuresIsSet(boolean value)
setFieldValue
public void setFieldValue(UpdateErrors._Fields field,
Object value)
- Specified by:
setFieldValue
in interface org.apache.thrift.TBase<UpdateErrors,UpdateErrors._Fields>
getFieldValue
public Object getFieldValue(UpdateErrors._Fields field)
- Specified by:
getFieldValue
in interface org.apache.thrift.TBase<UpdateErrors,UpdateErrors._Fields>
isSet
public boolean isSet(UpdateErrors._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<UpdateErrors,UpdateErrors._Fields>
equals
public boolean equals(Object that)
- Overrides:
equals
in class Object
equals
public boolean equals(UpdateErrors that)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
compareTo
public int compareTo(UpdateErrors other)
- Specified by:
compareTo
in interface Comparable<UpdateErrors>
fieldForId
public UpdateErrors._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interface org.apache.thrift.TBase<UpdateErrors,UpdateErrors._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<UpdateErrors,UpdateErrors._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<UpdateErrors,UpdateErrors._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.