public class DataNotSortedException extends DRException
Unchecked exception thrown to indicate that an input flow contains rows that are out of order.
Sort
,
Serialized FormConstructor and Description |
---|
DataNotSortedException(String prefix)
Constructs a
DataNotSortedException with the specified
message prefix. |
DataNotSortedException(String prefix,
TokenValued currentTV,
TokenValued previousTV,
int position)
Constructs a
DataNotSortedException . |
Modifier and Type | Method and Description |
---|---|
String |
getCurrent()
Gets a string representation of the current row's keys at the point in
the input flow where the incorrect row ordering was discovered.
|
TokenValued |
getCurrentTValue()
Return the token value where the sort order discrepancy occurred.
|
String |
getMessage()
Gets a message containing the prefix passed at construction time
and any additional information supplied by setter methods, such as
positional details on the specific field in a record (composite) type
|
int |
getPosition() |
String |
getPrevious()
Gets a string representation of the previous row's keys at the point in
the input flow where the incorrect row ordering was discovered.
|
TokenValued |
getPreviousTValue()
Return the previous token value before the sort order discrepancy
occurred.
|
long |
getRowNumber()
Returns the row number where the exception occurred, or -1 if not available.
|
DataNotSortedException |
setCurrent(String current)
Sets a string representation of the current row's keys at the point in
the input flow where incorrect row ordering was discovered.
|
DataNotSortedException |
setCurrentTValue(TokenValued currentTValue)
Internal use only: set the current token value where the sort
order discrepancy occurred.
|
DataNotSortedException |
setPosition(int position) |
DataNotSortedException |
setPrevious(String previous)
Sets a string representation of the previous row's keys at the point in
the input flow where incorrect row ordering was discovered.
|
DataNotSortedException |
setPreviousTValue(TokenValued previousTValue)
Internal use only: set the previous token value where the sort
order discrepancy occurred.
|
DataNotSortedException |
setRowNumber(long rowNumber)
Sets the row number where the exception occurred, or -1 if not available.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DataNotSortedException(String prefix)
DataNotSortedException
with the specified
message prefix. The out-of-order data values are not needed in the
prefix: they can be supplied by setCurrent(String)
and
setPrevious(String)
.prefix
- the error message about sort orderpublic DataNotSortedException(String prefix, TokenValued currentTV, TokenValued previousTV, int position)
DataNotSortedException
.prefix
- the error message about sort ordercurrentTV
- the current token valuepreviousTV
- the previous token valueposition
- the position of the current token valuepublic String getMessage()
getMessage
in class Throwable
public String getCurrent()
public DataNotSortedException setCurrent(String current)
current
- current row's key valuespublic String getPrevious()
public DataNotSortedException setPrevious(String previous)
previous
- previous row's key valuespublic int getPosition()
public DataNotSortedException setPosition(int position)
position
- the position to setpublic TokenValued getCurrentTValue()
public DataNotSortedException setCurrentTValue(TokenValued currentTValue)
currentTValue
- the currentTValue to setpublic TokenValued getPreviousTValue()
public DataNotSortedException setPreviousTValue(TokenValued previousTValue)
previousTValue
- the previousTValue to setpublic long getRowNumber()
public DataNotSortedException setRowNumber(long rowNumber)
rowNumber
- the row number where the exception occurred, or -1 if not available.Copyright © 2021 Actian Corporation. All rights reserved.