Codota Logo
Fastpath.getData
Code IndexAdd Codota to your IDE (free)

How to use
getData
method
in
org.postgresql.fastpath.Fastpath

Best Java code snippets using org.postgresql.fastpath.Fastpath.getData (Showing top 4 results out of 315)

  • Common ways to obtain Fastpath
private void myMethod () {
Fastpath f =
  • Codota IconBaseConnection baseConnection;baseConnection.getFastpathAPI()
  • Codota IconAbstractJdbc2Connection abstractJdbc2Connection;new Fastpath(abstractJdbc2Connection)
  • Smart code suggestions by Codota
}
origin: org.postgresql/postgresql

/**
 * Reads some data from the object, and return as a byte[] array.
 *
 * @param len number of bytes to read
 * @return byte[] array containing data read
 * @throws SQLException if a database-access error occurs.
 */
public byte[] read(int len) throws SQLException {
 // This is the original method, where the entire block (len bytes)
 // is retrieved in one go.
 FastpathArg[] args = new FastpathArg[2];
 args[0] = new FastpathArg(fd);
 args[1] = new FastpathArg(len);
 return fp.getData("loread", args);
}
origin: postgresql/postgresql

/**
 * Reads some data from the object, and return as a byte[] array
 *
 * @param len number of bytes to read
 * @return byte[] array containing data read
 * @exception SQLException if a database-access error occurs.
 */
public byte[] read(int len) throws SQLException
{
  // This is the original method, where the entire block (len bytes)
  // is retrieved in one go.
  FastpathArg args[] = new FastpathArg[2];
  args[0] = new FastpathArg(fd);
  args[1] = new FastpathArg(len);
  return fp.getData("loread", args);
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * Reads some data from the object, and return as a byte[] array
 *
 * @param len number of bytes to read
 * @return byte[] array containing data read
 * @exception SQLException if a database-access error occurs.
 */
public byte[] read(int len) throws SQLException
{
  // This is the original method, where the entire block (len bytes)
  // is retrieved in one go.
  FastpathArg args[] = new FastpathArg[2];
  args[0] = new FastpathArg(fd);
  args[1] = new FastpathArg(len);
  return fp.getData("loread", args);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * Reads some data from the object, and return as a byte[] array
 *
 * @param len number of bytes to read
 * @return byte[] array containing data read
 * @exception SQLException if a database-access error occurs.
 */
public byte[] read(int len) throws SQLException
{
  // This is the original method, where the entire block (len bytes)
  // is retrieved in one go.
  FastpathArg args[] = new FastpathArg[2];
  args[0] = new FastpathArg(fd);
  args[1] = new FastpathArg(len);
  return fp.getData("loread", args);
}
org.postgresql.fastpathFastpathgetData

Javadoc

This convenience method assumes that the return value is not an Integer

Popular methods of Fastpath

  • <init>
    Initialises the fastpath system
  • addFunctions
    This takes a ResultSet containing two columns. Column 1 contains the function name, Column 2 the oid
  • createOIDArg
    Creates a FastpathArg with an oid parameter. This is here instead of a constructor of FastpathArg be
  • fastpath
    Send a function call to the PostgreSQL backend by name. Note: the mapping for the procedure name to
  • getID
    This returns the function id associated by its name.If addFunction() or addFunctions() have not been
  • getInteger
    This convenience method assumes that the return value is an Integer
  • getOID
    This convenience method assumes that the return value is an oid.
  • getLong
    This convenience method assumes that the return value is a long (bigint).

Popular in Java

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • getSystemService (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
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