Class BlockLocation

java.lang.Object
io.trino.plugin.hive.fs.BlockLocation

public class BlockLocation extends Object
  • Constructor Details

    • BlockLocation

      public BlockLocation(FileEntry.Block block)
    • BlockLocation

      public BlockLocation(org.apache.hadoop.fs.BlockLocation blockLocation)
  • Method Details

    • fromHiveBlockLocations

      public static List<BlockLocation> fromHiveBlockLocations(@Nullable org.apache.hadoop.fs.BlockLocation[] blockLocations)
    • getHosts

      public List<String> getHosts()
    • getOffset

      public long getOffset()
    • getLength

      public long getLength()
    • getRetainedSizeInBytes

      public long getRetainedSizeInBytes()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object