diff --git a/dbms/src/Server/OLAPAttributesMetadata.h b/dbms/src/Server/OLAPAttributesMetadata.h index 0be0188466a..ac866412c81 100644 --- a/dbms/src/Server/OLAPAttributesMetadata.h +++ b/dbms/src/Server/OLAPAttributesMetadata.h @@ -23,7 +23,7 @@ namespace DB namespace OLAP { -typedef Poco::Int64 BinaryData; +typedef Int64 BinaryData; /** Информация о типе атрибута */ struct IAttributeMetadata @@ -93,7 +93,7 @@ struct AttributeFixedPointBase : public AttributeUIntBase /** Базовые классы для атрибутов, получаемых из времени (unix timestamp, 4 байта) */ -struct AttributeDateTimeBase : public AttributeIntBase +struct AttributeDateTimeBase : public AttributeIntBase { BinaryData parse(const std::string & s) const { @@ -111,7 +111,7 @@ struct AttributeDateTimeBase : public AttributeIntBase }; -struct AttributeDateBase : public AttributeIntBase +struct AttributeDateBase : public AttributeIntBase { BinaryData parse(const std::string & s) const { @@ -129,7 +129,7 @@ struct AttributeDateBase : public AttributeIntBase }; -struct AttributeTimeBase : public AttributeIntBase +struct AttributeTimeBase : public AttributeIntBase { BinaryData parse(const std::string & s) const { @@ -390,7 +390,7 @@ struct RegionCountry : public AttributeUIntBase }; -struct TraficSourceID : public AttributeIntBase +struct TraficSourceID : public AttributeIntBase { }; @@ -716,7 +716,7 @@ struct IPNetworkID : public AttributeUIntBase }; -struct ClientTimeZone : public AttributeIntBase +struct ClientTimeZone : public AttributeIntBase { }; @@ -924,35 +924,35 @@ struct UserAgentID : public AttributeInOneFileBase }; -struct ClickGoodEvent : public AttributeIntBase +struct ClickGoodEvent : public AttributeIntBase { }; -struct ClickPriorityID : public AttributeIntBase +struct ClickPriorityID : public AttributeIntBase { }; -struct ClickBannerID : public AttributeIntBase +struct ClickBannerID : public AttributeIntBase { }; -struct ClickPhraseID : public AttributeIntBase +struct ClickPhraseID : public AttributeIntBase { }; -struct ClickPageID : public AttributeIntBase +struct ClickPageID : public AttributeIntBase { }; -struct ClickPlaceID : public AttributeIntBase +struct ClickPlaceID : public AttributeIntBase { }; -struct ClickTypeID : public AttributeIntBase +struct ClickTypeID : public AttributeIntBase { }; -struct ClickResourceID : public AttributeIntBase +struct ClickResourceID : public AttributeIntBase { }; @@ -976,27 +976,27 @@ struct ClickTargetPhraseID : public AttributeUIntBase { }; -struct GoalReachesAny : public AttributeUIntBase +struct GoalReachesAny : public AttributeUIntBase { }; -struct GoalReachesDepth : public AttributeUIntBase +struct GoalReachesDepth : public AttributeUIntBase { }; -struct GoalReachesURL : public AttributeUIntBase +struct GoalReachesURL : public AttributeUIntBase { }; -struct ConvertedAny : public AttributeFixedPointBase +struct ConvertedAny : public AttributeFixedPointBase { }; -struct ConvertedDepth : public AttributeFixedPointBase +struct ConvertedDepth : public AttributeFixedPointBase { }; -struct ConvertedURL : public AttributeFixedPointBase +struct ConvertedURL : public AttributeFixedPointBase { }; @@ -1149,10 +1149,43 @@ struct FromHash : public AttributeHashBase { }; -struct CLID : public AttributeUIntBase +struct CLID : public AttributeUIntBase { }; +struct SocialSourceNetworkID : public AttributeUIntBase +{ +}; + +struct URLCategoryID : public AttributeUIntBase +{ +}; + +struct URLCategoryMostAncestor : public AttributeUIntBase +{ +}; + +struct URLCategorySecondLevel : public AttributeUIntBase +{ +}; + +struct URLRegionID : public AttributeUIntBase +{ +}; + +struct URLRegionCity : public AttributeUIntBase +{ +}; + +struct URLRegionArea : public AttributeUIntBase +{ +}; + +struct URLRegionCountry : public AttributeUIntBase +{ +}; + + /** Информация о типах атрибутов */ typedef std::map > AttributeMetadatas; @@ -1167,7 +1200,7 @@ inline AttributeMetadatas GetOLAPAttributeMetadata() metadata["VisitStartTime"] = new VisitStartTime; metadata["VisitStartYear"] = new VisitStartYear; metadata["VisitStartMonth"] = new VisitStartMonth; - metadata["VisitStartDayOfWeek"] = new VisitStartDayOfWeek; + metadata["VisitStartDayOfWeek"] = new VisitStartDayOfWeek; metadata["VisitStartDayOfMonth"] = new VisitStartDayOfMonth; metadata["VisitStartHour"] = new VisitStartHour; metadata["VisitStartMinute"] = new VisitStartMinute; @@ -1178,7 +1211,7 @@ inline AttributeMetadatas GetOLAPAttributeMetadata() metadata["FirstVisitTime"] = new FirstVisitTime; metadata["FirstVisitYear"] = new FirstVisitYear; metadata["FirstVisitMonth"] = new FirstVisitMonth; - metadata["FirstVisitDayOfWeek"] = new FirstVisitDayOfWeek; + metadata["FirstVisitDayOfWeek"] = new FirstVisitDayOfWeek; metadata["FirstVisitDayOfMonth"] = new FirstVisitDayOfMonth; metadata["FirstVisitHour"] = new FirstVisitHour; metadata["FirstVisitMinute"] = new FirstVisitMinute; @@ -1188,7 +1221,7 @@ inline AttributeMetadatas GetOLAPAttributeMetadata() metadata["PredLastVisitYear"] = new PredLastVisitYear; metadata["PredLastVisitMonth"] = new PredLastVisitMonth; metadata["PredLastVisitDayOfWeek"] = new PredLastVisitDayOfWeek; - metadata["PredLastVisitDayOfMonth"]= new PredLastVisitDayOfMonth; + metadata["PredLastVisitDayOfMonth"] = new PredLastVisitDayOfMonth; metadata["PredLastVisitWeek"] = new PredLastVisitWeek; metadata["RegionID"] = new RegionID; metadata["RegionCity"] = new RegionCity; @@ -1207,7 +1240,7 @@ inline AttributeMetadatas GetOLAPAttributeMetadata() metadata["PageViewsInterval"] = new PageViewsInterval; metadata["UserID"] = new UserID; metadata["TotalVisits"] = new TotalVisits; - metadata["TotalVisitsInterval"] = new TotalVisitsInterval; + metadata["TotalVisitsInterval"] = new TotalVisitsInterval; metadata["Age"] = new Age; metadata["AgeInterval"] = new AgeInterval; metadata["Sex"] = new Sex; @@ -1329,6 +1362,16 @@ inline AttributeMetadatas GetOLAPAttributeMetadata() metadata["FromHash"] = new FromHash; metadata["CLID"] = new CLID; + + metadata["SocialSourceNetworkID"] = new SocialSourceNetworkID; + + metadata["URLCategoryID"] = new URLCategoryID; + metadata["URLCategoryMostAncestor"]= new URLCategoryMostAncestor; + metadata["URLCategorySecondLevel"] = new URLCategorySecondLevel; + metadata["URLRegionID"] = new URLRegionID; + metadata["URLRegionCity"] = new URLRegionCity; + metadata["URLRegionArea"] = new URLRegionArea; + metadata["URLRegionCountry"] = new URLRegionCountry; return metadata; }