public final class JAXBUtils extends Object
public static CubeInterface hiveCubeFromXCube(XCube cube, Cube parent) throws LensException
cube
- JAXB CubeCube
LensException
public static XCube xCubeFromHiveCube(CubeInterface c)
c
- XCube
public static CubeDimAttribute hiveDimAttrFromXDimAttr(XDimAttribute xd) throws LensException
xd
- CubeDimAttribute
LensException
public static XMLGregorianCalendar getXMLGregorianCalendar(Date d)
d
- Date valuepublic static Date getDateFromXML(XMLGregorianCalendar cal)
cal
- XML valuepublic static XMeasure xMeasureFromHiveMeasure(CubeMeasure cm)
public static XExprColumn xExprColumnFromHiveExprColumn(ExprColumn ec)
public static XDimAttribute xDimAttrFromHiveDimAttr(CubeDimAttribute cd, AbstractBaseTable baseTable)
public static XJoinChain getXJoinChainFromJoinChain(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 LensException
LensException
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 XDimensionTable dimTableFromCubeDimTable(CubeDimensionTable cubeDimTable)
public static List<? extends XTableReference> dimRefListFromTabRefList(List<TableReference> tabRefs)
public static CubeDimensionTable cubeDimTableFromDimTable(XDimensionTable dimensionTable) throws LensException
LensException
public static CubeFactTable cubeFactFromFactTable(XFactTable fact) throws LensException
LensException
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 XPartitionList xpartitionListFromPartitionList(String cubeTableName, List<org.apache.hadoop.hive.ql.metadata.Partition> partitions, List<String> timePartCols) throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public static XPartition xpartitionFromPartition(String cubeTableName, org.apache.hadoop.hive.ql.metadata.Partition p, List<String> timePartCols) throws org.apache.hadoop.hive.ql.metadata.HiveException
org.apache.hadoop.hive.ql.metadata.HiveException
public static void updatePartitionFromXPartition(org.apache.hadoop.hive.ql.metadata.Partition partition, XPartition xp) throws ClassNotFoundException
ClassNotFoundException
public static StoragePartitionDesc storagePartSpecFromXPartition(XPartition xpart)
public static List<StoragePartitionDesc> storagePartSpecListFromXPartitionList(XPartitionList xpartList)
public static Dimension dimensionFromXDimension(XDimension dimension) throws LensException
LensException
public static XDimension xdimensionFromDimension(Dimension dimension)
public static XNativeTable nativeTableFromMetaTable(org.apache.hadoop.hive.ql.metadata.Table table)
public static Map<String,String> getFullPartSpecAsMap(XPartition partition)
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.