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

org.apache.lens.cli.commands
Class LensFactCommands

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

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

The Class LensFactCommands.


Field Summary
 
Fields inherited from class org.apache.lens.cli.commands.BaseLensCommand
LOG
 
Constructor Summary
LensFactCommands()
           
 
Method Summary
 String addNewFactStorage(String tablepair)
          Adds the new fact storage.
 String addPartitionToFact(String specPair)
          Adds the partition to fact.
 String createFact(String factSpecFileName)
          Creates the fact.
 String describeFactTable(String fact)
          Describe fact table.
 String dropAllFactStorages(String table)
          Drop all fact storages.
 String dropAllPartitionsOfFact(String specPair)
          Drop all partitions of fact.
 String dropFact(String fact, boolean cascade)
          Drop fact.
 String dropStorageFromFact(String tablepair)
          Drop storage from fact.
 String getAllPartitionsOfFact(String specPair)
          Gets the all partitions of fact.
 String getFactStorages(String fact)
          Gets the fact storages.
 String getStorageFromFact(String tablepair)
          Gets the storage from fact.
 String showFacts()
          Show facts.
 String updateFactTable(String specPair)
          Update fact 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

LensFactCommands

public LensFactCommands()
Method Detail

showFacts

public String showFacts()
Show facts.

Returns:
the string

createFact

public String createFact(String factSpecFileName)
Creates the fact.

Parameters:
factSpecFileName - Path to fact spec
Returns:
the string

dropFact

public String dropFact(String fact,
                       boolean cascade)
Drop fact.

Parameters:
fact - the fact
cascade - the cascade
Returns:
the string

updateFactTable

public String updateFactTable(String specPair)
Update fact table.

Parameters:
specPair - the spec pair
Returns:
the string

describeFactTable

public String describeFactTable(String fact)
Describe fact table.

Parameters:
fact - the fact
Returns:
the string

getFactStorages

public String getFactStorages(String fact)
Gets the fact storages.

Parameters:
fact - the fact
Returns:
the fact storages

dropAllFactStorages

public String dropAllFactStorages(String table)
Drop all fact storages.

Parameters:
table - the table
Returns:
the string

addNewFactStorage

public String addNewFactStorage(String tablepair)
Adds the new fact storage.

Parameters:
tablepair - the tablepair
Returns:
the string

dropStorageFromFact

public String dropStorageFromFact(String tablepair)
Drop storage from fact.

Parameters:
tablepair - the tablepair
Returns:
the string

getStorageFromFact

public String getStorageFromFact(String tablepair)
Gets the storage from fact.

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

getAllPartitionsOfFact

public String getAllPartitionsOfFact(String specPair)
Gets the all partitions of fact.

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

dropAllPartitionsOfFact

public String dropAllPartitionsOfFact(String specPair)
Drop all partitions of fact.

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.