@API.Internal public static final class FieldSegment.IndexSegment extends FieldSegment
FieldSegment.IndexSegment, FieldSegment.NameSegment, FieldSegment.Type
child, 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, toString
public 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 FieldSegment
true
if the current segment is identified by an indexpublic FieldSegment.IndexSegment getIndexSegment()
getIndexSegment
in class FieldSegment
protected int segmentHashCode()
segmentHashCode
in class FieldSegment
protected int segmentCompareTo(FieldSegment other)
protected boolean segmentEquals(FieldSegment obj)
segmentEquals
in class FieldSegment
public FieldSegment clone()
clone
in class FieldSegment
protected StringBuilder writeSegment(StringBuilder sb, boolean quote)
writeSegment
in class FieldSegment
public String asJsonString()
public String asJsonString(JsonOptions options)
Copyright © 2015–2019 MapR Technologies, Inc.. All rights reserved.