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

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


  /**
   *
   */
  public void parse(XInputStream is, BinlogEventV4Header header, BinlogParserContext context)
  throws IOException {
    final UserVarEvent event = new UserVarEvent(header);
    event.setVarNameLength(is.readInt(4));
    event.setVarName(is.readFixedLengthString(event.getVarNameLength()));
    event.setIsNull(is.readInt(1));
    if(event.getIsNull() == 0) {
      event.setVarType(is.readInt(1));
      event.setVarCollation(is.readInt(4));
      event.setVarValueLength(is.readInt(4));
      event.setVarValue(parseUserVariable(is, event));
    }
    context.getEventListener().onEvents(event);
  }
View Full Code Here

TOP

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

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.