Tabnine Logo
RestBatchWriter
Code IndexAdd Tabnine to your IDE (free)

How to use
RestBatchWriter
in
com.marklogic.client.ext.batch

Best Java code snippets using com.marklogic.client.ext.batch.RestBatchWriter (Showing top 3 results out of 315)

origin: com.marklogic/ml-javaclient-util

/**
 * The given DatabaseClient is used to construct a BatchWriter that writes to MarkLogic via the REST API. The
 * expectation is that the client will then either call setDocumentFileReader or will rely on the default one
 * that's created by this class if one has not yet been set.
 *
 * @param client
 */
public GenericFileLoader(DatabaseClient client) {
  RestBatchWriter restBatchWriter = new RestBatchWriter(client);
  restBatchWriter.setReleaseDatabaseClients(false);
  this.batchWriter = restBatchWriter;
}
origin: com.marklogic/ml-javaclient-util

@Override
public void write(List<? extends DocumentWriteOperation> items) {
  initialize();
  DatabaseClient client = determineDatabaseClientToUse();
  Runnable runnable = buildRunnable(client, items);
  executeRunnable(runnable, items);
}
origin: com.marklogic/ml-app-deployer

RestBatchWriter assetBatchWriter = new RestBatchWriter(appConfig.newModulesDatabaseClient(), false);
assetBatchWriter.setThreadCount(threadCount);
AssetFileLoader assetFileLoader = new AssetFileLoader(assetBatchWriter, modulesManager);
if (appConfig.getModulesLoaderBatchSize() != null) {
com.marklogic.client.ext.batchRestBatchWriter

Javadoc

REST API-based implementation, using the Java Client API. By default, this will call release() on each of the DatabaseClient objects that are passed in. Be sure to disable this if you want to keep using those DatabaseClient objects.

To customize what this does with every batch, you can set a new instance of BatchHandler. This class defaults to using DefaultBatchHandler; it'll pass its instances of Format and ServerTransform to that class.

Most used methods

  • <init>
  • buildRunnable
  • determineDatabaseClientToUse
  • executeRunnable
  • initialize
  • setReleaseDatabaseClients
  • setThreadCount

Popular in Java

  • Making http requests using okhttp
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • 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