Class FileReferenceData

    • Constructor Detail

      • FileReferenceData

        public FileReferenceData​(com.yahoo.config.FileReference fileReference,
                                 String filename,
                                 FileReferenceData.Type type)
    • Method Detail

      • fileReference

        public com.yahoo.config.FileReference fileReference()
      • filename

        public String filename()
      • nextContent

        public abstract int nextContent​(ByteBuffer bb)
        Will provide the next part of the content.
        Parameters:
        bb - with some available space
        Returns:
        Number of bytes transferred.
      • xxhash

        public abstract long xxhash()
        Only guaranteed to be valid after all content has been consumed.
        Returns:
        xx64hash of content
      • size

        public abstract long size()
        The size of the content in bytes
        Returns:
        number of bytes
      • close

        public abstract void close()
        Close underlying files