Class FactPurchase
- java.lang.Object
-
- org.apache.ignite.examples.datagrid.starschema.FactPurchase
-
public class FactPurchase extends java.lang.ObjectRepresents a purchase record. In oursnowflakeschema purchase is a'fact'and will be cached in largerCacheMode.PARTITIONEDcache.
-
-
Constructor Summary
Constructors Constructor Description FactPurchase(int id, int productId, int storeId, float purchasePrice)Constructs a purchase record.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetId()Gets purchase ID.intgetProductId()Gets purchased product ID.floatgetPurchasePrice()Gets purchase price.intgetStoreId()Gets ID of store at which purchase was made.java.lang.StringtoString()
-
-
-
Method Detail
-
getId
public int getId()
Gets purchase ID.- Returns:
- Purchase ID.
-
getProductId
public int getProductId()
Gets purchased product ID.- Returns:
- Product ID.
-
getStoreId
public int getStoreId()
Gets ID of store at which purchase was made.- Returns:
- Store ID.
-
getPurchasePrice
public float getPurchasePrice()
Gets purchase price.- Returns:
- Purchase price.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-