Codota Logo
DataLoadingSpec
Code IndexAdd Codota to your IDE (free)

How to use
DataLoadingSpec
in
gr.ekt.bte.core

Best Java code snippets using gr.ekt.bte.core.DataLoadingSpec (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: DSpace/DSpace

@Override
public RecordSet getRecords(DataLoadingSpec spec)
  throws MalformedSourceException {
  if (spec.getOffset() > 0) {
    return new RecordSet();
  }
  return getRecords();
}
origin: gr.ekt.bte/bte-io

@Override
public RecordSet getRecords(DataLoadingSpec spec) throws MalformedSourceException {
  //See if the data loading spec requests a specific record.
  if (spec.getIdentifier() != null) {
    if(server_ == null) {
      throw new MalformedSourceException("Connection with server " + server_address_ + " has not been established");
    }
    RecordSet ret = new RecordSet();
    try {
      se.kb.oai.pmh.Record oai_record = server_.getRecord(spec.getIdentifier(), prefix_);
      Record rec = oai2bte(oai_record);
      ret.addRecord(rec);
    } catch (OAIException e) {
      logger_.info("Caught OAIException " + e.getMessage());
      throw new MalformedSourceException(e.getMessage());
    }
    return ret;
  }
  return getRecords();
}
origin: gr.ekt.bte/bte-core

assert tmp_recs.size() <= dl_spec.getNumberOfRecords();
if ((tmp_recs.size() < dl_spec.getNumberOfRecords() &&
   dl_spec.getNumberOfRecords() != 0) ||
   dl_spec.getNumberOfRecords() == 0) {
  end_of_input = true;
origin: DSpace/DSpace

@Override
public RecordSet getRecords(DataLoadingSpec spec)
  throws MalformedSourceException {
  if (spec.getOffset() > 0) {
    return new RecordSet();
  }
  return getRecords();
}
origin: DSpace/DSpace

@Override
public RecordSet getRecords(DataLoadingSpec loadingSpec)
  throws MalformedSourceException {
  // Identify the end of loading
  if (loadingSpec.getOffset() > 0) {
    return new RecordSet();
  }
  return getRecords();
}
origin: DSpace/DSpace

@Override
public RecordSet getRecords(DataLoadingSpec spec)
  throws MalformedSourceException {
  if (spec.getOffset() > 0) {
    return new RecordSet();
  }
  return getRecords();
}
origin: DSpace/DSpace

@Override
public RecordSet getRecords(DataLoadingSpec spec)
  throws MalformedSourceException {
  if (spec.getOffset() > 0) {
    return new RecordSet();
  }
  return getRecords();
}
origin: DSpace/DSpace

@Override
public RecordSet getRecords(DataLoadingSpec spec)
  throws MalformedSourceException {
  if (spec.getOffset() > 0) {
    return new RecordSet();
  }
  return getRecords();
}
origin: gr.ekt.bte/bte-io

@Override
public RecordSet getRecords(DataLoadingSpec spec) throws MalformedSourceException {
  //Not using the DataLoadingSpec for the moment
  if (spec.getOffset() > 0) {
    return new RecordSet();
  }
  return getRecords();
}
gr.ekt.bte.coreDataLoadingSpec

Javadoc

Provides the interface for specifying the parameters to the DataLoader for reading records from the data source.

Probably not all the provided data will be usefull in all situations, (e.g. there can be sources that do not have data set names). It is the responsibility of the TransformationEngine to create a correct spec and of the DataLoader implementation to interpret it correctly.

The last paragraph shows that there is a tighter than desirable coupling between the data source, the DataLoader and the TransformationEngine (because it is responsible to create DataLoadingSpecs based on the TransformationSpecs). This should probably be redesigned and abstracted away.

Most used methods

  • getOffset
    Returns the offset at which the next record should be read. If the source provides an ordering for t
  • getIdentifier
  • getNumberOfRecords
    Returns the number of records that should be read. Since the number of records cannot be an integer

Popular in Java

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Menu (java.awt)
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
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