Package io.crate.exceptions

Examples of io.crate.exceptions.FailedShardsException


                @Override
                public void run() {

                    try {
                        if(shardFailures != null && shardFailures.length() > 0){
                            FailedShardsException ex = new FailedShardsException(shardFailures.toArray(
                                    new ShardSearchFailure[shardFailures.length()]));
                            result.setException(ex);
                            return;
                        }
                        InternalSearchResponse response = searchPhaseController.merge(sortedShardList, firstResults, fetchResults);
View Full Code Here


        }

        @Override
        public void onResponse(CountResponse countResponse) {
            if (countResponse.getFailedShards() > 0) {
                onFailure(new FailedShardsException(countResponse.getShardFailures()));
            } else {
                result.set(new QueryResult(new Object[][] { new Object[] {countResponse.getCount() }}));
            }
        }
View Full Code Here

TOP

Related Classes of io.crate.exceptions.FailedShardsException

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.