Tabnine Logo
PGStream.ReceiveInteger2
Code IndexAdd Tabnine to your IDE (free)

How to use
ReceiveInteger2
method
in
org.postgresql.core.PGStream

Best Java code snippets using org.postgresql.core.PGStream.ReceiveInteger2 (Showing top 15 results out of 315)

origin: postgresql/postgresql

/**
 * Locks connection and calls initializer for a new CopyOperation
 * Called via startCopy -> processCopyResults
 * @param op an unitialized CopyOperation
 * @throws SQLException on locking failure
 * @throws IOException on database connection failure
 */
private synchronized void initCopy(CopyOperationImpl op) throws SQLException, IOException {
  pgStream.ReceiveInteger4(); // length not used
  int rowFormat = pgStream.ReceiveChar();
  int numFields = pgStream.ReceiveInteger2();
  int[] fieldFormats = new int[numFields];
  for(int i=0; i<numFields; i++)
    fieldFormats[i] = pgStream.ReceiveInteger2();
  lock(op);
  op.init(this, rowFormat, fieldFormats);
}
origin: postgresql/postgresql

private Field[] receiveFields() throws IOException
{
  int l_msgSize = pgStream.ReceiveInteger4();
  int size = pgStream.ReceiveInteger2();
  Field[] fields = new Field[size];
  if (logger.logDebug())
    logger.debug(" <=BE RowDescription(" + size + ")");
  for (int i = 0; i < fields.length; i++)
  {
    String columnLabel = pgStream.ReceiveString();
    int tableOid = pgStream.ReceiveInteger4();
    short positionInTable = (short)pgStream.ReceiveInteger2();
    int typeOid = pgStream.ReceiveInteger4();
    int typeLength = pgStream.ReceiveInteger2();
    int typeModifier = pgStream.ReceiveInteger4();
    int formatType = pgStream.ReceiveInteger2();
    fields[i] = new Field(columnLabel,
               "",  /* name not yet determined */
               typeOid, typeLength, typeModifier, tableOid, positionInTable);
    fields[i].setFormat(formatType);
  }
  return fields;
}
origin: postgresql/postgresql

private Field[] receiveFields() throws IOException
{
  int size = pgStream.ReceiveInteger2();
  Field[] fields = new Field[size];
  if (logger.logDebug())
    logger.debug(" <=BE RowDescription(" + fields.length + ")");
  for (int i = 0; i < fields.length; i++)
  {
    String columnLabel = pgStream.ReceiveString();
    int typeOid = pgStream.ReceiveInteger4();
    int typeLength = pgStream.ReceiveInteger2();
    int typeModifier = pgStream.ReceiveInteger4();
    fields[i] = new Field(columnLabel, columnLabel, typeOid, typeLength, typeModifier, 0, 0);
  }
  return fields;
}
origin: postgresql/postgresql

int l_nf = ReceiveInteger2();
byte[][] answer = new byte[l_nf][];
origin: postgresql/postgresql

String origStatementName = (String)describeData[3];
int numParams = pgStream.ReceiveInteger2();
origin: org.ancoron.postgresql/org.postgresql

/**
 * Locks connection and calls initializer for a new CopyOperation
 * Called via startCopy -> processCopyResults
 * @param op an unitialized CopyOperation
 * @throws SQLException on locking failure
 * @throws IOException on database connection failure
 */
private synchronized void initCopy(CopyOperationImpl op) throws SQLException, IOException {
  pgStream.ReceiveInteger4(); // length not used
  int rowFormat = pgStream.ReceiveChar();
  int numFields = pgStream.ReceiveInteger2();
  int[] fieldFormats = new int[numFields];
  for(int i=0; i<numFields; i++)
    fieldFormats[i] = pgStream.ReceiveInteger2();
  lock(op);
  op.init(this, rowFormat, fieldFormats);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * Locks connection and calls initializer for a new CopyOperation
 * Called via startCopy -> processCopyResults
 * @param op an unitialized CopyOperation
 * @throws SQLException on locking failure
 * @throws IOException on database connection failure
 */
private synchronized void initCopy(CopyOperationImpl op) throws SQLException, IOException {
  pgStream.ReceiveInteger4(); // length not used
  int rowFormat = pgStream.ReceiveChar();
  int numFields = pgStream.ReceiveInteger2();
  int[] fieldFormats = new int[numFields];
  for(int i=0; i<numFields; i++)
    fieldFormats[i] = pgStream.ReceiveInteger2();
  lock(op);
  op.init(this, rowFormat, fieldFormats);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

private Field[] receiveFields() throws IOException
{
  int l_msgSize = pgStream.ReceiveInteger4();
  int size = pgStream.ReceiveInteger2();
  Field[] fields = new Field[size];
  if (logger.logDebug())
    logger.debug(" <=BE RowDescription(" + size + ")");
  for (int i = 0; i < fields.length; i++)
  {
    String columnLabel = pgStream.ReceiveString();
    int tableOid = pgStream.ReceiveInteger4();
    short positionInTable = (short)pgStream.ReceiveInteger2();
    int typeOid = pgStream.ReceiveInteger4();
    int typeLength = pgStream.ReceiveInteger2();
    int typeModifier = pgStream.ReceiveInteger4();
    int formatType = pgStream.ReceiveInteger2();
    fields[i] = new Field(columnLabel,
               null,  /* name not yet determined */
               typeOid, typeLength, typeModifier, tableOid, positionInTable);
    fields[i].setFormat(formatType);
  }
  return fields;
}
origin: org.ancoron.postgresql/org.postgresql

private Field[] receiveFields() throws IOException
{
  int l_msgSize = pgStream.ReceiveInteger4();
  int size = pgStream.ReceiveInteger2();
  Field[] fields = new Field[size];
  if (logger.logDebug())
    logger.debug(" <=BE RowDescription(" + size + ")");
  for (int i = 0; i < fields.length; i++)
  {
    String columnLabel = pgStream.ReceiveString();
    int tableOid = pgStream.ReceiveInteger4();
    short positionInTable = (short)pgStream.ReceiveInteger2();
    int typeOid = pgStream.ReceiveInteger4();
    int typeLength = pgStream.ReceiveInteger2();
    int typeModifier = pgStream.ReceiveInteger4();
    int formatType = pgStream.ReceiveInteger2();
    fields[i] = new Field(columnLabel,
               "",  /* name not yet determined */
               typeOid, typeLength, typeModifier, tableOid, positionInTable);
    fields[i].setFormat(formatType);
  }
  return fields;
}
origin: org.ancoron.postgresql/org.postgresql

private Field[] receiveFields() throws IOException
{
  int size = pgStream.ReceiveInteger2();
  Field[] fields = new Field[size];
  if (logger.logDebug())
    logger.debug(" <=BE RowDescription(" + fields.length + ")");
  for (int i = 0; i < fields.length; i++)
  {
    String columnLabel = pgStream.ReceiveString();
    int typeOid = pgStream.ReceiveInteger4();
    int typeLength = pgStream.ReceiveInteger2();
    int typeModifier = pgStream.ReceiveInteger4();
    fields[i] = new Field(columnLabel, columnLabel, typeOid, typeLength, typeModifier, 0, 0);
  }
  return fields;
}
origin: org.ancoron.postgresql/org.postgresql.osgi

private Field[] receiveFields() throws IOException
{
  int size = pgStream.ReceiveInteger2();
  Field[] fields = new Field[size];
  if (logger.logDebug())
    logger.debug(" <=BE RowDescription(" + fields.length + ")");
  for (int i = 0; i < fields.length; i++)
  {
    String columnLabel = pgStream.ReceiveString();
    int typeOid = pgStream.ReceiveInteger4();
    int typeLength = pgStream.ReceiveInteger2();
    int typeModifier = pgStream.ReceiveInteger4();
    fields[i] = new Field(columnLabel, columnLabel, typeOid, typeLength, typeModifier, 0, 0);
  }
  return fields;
}
origin: org.ancoron.postgresql/org.postgresql

int l_nf = ReceiveInteger2();
byte[][] answer = new byte[l_nf][];
origin: org.ancoron.postgresql/org.postgresql.osgi

int l_nf = ReceiveInteger2();
byte[][] answer = new byte[l_nf][];
origin: org.ancoron.postgresql/org.postgresql.osgi

String origStatementName = (String)describeData[3];
int numParams = pgStream.ReceiveInteger2();
origin: org.ancoron.postgresql/org.postgresql

String origStatementName = (String)describeData[3];
int numParams = pgStream.ReceiveInteger2();
org.postgresql.corePGStreamReceiveInteger2

Javadoc

Receives a two byte integer from the backend

Popular methods of PGStream

  • <init>
    Constructor: Connect to the PostgreSQL back end and return a stream connection.
  • changeSocket
    Switch this stream to using a new socket. Any existing socket is not closed; it's assumed that we ar
  • close
    Closes the connection.
  • flush
    Flush any pending output to the backend.
  • getEncoding
  • getSocket
  • hasMessagePending
    Check for pending backend messages without blocking. Might return false when there actually are mess
  • setEncoding
    Change the encoding used by this connection.
  • Receive
    Reads in a given number of bytes from the backend
  • ReceiveChar
    Receives a single character from the backend
  • ReceiveEOF
    Consume an expected EOF from the backend
  • ReceiveInteger4
    Receives a four byte integer from the backend
  • ReceiveEOF,
  • ReceiveInteger4,
  • ReceiveString,
  • ReceiveTupleV2,
  • ReceiveTupleV3,
  • Send,
  • SendChar,
  • SendInteger2,
  • SendInteger4

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • JTextField (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Best IntelliJ plugins
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