Codota Logo
ReflectiveSchema.toEnumerable
Code IndexAdd Codota to your IDE (free)

How to use
toEnumerable
method
in
net.hydromatic.optiq.impl.java.ReflectiveSchema

Best Java code snippets using net.hydromatic.optiq.impl.java.ReflectiveSchema.toEnumerable (Showing top 1 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.apache.optiq/optiq-core

/** Returns a table based on a particular field of this schema. If the
 * field is not of the right type to be a relation, returns null. */
private <T> Table fieldRelation(final Field field) {
 final Type elementType = getElementType(field.getType());
 if (elementType == null) {
  return null;
 }
 Object o;
 try {
  o = field.get(target);
 } catch (IllegalAccessException e) {
  throw new RuntimeException(
    "Error while accessing field " + field, e);
 }
 @SuppressWarnings("unchecked")
 final Enumerable<T> enumerable = toEnumerable(o);
 return new FieldTable<T>(field, elementType, enumerable);
}
net.hydromatic.optiq.impl.javaReflectiveSchematoEnumerable

Popular methods of ReflectiveSchema

  • <init>
    Creates a ReflectiveSchema.
  • create
    Creates a ReflectiveSchema within another schema.
  • fieldRelation
    Returns a table based on a particular field of this schema. If the field is not of the right type to
  • getElementType
    Deduces the element type of a collection; same logic as #toEnumerable
  • getExpression
  • getTargetExpression
    Returns an expression for the object wrapped by this schema (not the schema itself).
  • addTable
  • getQueryProvider
  • getTable
  • getTableMap
  • getTarget
    Returns the wrapped object. (May not appear to be used, but is used in generated code via BuiltinMet
  • methodMember
  • getTarget,
  • methodMember

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • getApplicationContext (Context)
  • setContentView (Activity)
  • Kernel (java.awt.image)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JTextField (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now