Package org.solbase.common

Examples of org.solbase.common.SolbaseException


      // insert document to doctable
      try {
        documentPut.add(SolbaseUtil.timestampColumnFamilyName, SolbaseUtil.tombstonedColumnFamilyQualifierBytes, Bytes.toBytes(0));
        docTable.put(documentPut);
      } catch (IOException e) {
        throw new SolbaseException(SolbaseException.ErrorCode.SERVER_ERROR, e.getMessage());
      } finally {   
        SolbaseUtil.releaseTable(docTable);
      }
     
      // need to insert to docKeyIdMap
View Full Code Here


    // insert document to doctable
    try {
      documentPut.add(SolbaseUtil.timestampColumnFamilyName, SolbaseUtil.tombstonedColumnFamilyQualifierBytes, Bytes.toBytes(0));
      docTable.put(documentPut);
    } catch (IOException e) {
      throw new SolbaseException(SolbaseException.ErrorCode.SERVER_ERROR, e.getMessage());
    } finally {   
      SolbaseUtil.releaseTable(docTable);
    }
  }
View Full Code Here

    HTableInterface docKeyIdMap = SolbaseUtil.getDocKeyIdMapTable();
    // insert document to doctable
    try {
      docKeyIdMap.put(docKeyIdPut);
    } catch (IOException e) {
      throw new SolbaseException(SolbaseException.ErrorCode.SERVER_ERROR, e.getMessage());
    } finally {   
      SolbaseUtil.releaseTable(docKeyIdMap);
    }
  }
View Full Code Here

    // insert document to doctable
    try {
      Delete delete = new Delete(mappingPut.getRow());
      mappingTable.delete(delete);
    } catch (IOException e) {
      throw new SolbaseException(SolbaseException.ErrorCode.SERVER_ERROR, e.getMessage());
    } finally {   
      SolbaseUtil.releaseTable(mappingTable);
    }   
  }
View Full Code Here

        termVectorTable.delete(delete);
        logger.info("deleting term vector: " + termDocMeta.getTerm().toString() + " docId: " + docNumber);
        return true;
      }
    } catch (IOException e) {
      throw new SolbaseException(SolbaseException.ErrorCode.SERVER_ERROR, e.getMessage());
    } finally {
      if(fieldScanner != null){
        fieldScanner.close();
      }
      SolbaseUtil.releaseTable(termVectorTable);
View Full Code Here

TOP

Related Classes of org.solbase.common.SolbaseException

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.