public final class StorageConstants extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DATE_PARTITION_KEY |
static String |
LATEST_PARTITION_VALUE |
static String |
STORGAE_SEPARATOR |
Modifier and Type | Method and Description |
---|---|
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
|
public static final String DATE_PARTITION_KEY
public static final String STORGAE_SEPARATOR
public static final String LATEST_PARTITION_VALUE
public static String getLatestPartFilter(String partCol)
partCol
- column for latest specpublic static String getPartFilter(String partCol, String value, Map<String,String> parts)
public static String getLatestPartFilter(String partCol, Map<String,String> parts)
public static Set<String> getPartitionsForLatest()
public static Map<String,String> getLatestPartSpec(Map<String,String> partSpec, String partCol)
partSpec
- The latest partition specpartCol
- The partition column for latest specCopyright © 2014–2015 Apache Software Foundation. All rights reserved.