|
||||||||||
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)
public static XJoinchain xJoinChainFromJoinChain(JoinChain jc)
public static XTablereferences xTabReferenceFromHiveTabReference(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 XProperties xPropertiesFromMap(Map<String,String> map)
public static org.apache.hadoop.hive.metastore.api.FieldSchema fieldSchemaFromColumn(Column c)
public static Column columnFromFieldSchema(org.apache.hadoop.hive.metastore.api.FieldSchema fs)
public static ArrayList<org.apache.hadoop.hive.metastore.api.FieldSchema> fieldSchemaListFromColumns(Columns columns)
public static Columns columnsFromFieldSchemaList(List<org.apache.hadoop.hive.metastore.api.FieldSchema> fslist)
public static Map<String,Set<UpdatePeriod>> getFactUpdatePeriodsFromUpdatePeriods(UpdatePeriods periods)
public static Map<String,UpdatePeriod> dumpPeriodsFromUpdatePeriods(UpdatePeriods periods)
public static Storage storageFromXStorage(XStorage xs)
public static XStorage xstorageFromStorage(Storage storage)
public static DimensionTable dimTableFromCubeDimTable(CubeDimensionTable cubeDimTable)
public static List<? extends XTablereference> dimRefListFromTabRefList(List<TableReference> tabRefs)
public static CubeDimensionTable cubeDimTableFromDimTable(DimensionTable dimensionTable)
public static CubeFactTable cubeFactFromFactTable(FactTable fact)
public static FactTable 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 NativeTable 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 |