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
ConstructorsConstructorDescriptionNameSegment(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 withnewChildadded at the end.getPath()booleanisArray()booleanisNamed()booleannameEquals(String name) booleansegmentEquals(PathSegment obj) inttoString()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:
isArrayin classPathSegment
-
isNamed
public boolean isNamed()- Specified by:
isNamedin classPathSegment
-
getNameSegment
- Overrides:
getNameSegmentin classPathSegment
-
toString
-
segmentHashCode
public int segmentHashCode()- Specified by:
segmentHashCodein classPathSegment
-
segmentEquals
- Specified by:
segmentEqualsin classPathSegment
-
nameEquals
-
clone
- Specified by:
clonein classPathSegment
-
cloneWithNewChild
Description copied from class:PathSegmentMakes copy of segment chain withnewChildadded at the end.- Specified by:
cloneWithNewChildin classPathSegment- Parameters:
newChild- new child to add- Returns:
- full copy of segment chain with new child added at the end of chain
-