Examples of HyracksDataException


Examples of edu.uci.ics.hyracks.api.exceptions.HyracksDataException

            }
        } finally {
            try {
                bbis.close();
            } catch (IOException e) {
                throw new HyracksDataException(e);
            }
        }
        return resultRecords;
    }
View Full Code Here

Examples of edu.uci.ics.hyracks.api.exceptions.HyracksDataException

            DataInputStream di, ArrayBackedValueStorage abvs, XMLParser parser) throws HyracksDataException {
        String fName;
        try {
            fName = getStringFromPointable(stringp, bbis, di);
        } catch (SystemException e) {
            throw new HyracksDataException(e);
        }
        File file = new File(fName);
        parser.parseFile(file, in, abvs);
    }
View Full Code Here

Examples of edu.uci.ics.hyracks.api.exceptions.HyracksDataException

            parser = XMLReaderFactory.createXMLReader();
            handler = new SAXContentHandler(attachTypes, idProvider);
            parser.setContentHandler(handler);
            parser.setProperty("http://xml.org/sax/properties/lexical-handler", handler);
        } catch (Exception e) {
            throw new HyracksDataException(e.toString());
        }
    }
View Full Code Here

Examples of edu.uci.ics.hyracks.api.exceptions.HyracksDataException

        } catch (FileNotFoundException e) {
            throw new VXQueryFileNotFoundException(e, file);
        } catch (SAXException e) {
            throw new VXQueryParseException(e, file);
        } catch (IOException e) {
            throw new HyracksDataException(e);
        }
    }
View Full Code Here

Examples of edu.uci.ics.hyracks.api.exceptions.HyracksDataException

            public void writeNull(DataOutput out) throws HyracksDataException {
                XDMConstants.setEmptySequence(vp);
                try {
                    out.write(vp.getByteArray(), vp.getStartOffset(), vp.getLength());
                } catch (IOException e) {
                    throw new HyracksDataException(e);
                }
            }
        };
    }
View Full Code Here

Examples of edu.uci.ics.hyracks.api.exceptions.HyracksDataException

        // Send to the writer.
        if (!addNodeToTupleAppender(result, t)) {
            FrameUtils.flushFrame(frame, writer);
            appender.reset(frame, true);
            if (!addNodeToTupleAppender(result, t)) {
                throw new HyracksDataException("Could not write frame.");
            }
        }
    }
View Full Code Here

Examples of edu.uci.ics.hyracks.api.exceptions.HyracksDataException

                            }
                            parser.parseElements(xmlDocument, writer, fta, tupleIndex);
                        }
                    }
                } else {
                    throw new HyracksDataException("Invalid directory parameter (" + nodeId + ":"
                            + collectionDirectory.getAbsolutePath() + ") passed to collection.");
                }
            }

            @Override
View Full Code Here

Examples of edu.uci.ics.hyracks.api.exceptions.HyracksDataException

            DataInputStream di, ArrayBackedValueStorage abvs, XMLParser parser) throws HyracksDataException {
        String fName;
        try {
            fName = getStringFromPointable(stringp, bbis, di);
        } catch (SystemException e) {
            throw new HyracksDataException(e);
        }
        File file = new File(fName);
        parser.parseDocument(file, abvs);
    }
View Full Code Here

Examples of edu.uci.ics.hyracks.api.exceptions.HyracksDataException

            }
            parser.setContentHandler(handler);
            parser.setProperty("http://xml.org/sax/properties/lexical-handler", handler);
            in = new InputSource();
        } catch (Exception e) {
            throw new HyracksDataException(e.toString());
        }
    }
View Full Code Here

Examples of edu.uci.ics.hyracks.api.exceptions.HyracksDataException

            in.setCharacterStream(input);
            parser.parse(in);
            handler.writeDocument(abvs);
            input.close();
        } catch (FileNotFoundException e) {
            HyracksDataException hde = new VXQueryFileNotFoundException(e, file);
            hde.setNodeId(nodeId);
            throw hde;
        } catch (SAXException e) {
            HyracksDataException hde = new VXQueryParseException(e, file);
            hde.setNodeId(nodeId);
            throw hde;
        } catch (IOException e) {
            HyracksDataException hde = new HyracksDataException(e);
            hde.setNodeId(nodeId);
            throw hde;
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.