Package com.google.code.or.binlog.impl.event

Examples of com.google.code.or.binlog.impl.event.TableMapEvent


      DeleteRowsEvent dre = (DeleteRowsEvent)event;
      deleteRows(dre);
    }
    else if (event instanceof TableMapEvent)
    {
      TableMapEvent tme = (TableMapEvent)event;
      processTableMapEvent(tme);
    }
    else
    {
      _log.warn("Skipping !! Unknown OR event e: " + event);
View Full Code Here


   */
  public void parse(XInputStream is, BinlogEventV4Header header, BinlogParserContext context)
  throws IOException {
    //
    final long tableId = is.readLong(6);
    final TableMapEvent tme = context.getTableMapEvent(tableId);
    if(this.rowEventFilter != null && !this.rowEventFilter.accepts(header, context, tme)) {
      is.skip(is.available());
      return;
    }
   
View Full Code Here

  throws IOException {
    //
    final long tableId = is.readLong(6);
    if(this.reusePreviousEvent && context.getTableMapEvent(tableId) != null) {
      is.skip(is.available());
      final TableMapEvent event = context.getTableMapEvent(tableId).copy();
      event.setHeader(header);
      context.getEventListener().onEvents(event);
      return;
    }
   
    //
    final TableMapEvent event = new TableMapEvent(header);
    event.setTableId(tableId);
    event.setReserved(is.readInt(2));
    event.setDatabaseNameLength(is.readInt(1));
    event.setDatabaseName(is.readNullTerminatedString());
    event.setTableNameLength(is.readInt(1));
    event.setTableName(is.readNullTerminatedString());
    event.setColumnCount(is.readUnsignedLong());
    event.setColumnTypes(is.readBytes(event.getColumnCount().intValue()));
    event.setColumnMetadataCount(is.readUnsignedLong());
    event.setColumnMetadata(Metadata.valueOf(event.getColumnTypes(), is.readBytes(event.getColumnMetadataCount().intValue())));
    event.setColumnNullabilities(is.readBit(event.getColumnCount().intValue(), true));
    context.getEventListener().onEvents(event);
  }
View Full Code Here

   */
  public void parse(XInputStream is, BinlogEventV4Header header, BinlogParserContext context)
  throws IOException {
    //
    final long tableId = is.readLong(6);
    final TableMapEvent tme = context.getTableMapEvent(tableId);
    if(this.rowEventFilter != null && !this.rowEventFilter.accepts(header, context, tme)) {
      is.skip(is.available());
      return;
    }
   
View Full Code Here

   */
  public void parse(XInputStream is, BinlogEventV4Header header, BinlogParserContext context)
  throws IOException {
    //
    final long tableId = is.readLong(6);
    final TableMapEvent tme = context.getTableMapEvent(tableId);
    if(this.rowEventFilter != null && !this.rowEventFilter.accepts(header, context, tme)) {
      is.skip(is.available());
      return;
    }
   
View Full Code Here

   */
  public void parse(XInputStream is, BinlogEventV4Header header, BinlogParserContext context)
  throws IOException {
    //
    final long tableId = is.readLong(6);
    final TableMapEvent tme = context.getTableMapEvent(tableId);
    if(this.rowEventFilter != null && !this.rowEventFilter.accepts(header, context, tme)) {
      is.skip(is.available());
      return;
    }
   
View Full Code Here

   */
  public void parse(XInputStream is, BinlogEventV4Header header, BinlogParserContext context)
  throws IOException {
    //
    final long tableId = is.readLong(6);
    final TableMapEvent tme = context.getTableMapEvent(tableId);
    if(this.rowEventFilter != null && !this.rowEventFilter.accepts(header, context, tme)) {
      is.skip(is.available());
      return;
    }
   
View Full Code Here

   */
  public void parse(XInputStream is, BinlogEventV4Header header, BinlogParserContext context)
  throws IOException {
    //
    final long tableId = is.readLong(6);
    final TableMapEvent tme = context.getTableMapEvent(tableId);
    if(this.rowEventFilter != null && !this.rowEventFilter.accepts(header, context, tme)) {
      is.skip(is.available());
      return;
    }
   
View Full Code Here

   */
  public void parse(XInputStream is, BinlogEventV4Header header, BinlogParserContext context)
  throws IOException {
    //
    final long tableId = is.readLong(6);
    final TableMapEvent tme = context.getTableMapEvent(tableId);
    if(this.rowEventFilter != null && !this.rowEventFilter.accepts(header, context, tme)) {
      is.skip(is.available());
      return;
    }
   
View Full Code Here

   */
  public void parse(XInputStream is, BinlogEventV4Header header, BinlogParserContext context)
  throws IOException {
    //
    final long tableId = is.readLong(6);
    final TableMapEvent tme = context.getTableMapEvent(tableId);
    if(this.rowEventFilter != null && !this.rowEventFilter.accepts(header, context, tme)) {
      is.skip(is.available());
      return;
    }
   
View Full Code Here

TOP

Related Classes of com.google.code.or.binlog.impl.event.TableMapEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.