Package org.elasticsearch

Examples of org.elasticsearch.ElasticSearchIllegalStateException


        @Override
        public SortedNumericDocValues getLongValues() {
            try {
                return DocValues.getSortedNumeric(reader, field);
            } catch (IOException e) {
                throw new ElasticsearchIllegalStateException("Cannot load doc values", e);
            }
        }
View Full Code Here


                    return FieldData.singleton(new SingleFloatValues(single), DocValues.unwrapSingletonBits(raw));
                } else {
                    return new MultiFloatValues(raw);
                }
            } catch (IOException e) {
                throw new ElasticsearchIllegalStateException("Cannot load doc values", e);
            }
        }
View Full Code Here

        public SortedNumericDoubleValues getDoubleValues() {
            try {
                SortedNumericDocValues raw = DocValues.getSortedNumeric(reader, field);
                return FieldData.sortableLongBitsToDoubles(raw);
            } catch (IOException e) {
                throw new ElasticsearchIllegalStateException("Cannot load doc values", e);
            }
        }
View Full Code Here

    @Override
    public AtomicGeoPointFieldData load(LeafReaderContext context) {
        try {
            return new GeoPointBinaryDVAtomicFieldData(DocValues.getBinary(context.reader(), fieldNames.indexName()));
        } catch (IOException e) {
            throw new ElasticsearchIllegalStateException("Cannot load doc values", e);
        }
    }
View Full Code Here

                try {
                    final NumericDocValues values = DocValues.getNumeric(reader, field);
                    final Bits docsWithField = DocValues.getDocsWithField(reader, field);
                    return DocValues.singleton(values, docsWithField);
                } catch (IOException e) {
                    throw new ElasticsearchIllegalStateException("Cannot load doc values", e);
                }
            }
           
            @Override
            public Iterable<? extends Accountable> getChildResources() {
View Full Code Here

    }

    public TransportClientNodesService addTransportAddresses(TransportAddress... transportAddresses) {
        synchronized (mutex) {
            if (closed) {
                throw new ElasticsearchIllegalStateException("transport client is closed, can't add an address");
            }
            List<TransportAddress> filtered = Lists.newArrayListWithExpectedSize(transportAddresses.length);
            for (TransportAddress transportAddress : transportAddresses) {
                boolean found = false;
                for (DiscoveryNode otherNode : listedNodes) {
View Full Code Here

    }

    public TransportClientNodesService removeTransportAddress(TransportAddress transportAddress) {
        synchronized (mutex) {
            if (closed) {
                throw new ElasticsearchIllegalStateException("transport client is closed, can't remove an address");
            }
            ImmutableList.Builder<DiscoveryNode> builder = ImmutableList.builder();
            for (DiscoveryNode otherNode : listedNodes) {
                if (!otherNode.address().equals(transportAddress)) {
                    builder.add(otherNode);
View Full Code Here

            return docCount;
        }

        public long getDocCountError() {
            if (!showDocCountError) {
                throw new ElasticsearchIllegalStateException("show_terms_doc_count_error is false");
            }
            return docCountError;
        }
View Full Code Here

            this.childFilter = childFilter;
        }

        @Override
        protected Aggregator createUnmapped(AggregationContext aggregationContext, Aggregator parent, Map<String, Object> metaData) {
            throw new ElasticsearchIllegalStateException("[children] aggregation doesn't support unmapped");
        }
View Full Code Here

        try {
            final BinaryDocValues values = DocValues.getBinary(reader, field);
            final Bits docsWithField = DocValues.getDocsWithField(reader, field);
            return FieldData.singleton(values, docsWithField);
        } catch (IOException e) {
            throw new ElasticsearchIllegalStateException("Cannot load doc values", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.ElasticSearchIllegalStateException

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.