org.apache.lens.cube.metadata
Class JoinChain

java.lang.Object
  extended by org.apache.lens.cube.metadata.JoinChain
All Implemented Interfaces:
Named

public class JoinChain
extends Object
implements Named


Nested Class Summary
static class JoinChain.Edge
           
static class JoinChain.Path
           
 
Constructor Summary
JoinChain(AbstractCubeTable table, String name)
          This is used only for serializing
JoinChain(JoinChain other)
          Copy constructor for JoinChain
JoinChain(String name, String display, String description)
          Construct join chain
 
Method Summary
 void addPath(List<TableReference> refs)
           
 void addProperties(AbstractCubeTable tbl)
           
 void addProperties(Cube cube)
           
 void addProperties(Dimension dimension)
           
 String getDestTable()
          Get final destination table
 Set<String> getIntermediateDimensions()
          Get all dimensions involved in paths, except destination table
 List<SchemaGraph.JoinPath> getRelationEdges(CubeMetastoreClient client)
          Convert join paths to schemaGraph's JoinPath
 Set<String> getSourceColumns()
          Get all source columns from cube
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.lens.cube.metadata.Named
getName
 

Constructor Detail

JoinChain

public JoinChain(String name,
                 String display,
                 String description)
Construct join chain

Parameters:
name -
display -
description -

JoinChain

public JoinChain(AbstractCubeTable table,
                 String name)
This is used only for serializing

Parameters:
table -
name -

JoinChain

public JoinChain(JoinChain other)
Copy constructor for JoinChain

Parameters:
other - JoinChain
Method Detail

addProperties

public void addProperties(AbstractCubeTable tbl)

addProperties

public void addProperties(Cube cube)

addProperties

public void addProperties(Dimension dimension)

addPath

public void addPath(List<TableReference> refs)

getDestTable

public String getDestTable()
Get final destination table

Returns:

getSourceColumns

public Set<String> getSourceColumns()
Get all source columns from cube

Returns:

getIntermediateDimensions

public Set<String> getIntermediateDimensions()
Get all dimensions involved in paths, except destination table

Returns:

getRelationEdges

public List<SchemaGraph.JoinPath> getRelationEdges(CubeMetastoreClient client)
                                            throws org.apache.hadoop.hive.ql.metadata.HiveException
Convert join paths to schemaGraph's JoinPath

Parameters:
client -
Returns:
List
Throws:
org.apache.hadoop.hive.ql.metadata.HiveException


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.