public class CubeInfo extends CRDInfo
Modifier and Type | Field and Description |
---|---|
static short |
LOCATION_IN_MEMORY
Indicates a cube's location: in memory (value=1).
|
static short |
LOCATION_ON_DISK
Indicates a cube's location: on disk (value=2).
|
static short |
LOCATION_UNKNOWN
Indicates a cube's location: unknown (value=0).
|
CACHE_TYPE_BV, CACHE_TYPE_BVANDDETAIL, CACHE_TYPE_DETAIL, QUERY_TYPE_HIERARCHICAL, QUERY_TYPE_IMPORTED_SQL, QUERY_TYPE_PARAMETER, QUERY_TYPE_QUERY, QUERY_TYPE_QUEYR, QUERY_TYPE_STORED_PROCEDURE, QUERY_TYPE_USER_DEFINED, STATUS_BUILDING, STATUS_COMPLETED, STATUS_DISABLED, STATUS_PENDING, STATUS_UPDATING
Constructor and Description |
---|
CubeInfo(java.lang.String catalogPath,
java.lang.String dataSource,
int queryType,
java.lang.String queryName,
java.lang.String bvName)
Constructs
CubeInfo with specified catalog path, data source name, query type, query name, and BV name. |
CubeInfo(java.lang.String catalogPath,
java.lang.String dataSource,
int queryType,
java.lang.String queryName,
java.lang.String bvName,
int cacheType)
Constructs
CubeInfo with specified catalog path, data source name, query type, query name, BV name,
and cache type. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares if the parameter object is equal to this one.
|
long |
getActualUsedMemory()
get actual used memory size for the cube.
|
java.lang.String |
getBVName()
get BV name which used to create cube.
|
boolean |
getCanSwaptoDisk()
check if can swap to disk when no enough memory to generate cube.
|
short |
getLocation()
get location of a cube, return value may be may be
LOCATION_IN_MEMORY , LOCATION_ON_DISK , or LOCATION_UNKNOWN . |
double |
getMaxAllowMemory()
get maximum memory size allowed for the cube.
|
java.util.Vector<CubeUsage> |
listCubeUsage()
List cube usage currently.
|
void |
setCanSwaptoDisk(boolean canSwaptoDisk)
set if can swap to disk when no enough memory to generate cube.
|
void |
setMaxAllowMemory(double maxMemory)
set maximum memory size allowed for the cube.
|
java.lang.String |
toString()
Converts this object to string information.
|
getCacheType, getCatalogName, getCatalogPath, getCRDKey, getCreatedTime, getDataSource, getLastModified, getLoginUser, getParamFile, getParamValues, getPassword, getPasswords, getQueryName, getQueryType, getRunDetails, getRuntimeParamValues, getRunTimes, getStatus, getTaskId, getUserName, getUserNames, isLazy, setCacheType, setCatalogPath, setCreatedTime, setDataSource, setLastModified, setLazy, setLoginUser, setParamFile, setPassword, setPasswords, setQueryName, setQueryType, setTaskId, setUserName, setUserNames
public static final short LOCATION_UNKNOWN
public static final short LOCATION_IN_MEMORY
public static final short LOCATION_ON_DISK
public CubeInfo(java.lang.String catalogPath, java.lang.String dataSource, int queryType, java.lang.String queryName, java.lang.String bvName)
CubeInfo
with specified catalog path, data source name, query type, query name, and BV name.catalogPath
- catalog path.dataSource
- data source.queryType
- query type.queryName
- query name.bvName
- BV namepublic CubeInfo(java.lang.String catalogPath, java.lang.String dataSource, int queryType, java.lang.String queryName, java.lang.String bvName, int cacheType)
CubeInfo
with specified catalog path, data source name, query type, query name, BV name,
and cache type.catalogPath
- catalog path.dataSource
- data source.queryType
- query type.queryName
- query name.bvName
- BV namecacheType
- cache type,public java.lang.String getBVName()
public java.util.Vector<CubeUsage> listCubeUsage()
CubeUsage
public double getMaxAllowMemory()
public long getActualUsedMemory()
0L
if
value of CRDInfo.getStatus()
is not
CRDInfo.STATUS_COMPLETED
.public void setMaxAllowMemory(double maxMemory)
maxMemory
- memory size allowed for the cube, unit is MB.public short getLocation()
LOCATION_IN_MEMORY
, LOCATION_ON_DISK
, or LOCATION_UNKNOWN
.LOCATION_UNKNOWN
.public boolean getCanSwaptoDisk()
true
if can swap, otherwise cannot.public void setCanSwaptoDisk(boolean canSwaptoDisk)
canSwaptoDisk
- true
if can swap, otherwise cannot.public boolean equals(java.lang.Object obj)