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
ConstructorsConstructorDescriptionArraySegment(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 withnewChildadded at the end.intgetIndex()booleanhasIndex()booleanisArray()booleanisNamed()booleansegmentEquals(PathSegment obj) inttoString()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:
isArrayin classPathSegment
-
isNamed
public boolean isNamed()- Specified by:
isNamedin classPathSegment
-
getArraySegment
- Overrides:
getArraySegmentin classPathSegment
-
toString
-
segmentHashCode
public int segmentHashCode()- Specified by:
segmentHashCodein classPathSegment
-
segmentEquals
- Specified by:
segmentEqualsin classPathSegment
-
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
-