Class FileReferenceDataBlob

    • Constructor Detail

      • FileReferenceDataBlob

        public FileReferenceDataBlob​(com.yahoo.config.FileReference fileReference,
                                     java.lang.String filename,
                                     FileReferenceData.Type type,
                                     byte[] content)
      • FileReferenceDataBlob

        public FileReferenceDataBlob​(com.yahoo.config.FileReference fileReference,
                                     java.lang.String filename,
                                     FileReferenceData.Type type,
                                     byte[] content,
                                     long xxhash)
    • Method Detail

      • empty

        public static FileReferenceData empty​(com.yahoo.config.FileReference fileReference,
                                              java.lang.String filename)
      • 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