MCPcopy Create free account
hub / github.com/crate/crate / getOutputTypes

Method getOutputTypes

server/src/main/java/io/crate/session/Session.java:930–939  ·  view source on GitHub ↗
(String portalName)

Source from the content-addressed store, hash-verified

928 }
929
930 @Nullable
931 public List<? extends DataType<?>> getOutputTypes(String portalName) {
932 Portal portal = getSafePortal(portalName);
933 var analyzedStatement = portal.analyzedStatement();
934 List<Symbol> fields = analyzedStatement.outputs();
935 if (fields != null) {
936 return Symbols.typeView(fields);
937 }
938 return null;
939 }
940
941 public String getQuery(String portalName) {
942 return getSafePortal(portalName).preparedStmt().rawStatement();

Callers 1

handleExecuteMethod · 0.80

Calls 4

getSafePortalMethod · 0.95
analyzedStatementMethod · 0.95
typeViewMethod · 0.95
outputsMethod · 0.65

Tested by

no test coverage detected