congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CopyIn.flushCopy
Code IndexAdd Tabnine to your IDE (free)

How to use
flushCopy
method
in
org.postgresql.copy.CopyIn

Best Java code snippets using org.postgresql.copy.CopyIn.flushCopy (Showing top 9 results out of 315)

origin: org.postgresql/postgresql

public void flushCopy() throws SQLException {
 op.flushCopy();
}
origin: postgresql/postgresql

public void flushCopy() throws SQLException {
  op.flushCopy();
}
origin: postgresql/postgresql

public void flush() throws IOException {
  try {
    op.writeToCopy(copyBuffer, 0, at);
    at = 0;
    op.flushCopy();
  } catch (SQLException e) {
    IOException ioe = new IOException("Unable to flush stream");
    ioe.initCause(e);
    throw ioe;
  }
}
origin: org.postgresql/postgresql

public void flush() throws IOException {
 try {
  op.writeToCopy(copyBuffer, 0, at);
  at = 0;
  op.flushCopy();
 } catch (SQLException e) {
  IOException ioe = new IOException("Unable to flush stream");
  ioe.initCause(e);
  throw ioe;
 }
}
origin: org.ancoron.postgresql/org.postgresql

public void flushCopy() throws SQLException {
  op.flushCopy();
}
origin: org.ancoron.postgresql/org.postgresql.osgi

public void flushCopy() throws SQLException {
  op.flushCopy();
}
origin: org.ancoron.postgresql/org.postgresql

public void flush() throws IOException {
  try {
    op.writeToCopy(copyBuffer, 0, at);
    at = 0;
    op.flushCopy();
  } catch (SQLException e) {
    IOException ioe = new IOException("Unable to flush stream");
    ioe.initCause(e);
    throw ioe;
  }
}
origin: org.ancoron.postgresql/org.postgresql.osgi

public void flush() throws IOException {
  try {
    op.writeToCopy(copyBuffer, 0, at);
    at = 0;
    op.flushCopy();
  } catch (SQLException e) {
    IOException ioe = new IOException("Unable to flush stream");
    ioe.initCause(e);
    throw ioe;
  }
}
origin: org.jumpmind.symmetric/symmetric-postgres

protected void flush() {
  if (copyIn != null) {
    statistics.get(batch).startTimer(DataWriterStatisticConstants.DATABASEMILLIS);
    try {
      copyIn.flushCopy();
    } catch (SQLException ex) {
      throw getPlatform().getSqlTemplate().translate(ex);
    } finally {
      statistics.get(batch).stopTimer(DataWriterStatisticConstants.DATABASEMILLIS);
    }
  }
}
org.postgresql.copyCopyInflushCopy

Javadoc

Force any buffered output to be sent over the network to the backend. In general this is a useless operation as it will get pushed over in due time or when endCopy is called. Some specific modified server versions (Truviso) want this data sooner. If you are unsure if you need to use this method, don't.

Popular methods of CopyIn

  • cancelCopy
  • endCopy
    Finishes copy operation successfully.
  • writeToCopy
    Writes specified part of given byte array to an open and writable copy operation.
  • getHandledRowCount
  • isActive
  • getFieldCount
  • getFieldFormat
  • getFormat

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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