Package org.elasticsearch.hadoop.serialization

Examples of org.elasticsearch.hadoop.serialization.EsHadoopSerializationException


        case 30: //DataType.DATETIME
            generator.writeString(PigUtils.convertDateToES(object));
            break;
        // DateTime introduced in Pig 12
        case 65: //DataType.BIGINTEGER
            throw new EsHadoopSerializationException("Big integers are not supported by Elasticsearch - consider using a different type (such as string)");
        // DateTime introduced in Pig 12
        case 70: //DataType.BIGDECIMAL
            throw new EsHadoopSerializationException("Big decimals are not supported by Elasticsearch - consider using a different type (such as string)");
        case DataType.MAP:
            ResourceSchema nestedSchema = field.getSchema();

            // empty tuple shortcut
            if (nestedSchema == null) {
View Full Code Here


            Object o = ois.readObject();
            return (T) o;
        } catch (ClassNotFoundException ex) {
            throw new EsHadoopIllegalStateException("cannot deserialize object", ex);
        } catch (IOException ex) {
            throw new EsHadoopSerializationException("cannot deserialize object", ex);
        } finally {
            close(ois);
        }
    }
View Full Code Here

    public JacksonJsonParser(InputStream in) {
        try {
            this.parser = JSON_FACTORY.createJsonParser(in);
        } catch (IOException ex) {
            throw new EsHadoopSerializationException(ex);
        }
    }
View Full Code Here

    public JacksonJsonParser(byte[] content, int offset, int length) {
        try {
            this.parser = JSON_FACTORY.createJsonParser(content, offset, length);
        } catch (IOException ex) {
            throw new EsHadoopSerializationException(ex);
        }
    }
View Full Code Here

    @Override
    public Token nextToken() {
        try {
            return convertToken(parser.nextToken());
        } catch (IOException ex) {
            throw new EsHadoopSerializationException(ex);
        }
    }
View Full Code Here

        case VALUE_EMBEDDED_OBJECT:
            return Token.VALUE_EMBEDDED_OBJECT;
        case NOT_AVAILABLE:
            throw new UnsupportedOperationException();
        }
        throw new EsHadoopSerializationException("No matching token for json_token [" + token + "]");
    }
View Full Code Here

    @Override
    public void skipChildren() {
        try {
            parser.skipChildren();
        } catch (IOException ex) {
            throw new EsHadoopSerializationException(ex);
        }
    }
View Full Code Here

    @Override
    public String currentName() {
        try {
            return parser.getCurrentName();
        } catch (IOException ex) {
            throw new EsHadoopSerializationException(ex);
        }
    }
View Full Code Here

    @Override
    public String text() {
        try {
            return parser.getText();
        } catch (IOException ex) {
            throw new EsHadoopSerializationException(ex);
        }
    }
View Full Code Here

    @Override
    public Number numberValue() {
        try {
            return parser.getNumberValue();
        } catch (IOException ex) {
            throw new EsHadoopSerializationException(ex);
        }
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.hadoop.serialization.EsHadoopSerializationException

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.