Tabnine Logo
ReflectiveSchema.getElementType
Code IndexAdd Tabnine to your IDE (free)

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

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

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);
}
origin: net.hydromatic/optiq

public <T> TableFunction<T> methodMember(final Method method) {
 final ReflectiveSchema schema = this;
 final Type elementType = getElementType(method.getReturnType());
 final RelDataType relDataType = typeFactory.createType(elementType);
 final Class<?>[] parameterTypes = method.getParameterTypes();
origin: net.hydromatic/optiq

final Type elementType = getElementType(field.getType());
if (elementType == null) {
 return null;
net.hydromatic.optiq.impl.javaReflectiveSchemagetElementType

Javadoc

Deduces the element type of a collection; same logic as #toEnumerable

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
  • 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
  • toEnumerable
  • methodMember,
  • toEnumerable

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • getApplicationContext (Context)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • JTable (javax.swing)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now