Package org.elasticsearch.hadoop.serialization

Examples of org.elasticsearch.hadoop.serialization.EsHadoopSerializationException


    @Override
    public float floatValue() {
        try {
            return parser.getFloatValue();
        } catch (IOException ex) {
            throw new EsHadoopSerializationException(ex);
        }
    }
View Full Code Here


    @Override
    public double doubleValue() {
        try {
            return parser.getDoubleValue();
        } catch (IOException ex) {
            throw new EsHadoopSerializationException(ex);
        }
    }
View Full Code Here

    @Override
    public boolean booleanValue() {
        try {
            return parser.getBooleanValue();
        } catch (IOException ex) {
            throw new EsHadoopSerializationException(ex);
        }
    }
View Full Code Here

    @Override
    public byte[] binaryValue() {
        try {
            return parser.getBinaryValue();
        } catch (IOException ex) {
            throw new EsHadoopSerializationException(ex);
        }
    }
View Full Code Here

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

        case BIG_INTEGER:
            return NumberType.DOUBLE;
        case BIG_DECIMAL:
            return NumberType.DOUBLE;
        }
        throw new EsHadoopSerializationException("No matching token for number_type [" + numberType + "]");
    }
View Full Code Here

        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

        try {
            this.out = out;
            // use dedicated method to lower Jackson requirement
            this.generator = JSON_FACTORY.createJsonGenerator(out, JsonEncoding.UTF8);
        } catch (IOException ex) {
            throw new EsHadoopSerializationException(ex);
        }
    }
View Full Code Here

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

    @Override
    public void writeEndArray() {
        try {
            generator.writeEndArray();
        } 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.