Class HiveLayout

  • All Implemented Interfaces:
    Layout

    public class HiveLayout
    extends java.lang.Object
    implements Layout
    Hive layout implementation.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  HiveLayout.HiveLayoutFactory
      Factory to create layout implementation.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String TYPE  
    • Constructor Summary

      Constructors 
      Constructor Description
      HiveLayout​(alluxio.grpc.table.layout.hive.PartitionInfo partitionInfo, java.util.List<alluxio.grpc.table.ColumnStatisticsInfo> stats)
      Creates an instance.
    • Constructor Detail

      • HiveLayout

        public HiveLayout​(alluxio.grpc.table.layout.hive.PartitionInfo partitionInfo,
                          java.util.List<alluxio.grpc.table.ColumnStatisticsInfo> stats)
        Creates an instance.
        Parameters:
        partitionInfo - the partition info
        stats - column statistics
    • Method Detail

      • getType

        public java.lang.String getType()
        Specified by:
        getType in interface Layout
        Returns:
        the type of table/partition layout
      • getSpec

        public java.lang.String getSpec()
        Specified by:
        getSpec in interface Layout
        Returns:
        the layout specification
      • getData

        public alluxio.grpc.table.layout.hive.PartitionInfo getData()
        Specified by:
        getData in interface Layout
        Returns:
        a proto representing the data for this table/partition layout
      • getLocation

        public alluxio.AlluxioURI getLocation()
        Specified by:
        getLocation in interface Layout
        Returns:
        the location of the layout
      • getColumnStatsData

        public java.util.Map<java.lang.String,​alluxio.grpc.table.ColumnStatisticsInfo> getColumnStatsData()
        Specified by:
        getColumnStatsData in interface Layout
        Returns:
        a map of proto representing the statistics data for this partition
      • equals

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

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