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 Map<String,String> getLatestPartSpec(Map<String,String> partSpec, String partCol)
          Get the partition spec for latest partition
static List<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

getPartitionsForLatest

public static List<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.