org.apache.hadoop.hive.ql.hooks
Class LineageInfo.DataContainer

java.lang.Object
  extended by org.apache.hadoop.hive.ql.hooks.LineageInfo.DataContainer
All Implemented Interfaces:
Serializable
Enclosing class:
LineageInfo

public static class LineageInfo.DataContainer
extends Object
implements Serializable

Table or Partition data container. We need this class because the output of the query can either go to a table or a partition within a table. The data container class subsumes both of these.

See Also:
Serialized Form

Constructor Summary
LineageInfo.DataContainer(org.apache.hadoop.hive.metastore.api.Table tab)
          Constructor for non partitioned tables.
LineageInfo.DataContainer(org.apache.hadoop.hive.metastore.api.Table tab, org.apache.hadoop.hive.metastore.api.Partition part)
          Constructor for a partitioned tables partition.
 
Method Summary
 org.apache.hadoop.hive.metastore.api.Partition getPartition()
           
 org.apache.hadoop.hive.metastore.api.Table getTable()
           
 boolean isPartition()
          Returns true in case this data container is a partition.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineageInfo.DataContainer

public LineageInfo.DataContainer(org.apache.hadoop.hive.metastore.api.Table tab)
Constructor for non partitioned tables.

Parameters:
tab - The associated table.

LineageInfo.DataContainer

public LineageInfo.DataContainer(org.apache.hadoop.hive.metastore.api.Table tab,
                                 org.apache.hadoop.hive.metastore.api.Partition part)
Constructor for a partitioned tables partition.

Parameters:
part - The associated partition.
Method Detail

isPartition

public boolean isPartition()
Returns true in case this data container is a partition.

Returns:
boolean TRUE if the container is a table partition.

getTable

public org.apache.hadoop.hive.metastore.api.Table getTable()

getPartition

public org.apache.hadoop.hive.metastore.api.Partition getPartition()


Copyright © 2014 The Apache Software Foundation. All rights reserved.