congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DataSetMetadata.getDefinition
Code IndexAdd Tabnine to your IDE (free)

How to use
getDefinition
method
in
org.dashbuilder.dataset.DataSetMetadata

Best Java code snippets using org.dashbuilder.dataset.DataSetMetadata.getDefinition (Showing top 2 results out of 315)

origin: kiegroup/appformer

public void callback(DataSetMetadata metatada) {
  // Push the data set to client if and only if the push feature is enabled, the data set is
  // pushable & the data set is smaller than the max push size defined.
  DataSetDef dsetDef = metatada.getDefinition();
  int estimatedSize = metatada.getEstimatedSize() / 1000;
  boolean isPushable = dsetDef != null && dsetDef.isPushEnabled() && estimatedSize < dsetDef.getPushMaxSize();
  if (pushRemoteDataSetEnabled && isPushable) {
    // Check if a push is already in progress.
    // (This is necessary in order to avoid repeating multiple push requests over the same data set).
    DataSetPushHandler pushHandler = pushRequestMap.get(request.getDataSetUUID());
    if (pushHandler == null) {
      // Create a push handler.
      pushHandler = new DataSetPushHandler(metatada);
      // Send the lookup request to the server...
      DataSetLookup lookupSourceDataSet = new DataSetLookup(request.getDataSetUUID());
      _lookupDataSet(lookupSourceDataSet,
              pushHandler);
    }
    // Register the lookup request into the current handler.
    pushHandler.registerLookup(request,
                  listener);
  }
  // Lookup the remote data set otherwise.
  else {
    _lookupDataSet(request,
            listener);
  }
}
origin: org.dashbuilder/dashbuilder-dataset-client

public void callback(DataSetMetadata metatada) {
  // Push the data set to client if and only if the push feature is enabled, the data set is
  // pushable & the data set is smaller than the max push size defined.
  DataSetDef dsetDef = metatada.getDefinition();
  int estimatedSize = metatada.getEstimatedSize() / 1000;
  boolean isPushable = dsetDef != null && dsetDef.isPushEnabled() && estimatedSize < dsetDef.getPushMaxSize();
  if (pushRemoteDataSetEnabled && isPushable) {
    // Check if a push is already in progress.
    // (This is necessary in order to avoid repeating multiple push requests over the same data set).
    DataSetPushHandler pushHandler = pushRequestMap.get(request.getDataSetUUID());
    if (pushHandler == null) {
      // Create a push handler.
      pushHandler = new DataSetPushHandler(metatada);
      // Send the lookup request to the server...
      DataSetLookup lookupSourceDataSet = new DataSetLookup(request.getDataSetUUID());
      _lookupDataSet(lookupSourceDataSet,
              pushHandler);
    }
    // Register the lookup request into the current handler.
    pushHandler.registerLookup(request,
                  listener);
  }
  // Lookup the remote data set otherwise.
  else {
    _lookupDataSet(request,
            listener);
  }
}
org.dashbuilder.datasetDataSetMetadatagetDefinition

Javadoc

Get the definition this data set has been created from. Is null for manually created data set instances.

Popular methods of DataSetMetadata

  • getColumnId
    Get the identifier of the specified column.
  • getNumberOfColumns
    Get the number of columns.
  • getColumnType
    Get the type of the specified column.
  • getNumberOfRows
    Get the number of rows.
  • getEstimatedSize
    Get the estimated size in bytes.
  • getUUID
    The unique identifier for this data set.
  • getColumnIds
    Get the column ids

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • setRequestProperty (URLConnection)
  • String (java.lang)
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JList (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Join (org.hibernate.mapping)
  • Top PhpStorm plugins
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