public class FailureCodeTracker
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
boolean |
insert |
Modifier | Constructor and Description |
---|---|
protected |
FailureCodeTracker() |
|
FailureCodeTracker(boolean insert) |
|
FailureCodeTracker(boolean insert,
java.io.DataInputStream dis) |
|
FailureCodeTracker(boolean isInsert,
SimpleFieldSet fs)
Create a FailureCodeTracker from a SimpleFieldSet.
|
Modifier and Type | Method and Description |
---|---|
FailureCodeTracker |
clone()
Copy the FailureCodeTracker.
|
int |
getErrorCount(FetchException.FetchExceptionMode mode)
Get number of errors of count mode
|
int |
getErrorCount(InsertException.InsertExceptionMode mode)
Get number of errors of count mode
|
int |
getErrorCount(int mode)
Get number of errors of count mode
|
int |
getFirstCode() |
FetchException.FetchExceptionMode |
getFirstCodeFetch() |
InsertException.InsertExceptionMode |
getFirstCodeInsert() |
static int |
getFixedLength(boolean insert)
Get the length of the fixed-size representation produced by writeFixedLengthTo().
|
java.lang.String |
getMessage(java.lang.Integer x) |
void |
inc(FetchException.FetchExceptionMode k) |
void |
inc(FetchException.FetchExceptionMode k,
int val) |
void |
inc(InsertException.InsertExceptionMode k) |
void |
inc(InsertException.InsertExceptionMode k,
int val) |
void |
inc(int k) |
void |
inc(java.lang.Integer k,
int val) |
boolean |
isDataFound() |
boolean |
isEmpty() |
boolean |
isFatal(boolean insert) |
boolean |
isOneCodeOnly() |
FailureCodeTracker |
merge(FailureCodeTracker source)
Merge codes from another tracker into this one.
|
void |
merge(FetchException e) |
void |
merge(InsertException e) |
SimpleFieldSet |
toFieldSet(boolean verbose)
Copy verbosely to a SimpleFieldSet
|
java.lang.String |
toString() |
int |
totalCount() |
java.lang.String |
toVerboseString() |
void |
writeFixedLengthTo(java.io.DataOutputStream dos)
Write a fixed-size representation to a DataOutputStream.
|
public FailureCodeTracker(boolean insert)
public FailureCodeTracker(boolean isInsert, SimpleFieldSet fs)
isInsert
- Whether this is an insert.fs
- The SimpleFieldSet containing the FieldSet (non-verbose) form of
the tracker.protected FailureCodeTracker()
public FailureCodeTracker(boolean insert, java.io.DataInputStream dis) throws java.io.IOException, StorageFormatException
java.io.IOException
StorageFormatException
public void inc(FetchException.FetchExceptionMode k)
public void inc(InsertException.InsertExceptionMode k)
public void inc(int k)
public void inc(FetchException.FetchExceptionMode k, int val)
public void inc(InsertException.InsertExceptionMode k, int val)
public void inc(java.lang.Integer k, int val)
public java.lang.String toVerboseString()
public java.lang.String getMessage(java.lang.Integer x)
public java.lang.String toString()
toString
in class java.lang.Object
public FailureCodeTracker merge(FailureCodeTracker source)
public void merge(FetchException e)
public int totalCount()
public SimpleFieldSet toFieldSet(boolean verbose)
public boolean isOneCodeOnly()
public FetchException.FetchExceptionMode getFirstCodeFetch()
public InsertException.InsertExceptionMode getFirstCodeInsert()
public int getFirstCode()
public boolean isFatal(boolean insert)
public void merge(InsertException e)
public boolean isEmpty()
public FailureCodeTracker clone()
clone
in class java.lang.Object
public boolean isDataFound()
public static int getFixedLength(boolean insert)
public void writeFixedLengthTo(java.io.DataOutputStream dos) throws java.io.IOException
java.io.IOException
public int getErrorCount(int mode)
public int getErrorCount(InsertException.InsertExceptionMode mode)
public int getErrorCount(FetchException.FetchExceptionMode mode)