Examples of UnhandledServerException


Examples of io.crate.exceptions.UnhandledServerException

            case IntegerType.ID:
                return new IntegerColumnReference(colName);
            case GeoPointType.ID:
                return new GeoPointColumnReference(colName);
            default:
                throw new UnhandledServerException(String.format("unsupported type '%s'", referenceInfo.type().getName()));
        }
    }
View Full Code Here

Examples of io.crate.exceptions.UnhandledServerException

                } else if (splitSymbol.symbolType() == SymbolType.INPUT_COLUMN) {
                    resolvedSymbol = splitSymbol;
                } else if(symbol.symbolType().isValueSymbol()){
                    resolvedSymbol = symbol;
                } else {
                    throw new UnhandledServerException(
                            "Unexpected result column symbol: " + symbol);
                }

                context.resolvedSymbols.put(symbol, resolvedSymbol);
                context.outputs.add(resolvedSymbol);
View Full Code Here

Examples of io.crate.exceptions.UnhandledServerException

        @Override
        public Symbol visitReference(Reference symbol, PlannerContext context) {
            Symbol resolvedSymbol = context.resolvedSymbols.get(symbol);
            if (resolvedSymbol == null) {
                throw new UnhandledServerException(
                        "Cannot resolve symbol: " + symbol);

            }
            return resolvedSymbol;
        }
View Full Code Here

Examples of io.crate.exceptions.UnhandledServerException

    public Input<?> visitReference(Reference symbol, Context context) {
        // only doc level references are allowed here, since other granularities
        // should have been resolved by other visitors already
        E docLevelExpression = referenceResolver.getImplementation(symbol.info());
        if (docLevelExpression == null) {
            throw new UnhandledServerException(SymbolFormatter.format("Cannot handle Reference %s", symbol));
        }
        context.docLevelExpressions.add(docLevelExpression);
        return docLevelExpression;
    }
View Full Code Here

Examples of io.crate.exceptions.UnhandledServerException

                rowWriter = new ColumnRowWriter(output.getOutputStream(), collectExpressions, inputs, failure);
            } else {
                rowWriter = new RawRowWriter(output.getOutputStream(), failure);
            }
        } catch (IOException e) {
            failure.set(new UnhandledServerException("Failed to open output", e));
        }
    }
View Full Code Here

Examples of io.crate.exceptions.UnhandledServerException

            if (rowWriter != null) {
                rowWriter.close();
            }
            output.close();
        } catch (IOException e) {
            failure.set(new UnhandledServerException("Failed to close output", e));
        }
        if (downstream != null) {
            if (failure.get() == null){
                downstream.setNextRow(counter.get());
                downstream.upstreamFinished();
View Full Code Here

Examples of io.crate.exceptions.UnhandledServerException

                }
            } else if (granularity == RowGranularity.SHARD) {
                ImplementationSymbolVisitor.Context shardCtx = shardImplementationSymbolVisitor.process(normalizedCollectNode);
                return new SimpleOneRowCollector(shardCtx.topLevelInputs(), shardCtx.collectExpressions(), downstream);
            }
            throw new UnhandledServerException(String.format("Granularity %s not supported", granularity.name()));
        }
    }
View Full Code Here

Examples of io.crate.exceptions.UnhandledServerException

            try {
                builder.map(doc);
                builder.flush();
                outputStream.write(NEW_LINE);
            } catch (IOException e) {
                failure.set(new UnhandledServerException("Failed to write row to output", e));
            }
        }
View Full Code Here

Examples of io.crate.exceptions.UnhandledServerException

        Settings analyzerSettings;
        try {
            analyzerSettings = analysis.buildSettings();
        } catch (IOException ioe) {
            throw new UnhandledServerException("Could not build analyzer Settings", ioe);
        }

        ESClusterUpdateSettingsNode node = new ESClusterUpdateSettingsNode(analyzerSettings);
        plan.add(node);
        plan.expectsAffectedRows(true);
View Full Code Here

Examples of io.crate.exceptions.UnhandledServerException

            BytesRef value = (BytesRef)row[0];
            try {
                outputStream.write(value.bytes, value.offset, value.length);
                outputStream.write(NEW_LINE);
            } catch (IOException e) {
                failure.set(new UnhandledServerException("Failed to write row to output", e));
            }
        }
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.