Class PathSegment.NameSegment
java.lang.Object
org.apache.drill.common.expression.PathSegment
org.apache.drill.common.expression.PathSegment.NameSegment
- Enclosing class:
- PathSegment
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.common.expression.PathSegment
PathSegment.ArraySegment, PathSegment.NameSegment
-
Field Summary
Fields inherited from class org.apache.drill.common.expression.PathSegment
originalValue, originalValueType
-
Constructor Summary
ConstructorDescriptionNameSegment
(CharSequence n, Object originalValue, TypeProtos.MajorType valueType) NameSegment
(CharSequence n, PathSegment child) -
Method Summary
Modifier and TypeMethodDescriptionclone()
cloneWithNewChild
(PathSegment newChild) Makes copy of segment chain withnewChild
added at the end.getPath()
boolean
isArray()
boolean
isNamed()
boolean
nameEquals
(String name) boolean
segmentEquals
(PathSegment obj) int
toString()
Methods inherited from class org.apache.drill.common.expression.PathSegment
contains, equals, getArraySegment, getChild, getOriginalValue, getOriginalValueType, hashCode, isLastPath
-
Constructor Details
-
NameSegment
-
NameSegment
-
NameSegment
-
-
Method Details
-
getPath
-
isArray
public boolean isArray()- Specified by:
isArray
in classPathSegment
-
isNamed
public boolean isNamed()- Specified by:
isNamed
in classPathSegment
-
getNameSegment
- Overrides:
getNameSegment
in classPathSegment
-
toString
-
segmentHashCode
public int segmentHashCode()- Specified by:
segmentHashCode
in classPathSegment
-
segmentEquals
- Specified by:
segmentEquals
in classPathSegment
-
nameEquals
-
clone
- Specified by:
clone
in classPathSegment
-
cloneWithNewChild
Description copied from class:PathSegment
Makes copy of segment chain withnewChild
added at the end.- Specified by:
cloneWithNewChild
in classPathSegment
- Parameters:
newChild
- new child to add- Returns:
- full copy of segment chain with new child added at the end of chain
-