protected abstract class ObjectUnderFileSystem.OperationBuffer<T> extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
ObjectUnderFileSystem.OperationBuffer.OperationThread
Thread class to operate on a batch of objects.
|
Modifier and Type | Field and Description |
---|---|
protected int |
mEntriesAdded
Total number of inputs to be operated on across batches.
|
Modifier | Constructor and Description |
---|---|
protected |
OperationBuffer()
Construct a new
ObjectUnderFileSystem.OperationBuffer instance. |
Modifier and Type | Method and Description |
---|---|
void |
add(T input)
Add a new input to be operated on.
|
protected abstract int |
getBatchSize()
Get the batch size.
|
List<T> |
getResult()
Get the combined result from all batches.
|
protected abstract List<T> |
operate(List<T> paths)
Operate on a list of input type
T . |
protected int mEntriesAdded
protected OperationBuffer()
ObjectUnderFileSystem.OperationBuffer
instance.protected abstract int getBatchSize()
protected abstract List<T> operate(List<T> paths) throws IOException
T
.paths
- the list of input type T
to operate onIOException
public void add(T input) throws IOException
input
- the input to operate onIOException
- if a non-Alluxio error occurspublic List<T> getResult() throws IOException
IOException
- if a non-Alluxio error occursCopyright © 2023. All Rights Reserved.