SQLFire 1.0.3

com.vmware.sqlfire
Enum Constants.QueryHints.SizerHints

java.lang.Object
  extended by java.lang.Enum<Constants.QueryHints.SizerHints>
      extended by 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));
   } 


Enum Constant Summary
withMemoryFootPrint
           
 
Method Summary
static Constants.QueryHints.SizerHints valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Constants.QueryHints.SizerHints[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

withMemoryFootPrint

public static final Constants.QueryHints.SizerHints withMemoryFootPrint
Method Detail

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

SQLFire 1.0.3

Copyright © 2010-2012 VMware, Inc. All rights reserved.