Class Source
java.lang.Object
org.elasticsearch.xpack.esql.core.tree.Source
- All Implemented Interfaces:
Writeable,WarningSourceLocation
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleaninthashCode()intstatic SourcereadEmpty(StreamInput in) static Sourcesource()static SourceDeprecated.Sources created by this can't be correctly deserialized.text()toString()viewName()Returns the name of the view this source came from, or null if it came from the original query.withViewName(String viewName) Returns a new Source with the same location and text but associated with the given view name.voidwriteTo(StreamOutput out)
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Source
-
Source
-
Source
-
-
Method Details
-
withViewName
Returns a new Source with the same location and text but associated with the given view name. This is used during view resolution to tag Source objects with their origin view. -
readFrom
- Throws:
IOException
-
readEmpty
Read the components of aSourceand throw it away, returningEMPTY. Use this when you will never use theSourceand there is no chance of getting aPlanStreamInput.- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
source
-
text
- Specified by:
textin interfaceWarningSourceLocation
-
viewName
Returns the name of the view this source came from, or null if it came from the original query.- Specified by:
viewNamein interfaceWarningSourceLocation
-
lineNumber
public int lineNumber()- Specified by:
lineNumberin interfaceWarningSourceLocation
-
columnNumber
public int columnNumber()- Specified by:
columnNumberin interfaceWarningSourceLocation
-
hashCode
public int hashCode() -
equals
-
toString
-
synthetic
Deprecated.Sources created by this can't be correctly deserialized. For use in tests only.
-