congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Fastpath.getData
Code IndexAdd Tabnine 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)

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

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSupportFragmentManager (FragmentActivity)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JList (javax.swing)
  • 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
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top plugins for WebStorm
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