Class ObjectUnderFileSystem.OperationBuffer<T>

    • Field Detail

      • mEntriesAdded

        protected int mEntriesAdded
        Total number of inputs to be operated on across batches.
    • Method Detail

      • getBatchSize

        protected abstract int getBatchSize()
        Gets the batch size.
        Returns:
        a positive integer denoting the batch size
      • add

        public void add​(T input)
                 throws java.io.IOException
        Adds a new input to be operated on.
        Parameters:
        input - the input to operate on
        Throws:
        java.io.IOException - if a non-Alluxio error occurs
      • getResult

        public java.util.List<T> getResult()
                                    throws java.io.IOException
        Gets the combined result from all batches.
        Returns:
        a list of inputs for successful operations
        Throws:
        java.io.IOException - if a non-Alluxio error occurs