Package alluxio.wire

Class FileBlockInfo

  • All Implemented Interfaces:
    java.io.Serializable

    @PublicApi
    @NotThreadSafe
    public final class FileBlockInfo
    extends java.lang.Object
    implements java.io.Serializable
    The file block information.
    See Also:
    Serialized Form
    • Constructor Detail

      • FileBlockInfo

        public FileBlockInfo()
        Creates a new instance of FileBlockInfo.
    • Method Detail

      • getBlockInfo

        public BlockInfo getBlockInfo()
        Returns:
        the block info
      • getOffset

        public long getOffset()
        Returns:
        the offset
      • getUfsLocations

        public java.util.List<java.lang.String> getUfsLocations()
        Returns:
        the UFS locations
      • setBlockInfo

        public FileBlockInfo setBlockInfo​(BlockInfo blockInfo)
        Parameters:
        blockInfo - the block info to use
        Returns:
        the file block information
      • setOffset

        public FileBlockInfo setOffset​(long offset)
        Parameters:
        offset - the offset to use
        Returns:
        the file block information
      • setUfsLocations

        public FileBlockInfo setUfsLocations​(java.util.List<java.lang.String> ufsLocations)
        Parameters:
        ufsLocations - the UFS locations to use
        Returns:
        the file block information
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object