当前位置: 首页>>代码示例>>Java>>正文


Java Symbol.IntCheckAction方法代码示例

本文整理汇总了Java中org.apache.avro.io.parsing.Symbol.IntCheckAction方法的典型用法代码示例。如果您正苦于以下问题:Java Symbol.IntCheckAction方法的具体用法?Java Symbol.IntCheckAction怎么用?Java Symbol.IntCheckAction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.avro.io.parsing.Symbol的用法示例。


在下文中一共展示了Symbol.IntCheckAction方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: checkFixed

import org.apache.avro.io.parsing.Symbol; //导入方法依赖的package包/类
private void checkFixed(int size) throws IOException {
	advance(Symbol.FIXED);
	Symbol.IntCheckAction top = (Symbol.IntCheckAction) parser.popSymbol();
	if (size != top.size) {
		throw new AvroTypeException(
				"Incorrect length for fixed binary: expected " +
						top.size + " but received " + size + " bytes.");
	}
}
 
开发者ID:Celos,项目名称:avro-json-decoder,代码行数:10,代码来源:ExtendedJsonDecoder.java

示例2: writeFixed

import org.apache.avro.io.parsing.Symbol; //导入方法依赖的package包/类
@Override
public void writeFixed(byte[] bytes, int start, int len) throws IOException {
  parser.advance(Symbol.FIXED);
  Symbol.IntCheckAction top = (Symbol.IntCheckAction) parser.popSymbol();
  if (len != top.size) {
    throw new AvroTypeException(
        "Incorrect length for fixed binary: expected " + top.size + " but received " + len + " bytes.");
  }
  writeByteArray(bytes, start, len);
}
 
开发者ID:HotelsDotCom,项目名称:jasvorno,代码行数:11,代码来源:JasvornoEncoder.java

示例3: writeFixed

import org.apache.avro.io.parsing.Symbol; //导入方法依赖的package包/类
@Override
public void writeFixed(byte[] bytes, int start, int len) throws IOException {
  parser.advance(Symbol.FIXED);
  Symbol.IntCheckAction top = (Symbol.IntCheckAction) parser.popSymbol();
  if (len != top.size) {
    throw new AvroTypeException(
      "Incorrect length for fixed binary: expected " +
      top.size + " but received " + len + " bytes.");
  }
  writeByteArray(bytes, start, len);
}
 
开发者ID:openaire,项目名称:iis,代码行数:12,代码来源:HackedJsonEncoder.java

示例4: checkFixed

import org.apache.avro.io.parsing.Symbol; //导入方法依赖的package包/类
private void checkFixed(int size) throws IOException {
  advance(Symbol.FIXED);
  Symbol.IntCheckAction top = (Symbol.IntCheckAction) parser.popSymbol();
  if (size != top.size) {
    throw new AvroTypeException(
      "Incorrect length for fixed binary: expected " +
      top.size + " but received " + size + " bytes.");
  }
}
 
开发者ID:openaire,项目名称:iis,代码行数:10,代码来源:HackedJsonDecoder.java

示例5: checkFixed

import org.apache.avro.io.parsing.Symbol; //导入方法依赖的package包/类
private void checkFixed(int size) throws IOException {
    advance(Symbol.FIXED);
    Symbol.IntCheckAction top = (Symbol.IntCheckAction) parser.popSymbol();
    if (size != top.size) {
        throw new AvroTypeException(
            "Incorrect length for fixed binary: expected " +
        top.size + " but received " + size + " bytes.");
    }
}
 
开发者ID:whale2,项目名称:iow-hadoop-streaming,代码行数:10,代码来源:IOWJsonDecoder.java

示例6: skipFixed

import org.apache.avro.io.parsing.Symbol; //导入方法依赖的package包/类
@Override
protected void skipFixed() throws IOException {
	advance(Symbol.FIXED);
	Symbol.IntCheckAction top = (Symbol.IntCheckAction) parser.popSymbol();
	doSkipFixed(top.size);
}
 
开发者ID:Celos,项目名称:avro-json-decoder,代码行数:7,代码来源:ExtendedJsonDecoder.java

示例7: skipFixed

import org.apache.avro.io.parsing.Symbol; //导入方法依赖的package包/类
@Override
protected void skipFixed() throws IOException {
  advance(Symbol.FIXED);
  Symbol.IntCheckAction top = (Symbol.IntCheckAction) parser.popSymbol();
  doSkipFixed(top.size);
}
 
开发者ID:openaire,项目名称:iis,代码行数:7,代码来源:HackedJsonDecoder.java

示例8: skipFixed

import org.apache.avro.io.parsing.Symbol; //导入方法依赖的package包/类
@Override
protected void skipFixed() throws IOException {
    advance(Symbol.FIXED);
    Symbol.IntCheckAction top = (Symbol.IntCheckAction) parser.popSymbol();
    doSkipFixed(top.size);
}
 
开发者ID:whale2,项目名称:iow-hadoop-streaming,代码行数:7,代码来源:IOWJsonDecoder.java


注:本文中的org.apache.avro.io.parsing.Symbol.IntCheckAction方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。