@API.Internal public static final class FieldSegment.IndexSegment extends FieldSegment
FieldSegment.IndexSegment, FieldSegment.NameSegment, FieldSegment.Typechild, FIELD_SEGMENT_COMPARATOR, hash, type| Constructor and Description |
|---|
IndexSegment(int index,
FieldSegment child) |
IndexSegment(String numberAsText,
FieldSegment child)
For Antlr parser's use only.
|
| Modifier and Type | Method and Description |
|---|---|
String |
asJsonString() |
String |
asJsonString(JsonOptions options) |
FieldSegment |
clone() |
int |
getIndex() |
FieldSegment.IndexSegment |
getIndexSegment() |
boolean |
hasIndex() |
boolean |
isIndexed() |
protected int |
segmentCompareTo(FieldSegment other) |
protected boolean |
segmentEquals(FieldSegment obj) |
protected int |
segmentHashCode() |
protected StringBuilder |
writeSegment(StringBuilder sb,
boolean quote) |
asPathString, compareTo, contains, equals, getChild, getNameSegment, hashCode, isArray, isLastPath, isLeaf, isMap, isNamed, toStringpublic IndexSegment(String numberAsText, FieldSegment child)
@API.Internal public IndexSegment(int index, FieldSegment child)
public boolean hasIndex()
public int getIndex()
public boolean isIndexed()
isIndexed in class FieldSegmenttrue if the current segment is identified by an indexpublic FieldSegment.IndexSegment getIndexSegment()
getIndexSegment in class FieldSegmentprotected int segmentHashCode()
segmentHashCode in class FieldSegmentprotected int segmentCompareTo(FieldSegment other)
protected boolean segmentEquals(FieldSegment obj)
segmentEquals in class FieldSegmentpublic FieldSegment clone()
clone in class FieldSegmentprotected StringBuilder writeSegment(StringBuilder sb, boolean quote)
writeSegment in class FieldSegmentpublic String asJsonString()
public String asJsonString(JsonOptions options)
Copyright © 2015–2018 MapR Technologies, Inc.. All rights reserved.