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


Java AIllegalArgument类代码示例

本文整理汇总了Java中org.apache.hadoop.hbase.avro.generated.AIllegalArgument的典型用法代码示例。如果您正苦于以下问题:Java AIllegalArgument类的具体用法?Java AIllegalArgument怎么用?Java AIllegalArgument使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


AIllegalArgument类属于org.apache.hadoop.hbase.avro.generated包,在下文中一共展示了AIllegalArgument类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: scannerClose

import org.apache.hadoop.hbase.avro.generated.AIllegalArgument; //导入依赖的package包/类
public Void scannerClose(int scannerId) throws AIOError, AIllegalArgument {
     try {
       ResultScanner scanner = getScanner(scannerId);
       if (scanner == null) {
     	  AIllegalArgument aie = new AIllegalArgument();
  aie.message = new Utf8("scanner ID is invalid: " + scannerId);
         throw aie;
       }
       scanner.close();
       removeScanner(scannerId);
       return null;
     } catch (IOException e) {
   	AIOError ioe = new AIOError();
ioe.message = new Utf8(e.getMessage());
       throw ioe;
     }
   }
 
开发者ID:fengchen8086,项目名称:LCIndex-HBase-0.94.16,代码行数:18,代码来源:AvroServer.java

示例2: atdToHTD

import org.apache.hadoop.hbase.avro.generated.AIllegalArgument; //导入依赖的package包/类
static public HTableDescriptor atdToHTD(ATableDescriptor atd) throws IOException, AIllegalArgument {
   HTableDescriptor htd = new HTableDescriptor(Bytes.toBytes(atd.name));
   if (atd.families != null && atd.families.size() > 0) {
     for (AFamilyDescriptor afd : atd.families) {
htd.addFamily(afdToHCD(afd));
     }
   }
   if (atd.maxFileSize != null) {
     htd.setMaxFileSize(atd.maxFileSize);
   }
   if (atd.memStoreFlushSize != null) {
     htd.setMemStoreFlushSize(atd.memStoreFlushSize);
   }
   if (atd.readOnly != null) {
     htd.setReadOnly(atd.readOnly);
   }
   if (atd.deferredLogFlush != null) {
     htd.setDeferredLogFlush(atd.deferredLogFlush);
   }
   if (atd.rootRegion != null || atd.metaRegion != null || atd.metaTable != null) {
     AIllegalArgument aie = new AIllegalArgument();
     aie.message = new Utf8("Can't set root or meta flag on create table.");
     throw aie;
   }
   return htd;
 }
 
开发者ID:fengchen8086,项目名称:LCIndex-HBase-0.94.16,代码行数:27,代码来源:AvroUtil.java

示例3: scannerGetRows

import org.apache.hadoop.hbase.avro.generated.AIllegalArgument; //导入依赖的package包/类
public GenericArray<AResult> scannerGetRows(int scannerId, int numberOfRows) throws AIOError, AIllegalArgument {
     try {
       ResultScanner scanner = getScanner(scannerId);
       if (scanner == null) {
     	  AIllegalArgument aie = new AIllegalArgument();
  aie.message = new Utf8("scanner ID is invalid: " + scannerId);
         throw aie;
       }
       return AvroUtil.resultsToAResults(scanner.next(numberOfRows));
     } catch (IOException e) {
   	AIOError ioe = new AIOError();
ioe.message = new Utf8(e.getMessage());
       throw ioe;
     }
   }
 
开发者ID:fengchen8086,项目名称:LCIndex-HBase-0.94.16,代码行数:16,代码来源:AvroServer.java


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