Class LazyFileReferenceData

    • Constructor Detail

      • LazyFileReferenceData

        public LazyFileReferenceData​(com.yahoo.config.FileReference fileReference,
                                     java.lang.String filename,
                                     FileReferenceData.Type type,
                                     java.io.File file)
                              throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • nextContent

        public int nextContent​(java.nio.ByteBuffer bb)
        Description copied from class: FileReferenceData
        Will provide the next part of the content.
        Specified by:
        nextContent in class FileReferenceData
        Parameters:
        bb - with some available space
        Returns:
        Number of bytes transferred.
      • xxhash

        public long xxhash()
        Description copied from class: FileReferenceData
        Only guaranteed to be valid after all content has been consumed.
        Specified by:
        xxhash in class FileReferenceData
        Returns:
        xx64hash of content