com.vmware.sqlfire
Enum Constants.QueryHints.SizerHints
java.lang.Object
java.lang.Enum<Constants.QueryHints.SizerHints>
com.vmware.sqlfire.Constants.QueryHints.SizerHints
- All Implemented Interfaces:
- Serializable, Comparable<Constants.QueryHints.SizerHints>
- Enclosing class:
- Constants.QueryHints
public static enum Constants.QueryHints.SizerHints
- extends Enum<Constants.QueryHints.SizerHints>
SizerHint constant values which can be passed comma separated.
example:
SELECT * FROM sys.memoryAnalytics -- SQLFIRE-PROPERTIES sizerHints=withMemoryFootPrint \n
jdbc example:
java.sql.Statement st = conn.createStatement();
StringBuilder sb = new StringBuilder("SELECT * FROM sys.memoryAnalytics -- SQLFIRE-PROPERTIES sizerHints=");
sb.append(com.vmware.sqlfire.Constants.QueryHints.SizerHints.withMemoryFootPrint.name());
sb.append("\n");
java.sql.ResultSet rs = st.executeQuery(sb.toString());
while(rs.next()) {
System.out.println(rs.getObject(1));
}
withMemoryFootPrint
public static final Constants.QueryHints.SizerHints withMemoryFootPrint
values
public static Constants.QueryHints.SizerHints[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Constants.QueryHints.SizerHints c : Constants.QueryHints.SizerHints.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Constants.QueryHints.SizerHints valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2010-2012 VMware, Inc. All rights reserved.