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

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


   */
  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

        return;
      }
     
      //
      if(event instanceof TableMapEvent) {
        final TableMapEvent tme = (TableMapEvent)event;
        this.tableMapEvents.put(tme.getTableId(), tme);
      } else if(event instanceof RotateEvent) {
        final RotateEvent re = (RotateEvent)event;
        this.binlogFileName = re.getBinlogFileName().toString();
        if(isClearTableMapEventsOnRotate()) this.tableMapEvents.clear();
      }
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()));
    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

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.