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

org.apache.lens.cube.metadata
Class StorageConstants

java.lang.Object
  extended by org.apache.lens.cube.metadata.StorageConstants

public final class StorageConstants
extends Object


Field Summary
static String DATE_PARTITION_KEY
           
static String LATEST_PARTITION_VALUE
           
static String STORGAE_SEPARATOR
           
 
Method Summary
static String getLatestPartFilter(String partCol)
          Get the partition spec for latest partition
static String getLatestPartFilter(String partCol, Map<String,String> parts)
           
static Map<String,String> getLatestPartSpec(Map<String,String> partSpec, String partCol)
          Get the partition spec for latest partition
static String getPartFilter(Map<String,String> parts)
           
static String getPartFilter(String partCol, String value)
           
static String getPartFilter(String partCol, String value, Map<String,String> parts)
           
static Set<String> getPartitionsForLatest()
          Get the latest partition value as List
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_PARTITION_KEY

public static final String DATE_PARTITION_KEY
See Also:
Constant Field Values

STORGAE_SEPARATOR

public static final String STORGAE_SEPARATOR
See Also:
Constant Field Values

LATEST_PARTITION_VALUE

public static final String LATEST_PARTITION_VALUE
See Also:
Constant Field Values
Method Detail

getLatestPartFilter

public static String getLatestPartFilter(String partCol)
Get the partition spec for latest partition

Parameters:
partCol - column for latest spec
Returns:
latest partition spec as Map from String to String

getPartFilter

public static String getPartFilter(String partCol,
                                   String value)

getPartFilter

public static String getPartFilter(Map<String,String> parts)

getPartFilter

public static String getPartFilter(String partCol,
                                   String value,
                                   Map<String,String> parts)

getLatestPartFilter

public static String getLatestPartFilter(String partCol,
                                         Map<String,String> parts)

getPartitionsForLatest

public static Set<String> getPartitionsForLatest()
Get the latest partition value as List

Returns:
List

getLatestPartSpec

public static Map<String,String> getLatestPartSpec(Map<String,String> partSpec,
                                                   String partCol)
Get the partition spec for latest partition

Parameters:
partSpec - The latest partition spec
partCol - The partition column for latest spec
Returns:
latest partition spec as Map from String to String


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