Package org.apache.xindice.core

Examples of org.apache.xindice.core.DBException


      buf = uri.getBytes();
      pos = 0;
      String tmp;

      if ( buf.length == 0 ) {
         throw new DBException(FaultCodes.URI_EMPTY);
      }

      // TODO: Be Able To Handle Remote URIs
      if ( (char)buf[0] != '/' ) {
         parseName(":"); // Ignore Protocol
View Full Code Here


        // perform the requested matching type
        switch (anOperator) {
            // unsupported operator
            default :
                throw new DBException(FaultCodes.IDX_NOT_SUPPORTED, "unimplemented index query operation code (code = " + anOperator + ")");
                //break;

                // exact match
            case IndexQuery.EQ:
View Full Code Here

        buf = uri.getBytes();
        pos = 0;
        String tmp;

        if (buf.length == 0) {
            throw new DBException(FaultCodes.URI_EMPTY);
        }

        // TODO: Be Able To Handle Remote URIs
        if ((char) buf[0] != '/') {
            parseName(":"); // Ignore Protocol
View Full Code Here

        buf = uri.getBytes();
        pos = 0;
        String tmp;

        if (buf.length == 0) {
            throw new DBException(FaultCodes.URI_EMPTY);
        }

        // TODO: Be Able To Handle Remote URIs
        if ((char) buf[0] != '/') {
            parseName(":"); // Ignore Protocol
View Full Code Here

        int anOperator = theQuery.getOperator();

        // perform the requested matching type
        switch (anOperator) {
            default: // unsupported operator
                throw new DBException(FaultCodes.IDX_NOT_SUPPORTED,
                                      "Unimplemented index query operation code (code = " + anOperator + ")");

            case IndexQuery.EQ: // exact match
                aLocatorSet = (TreeSet) itsValues.get(aLowEndpoint);
                if (aLocatorSet != null) {
View Full Code Here

        buf = uri.getBytes();
        pos = 0;
        String tmp;

        if (buf.length == 0) {
            throw new DBException(FaultCodes.URI_EMPTY);
        }

        // TODO: Be Able To Handle Remote URIs
        if ((char) buf[0] != '/') {
            parseName(":"); // Ignore Protocol
View Full Code Here

        int anOperator = theQuery.getOperator();

        // perform the requested matching type
        switch (anOperator) {
            default: // unsupported operator
                throw new DBException(FaultCodes.IDX_NOT_SUPPORTED,
                                      "Unimplemented index query operation code (code = " + anOperator + ")");

            case IndexQuery.EQ: // exact match
                aLocatorSet = (TreeSet) itsValues.get(aLowEndpoint);
                if (aLocatorSet != null) {
View Full Code Here

                return deepDelete(getFile());
            } else {
                return false;
            }
        } catch (IOException e) {
            throw new DBException(FaultCodes.IDX_CORRUPTED,
                                  "Failed to delete index " + name + ", collection " + collection.getCanonicalName(), e);
        }
    }
View Full Code Here

            if (iw == null) {
                iw = new IndexWriter(getFile(), getAnalyzer(), create);
            }
        } catch (IOException e) {
            if (create) {
                throw new DBException(FaultCodes.IDX_CANNOT_CREATE,
                                      "Failed to cleate index " + name + ", collection " + collection.getCanonicalName(), e);
            } else {
                throw new DBException(FaultCodes.IDX_CORRUPTED,
                                      "Failed to open index " + name + ", collection " + collection.getCanonicalName(), e);
            }
        }
    }
View Full Code Here

        if (null != iw) {
            try {
                iw.close();
                iw = null;
            } catch (IOException e) {
                throw new DBException(FaultCodes.IDX_CORRUPTED,
                                      "Failed to close writer for index " + name + ", collection " + collection.getCanonicalName(), e);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.xindice.core.DBException

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.