public abstract class BatchResult extends Object
BatchResult represents abstract class for BatchResults. It contains common data structure of batch result:
| Modifier and Type | Field and Description |
|---|---|
protected long[] |
completed |
protected String |
error |
protected boolean |
success |
| Constructor and Description |
|---|
BatchResult() |
| Modifier and Type | Method and Description |
|---|---|
long[] |
getCompleted()
Gets completed item id's.
|
String |
getError()
Gets error message.
|
boolean |
isSuccess()
Gets success value.
|
protected Long[] |
toLongArray(long[] primitiveArray)
Converts primitive array of strings to Long array.
|
protected static long[] |
toLongPrimitiveArray(Long[] wrapperArray)
Converts Long array to primitive array of long.
|
protected long[] completed
protected String error
protected boolean success
public long[] getCompleted()
public String getError()
public boolean isSuccess()
protected Long[] toLongArray(long[] primitiveArray)
primitiveArray - primitive long array.protected static long[] toLongPrimitiveArray(Long[] wrapperArray)
wrapperArray - Long array.Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.