|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.server.metastore.JAXBUtils
public class JAXBUtils
Utilities for converting to and from JAXB types to hive.ql.metadata.cube types
Field Summary | |
---|---|
static org.apache.log4j.Logger |
LOG
|
Constructor Summary | |
---|---|
JAXBUtils()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.log4j.Logger LOG
Constructor Detail |
---|
public JAXBUtils()
Method Detail |
---|
public static CubeInterface hiveCubeFromXCube(XCube cube, Cube parent) throws org.apache.hadoop.hive.ql.parse.ParseException
cube
- JAXB Cube
Cube
org.apache.hadoop.hive.ql.parse.ParseException
public static XCube xCubeFromHiveCube(CubeInterface c)
c
-
XCube
public static CubeDimAttribute hiveDimAttrFromXDimAttr(XDimAttribute xd)
xd
-
CubeDimAttribute
public static XMLGregorianCalendar getXMLGregorianCalendar(Date d)
public static Date getDateFromXML(XMLGregorianCalendar cal)
public static XMeasure xMeasureFromHiveMeasure(CubeMeasure cm)
public static XExprColumn xExprColumnFromHiveExprColumn(ExprColumn ec)
public static XDimAttribute xDimAttrFromHiveDimAttr(CubeDimAttribute cd, AbstractBaseTable baseTable)
public static XJoinChain XJoinChainFromJoinChain(JoinChain jc)
public static XJoinPath xJoinPathFromJoinPath(JoinChain.Path path)
public static List<XTableReference> xTabReferencesFromHiveTabReferences(List<TableReference> hiveRefs)
public static CubeMeasure hiveMeasureFromXMeasure(XMeasure xm)
xm
-
CubeMeasure
public static JoinChain joinChainFromXJoinChain(XJoinChain xj)
xj
-
JoinChain
public static ExprColumn hiveExprColumnFromXExprColumn(XExprColumn xe) throws org.apache.hadoop.hive.ql.parse.ParseException
org.apache.hadoop.hive.ql.parse.ParseException
public static Map<String,String> mapFromXProperties(XProperties xProperties)
xProperties
-
Map
public static List<XProperty> xPropertiesFromMap(Map<String,String> map)
public static org.apache.hadoop.hive.metastore.api.FieldSchema fieldSchemaFromColumn(XColumn c)
public static XColumn columnFromFieldSchema(org.apache.hadoop.hive.metastore.api.FieldSchema fs)
public static ArrayList<org.apache.hadoop.hive.metastore.api.FieldSchema> fieldSchemaListFromColumns(XColumns columns)
public static List<XColumn> columnsFromFieldSchemaList(List<org.apache.hadoop.hive.metastore.api.FieldSchema> fslist)
public static Map<String,Set<UpdatePeriod>> getFactUpdatePeriodsFromStorageTables(XStorageTables storageTables)
public static Map<String,UpdatePeriod> dumpPeriodsFromStorageTables(XStorageTables storageTables)
public static Storage storageFromXStorage(XStorage xs)
public static XStorage xstorageFromStorage(Storage storage)
public static XDimensionTable dimTableFromCubeDimTable(CubeDimensionTable cubeDimTable)
public static List<? extends XTableReference> dimRefListFromTabRefList(List<TableReference> tabRefs)
public static CubeDimensionTable cubeDimTableFromDimTable(XDimensionTable dimensionTable)
public static CubeFactTable cubeFactFromFactTable(XFactTable fact)
public static XFactTable factTableFromCubeFactTable(CubeFactTable cFact)
public static StorageTableDesc storageTableDescFromXStorageTableDesc(XStorageTableDesc xtableDesc)
public static StorageTableDesc storageTableDescFromXStorageTableElement(XStorageTableElement storageTableElement)
public static XStorageTableElement getXStorageTableFromHiveTable(org.apache.hadoop.hive.ql.metadata.Table tbl)
public static XStorageTableDesc getStorageTableDescFromHiveTable(org.apache.hadoop.hive.ql.metadata.Table tbl)
public static Map<String,StorageTableDesc> storageTableMapFromXStorageTables(XStorageTables storageTables)
public static Map<String,Date> timePartSpecfromXTimePartSpec(XTimePartSpec xtimePartSpec)
public static Map<String,String> nonTimePartSpecfromXNonTimePartSpec(XPartSpec xnonTimePartSpec)
public static XPartition xpartitionFromPartition(org.apache.hadoop.hive.ql.metadata.Partition p) throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public static StoragePartitionDesc storagePartSpecFromXPartition(XPartition xpart)
public static Dimension dimensionFromXDimension(XDimension dimension) throws org.apache.hadoop.hive.ql.parse.ParseException
org.apache.hadoop.hive.ql.parse.ParseException
public static XDimension xdimensionFromDimension(Dimension dimension)
public static XNativeTable nativeTableFromMetaTable(org.apache.hadoop.hive.ql.metadata.Table table)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |