Class PathSegment.ArraySegment
java.lang.Object
org.apache.drill.common.expression.PathSegment
org.apache.drill.common.expression.PathSegment.ArraySegment
- 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
ConstructorDescriptionArraySegment
(int index) ArraySegment
(int index, Object originalValue, TypeProtos.MajorType valueType) ArraySegment
(int index, PathSegment child) ArraySegment
(String numberAsText) ArraySegment
(String numberAsText, PathSegment child) ArraySegment
(PathSegment child) -
Method Summary
Modifier and TypeMethodDescriptionclone()
cloneWithNewChild
(PathSegment newChild) Makes copy of segment chain withnewChild
added at the end.int
getIndex()
boolean
hasIndex()
boolean
isArray()
boolean
isNamed()
boolean
segmentEquals
(PathSegment obj) int
toString()
Methods inherited from class org.apache.drill.common.expression.PathSegment
contains, equals, getChild, getNameSegment, getOriginalValue, getOriginalValueType, hashCode, isLastPath
-
Constructor Details
-
ArraySegment
-
ArraySegment
-
ArraySegment
-
ArraySegment
-
ArraySegment
public ArraySegment(int index) -
ArraySegment
-
-
Method Details
-
hasIndex
public boolean hasIndex() -
getIndex
public int getIndex() -
isArray
public boolean isArray()- Specified by:
isArray
in classPathSegment
-
isNamed
public boolean isNamed()- Specified by:
isNamed
in classPathSegment
-
getArraySegment
- Overrides:
getArraySegment
in classPathSegment
-
toString
-
segmentHashCode
public int segmentHashCode()- Specified by:
segmentHashCode
in classPathSegment
-
segmentEquals
- Specified by:
segmentEquals
in classPathSegment
-
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
-