This project has retired. For details please refer to its Attic page.
CandidateDim (Lens 2.1.0-beta-incubating API)

org.apache.lens.cube.parse
Class CandidateDim

java.lang.Object
  extended by org.apache.lens.cube.parse.CandidateDim
All Implemented Interfaces:
CandidateTable

public class CandidateDim
extends Object
implements CandidateTable

Holds context of a candidate dim table.


Method Summary
 boolean equals(Object obj)
           
 Dimension getBaseTable()
          Get base table of the candidate table
 Collection<String> getColumns()
          Get columns of candidate table
 String getName()
          Get name of the candidate table
 Set<String> getPartsQueried()
          Get partitions queried
 String getStorageString(String alias)
          Get storage string of the base table alias passed
 Set<String> getStorageTables()
          Get storage tables corresponding to this candidate
 CubeDimensionTable getTable()
          Get candidate table
 int hashCode()
           
 boolean isWhereClauseAdded()
           
 void setWhereClauseAdded()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

isWhereClauseAdded

public boolean isWhereClauseAdded()

setWhereClauseAdded

public void setWhereClauseAdded()

toString

public String toString()
Overrides:
toString in class Object

getStorageString

public String getStorageString(String alias)
Description copied from interface: CandidateTable
Get storage string of the base table alias passed

Specified by:
getStorageString in interface CandidateTable
Returns:
storage string

getBaseTable

public Dimension getBaseTable()
Description copied from interface: CandidateTable
Get base table of the candidate table

Specified by:
getBaseTable in interface CandidateTable
Returns:
Cube or DerivedCube or Dimesions

getTable

public CubeDimensionTable getTable()
Description copied from interface: CandidateTable
Get candidate table

Specified by:
getTable in interface CandidateTable
Returns:
Candidate fact or dim table

getName

public String getName()
Description copied from interface: CandidateTable
Get name of the candidate table

Specified by:
getName in interface CandidateTable
Returns:
name

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getColumns

public Collection<String> getColumns()
Description copied from interface: CandidateTable
Get columns of candidate table

Specified by:
getColumns in interface CandidateTable
Returns:
set or list of columns

getStorageTables

public Set<String> getStorageTables()
Description copied from interface: CandidateTable
Get storage tables corresponding to this candidate

Specified by:
getStorageTables in interface CandidateTable
Returns:

getPartsQueried

public Set<String> getPartsQueried()
Description copied from interface: CandidateTable
Get partitions queried

Specified by:
getPartsQueried in interface CandidateTable


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