T
- input type for operation@ThreadSafe protected abstract class ObjectUnderFileSystem.OperationBuffer<T> extends Object
getResult()
method blocks add(Object)
method.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)
Adds a new input to be operated on.
|
protected abstract int |
getBatchSize()
Gets the batch size.
|
List<T> |
getResult()
Gets 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.