Class DataUtil.InputStreamIterator<T>

    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator<T>
      • next

        public T next()
        Specified by:
        next in interface Iterator<T>
      • getNumSerializedBytes

        public long getNumSerializedBytes()
        Description copied from interface: DataUtil.IteratorWithNumBytes
        This method should be called after the actual data is taken out of iterator, since the existence of an iterator does not guarantee that data inside it is ready.
        Specified by:
        getNumSerializedBytes in interface DataUtil.IteratorWithNumBytes<T>
        Returns:
        the number of bytes in serialized form (which is, for example, encoded and compressed)
      • getNumEncodedBytes

        public long getNumEncodedBytes()
        Description copied from interface: DataUtil.IteratorWithNumBytes
        This method should be called after the actual data is taken out of iterator, since the existence of an iterator does not guarantee that data inside it is ready.
        Specified by:
        getNumEncodedBytes in interface DataUtil.IteratorWithNumBytes<T>
        Returns:
        the number of bytes in encoded form (which is ready to be decoded)