Class FileReferenceData

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  FileReferenceData.Type  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract void close()
      Close underlying files
      java.nio.ByteBuffer content()  
      java.lang.String filename()  
      com.yahoo.config.FileReference fileReference()  
      abstract int nextContent​(java.nio.ByteBuffer bb)
      Will provide the next part of the content.
      abstract long size()
      The size of the content in bytes
      FileReferenceData.Type type()  
      abstract long xxhash()
      Only guaranteed to be valid after all content has been consumed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileReferenceData

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

      • fileReference

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

        public java.lang.String filename()
      • content

        public java.nio.ByteBuffer content()
      • nextContent

        public abstract int nextContent​(java.nio.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