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

org.apache.lens.cli.commands
Class LensDimensionTableCommands

java.lang.Object
  extended by org.apache.lens.cli.commands.BaseLensCommand
      extended by org.apache.lens.cli.commands.LensDimensionTableCommands
All Implemented Interfaces:
org.springframework.shell.core.CommandMarker

@Component
public class LensDimensionTableCommands
extends BaseLensCommand
implements org.springframework.shell.core.CommandMarker

The Class LensDimensionTableCommands.


Field Summary
 
Fields inherited from class org.apache.lens.cli.commands.BaseLensCommand
LOG
 
Constructor Summary
LensDimensionTableCommands()
           
 
Method Summary
 String addNewDimStorage(String tablepair)
          Adds the new dim storage.
 String addPartitionToFact(String specPair)
          Adds the partition to fact.
 String createDimensionTable(String dimSpec)
          Creates the dimension table.
 String describeDimensionTable(String dim)
          Describe dimension table.
 String dropAllDimStorages(String table)
          Drop all dim storages.
 String dropAllPartitionsOfDim(String specPair)
          Drop all partitions of dim.
 String dropDimensionTable(String dim, boolean cascade)
          Drop dimension table.
 String dropStorageFromDim(String tablepair)
          Drop storage from dim.
 String getAllPartitionsOfDim(String specPair)
          Gets the all partitions of dim.
 String getDimStorages(String dim)
          Gets the dim storages.
 String getStorageFromDim(String tablepair)
          Gets the storage from dim.
 String showDimensionTables()
          Show dimension tables.
 String updateDimensionTable(String specPair)
          Update dimension table.
 
Methods inherited from class org.apache.lens.cli.commands.BaseLensCommand
formatJson, getClient, getClientWrapper, setClient
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LensDimensionTableCommands

public LensDimensionTableCommands()
Method Detail

showDimensionTables

public String showDimensionTables()
Show dimension tables.

Returns:
the string

createDimensionTable

public String createDimensionTable(String dimSpec)
Creates the dimension table.

Parameters:
dimSpec - Path to dim spec
Returns:
the string

dropDimensionTable

public String dropDimensionTable(String dim,
                                 boolean cascade)
Drop dimension table.

Parameters:
dim - the dim
cascade - the cascade
Returns:
the string

updateDimensionTable

public String updateDimensionTable(String specPair)
Update dimension table.

Parameters:
specPair - the spec pair
Returns:
the string

describeDimensionTable

public String describeDimensionTable(String dim)
Describe dimension table.

Parameters:
dim - the dim
Returns:
the string

getDimStorages

public String getDimStorages(String dim)
Gets the dim storages.

Parameters:
dim - the dim
Returns:
the dim storages

dropAllDimStorages

public String dropAllDimStorages(String table)
Drop all dim storages.

Parameters:
table - the table
Returns:
the string

addNewDimStorage

public String addNewDimStorage(String tablepair)
Adds the new dim storage.

Parameters:
tablepair - the tablepair
Returns:
the string

dropStorageFromDim

public String dropStorageFromDim(String tablepair)
Drop storage from dim.

Parameters:
tablepair - the tablepair
Returns:
the string

getStorageFromDim

public String getStorageFromDim(String tablepair)
Gets the storage from dim.

Parameters:
tablepair - the tablepair
Returns:
the storage from dim

getAllPartitionsOfDim

public String getAllPartitionsOfDim(String specPair)
Gets the all partitions of dim.

Parameters:
specPair - the spec pair
Returns:
the all partitions of dim

dropAllPartitionsOfDim

public String dropAllPartitionsOfDim(String specPair)
Drop all partitions of dim.

Parameters:
specPair - the spec pair
Returns:
the string

addPartitionToFact

public String addPartitionToFact(String specPair)
Adds the partition to fact.

Parameters:
specPair - the spec pair
Returns:
the string


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