Package org.apache.calcite.schema
Class Schemas.PathImpl
- java.lang.Object
-
- All Implemented Interfaces:
java.lang.Iterable<Pair<java.lang.String,Schema>>
,java.util.Collection<Pair<java.lang.String,Schema>>
,java.util.List<Pair<java.lang.String,Schema>>
,java.util.RandomAccess
,Path
- Enclosing class:
- Schemas
private static class Schemas.PathImpl extends java.util.AbstractList<Pair<java.lang.String,Schema>> implements Path
Implementation ofPath
.
-
-
Field Summary
Fields Modifier and Type Field Description private static Schemas.PathImpl
EMPTY
private com.google.common.collect.ImmutableList<Pair<java.lang.String,Schema>>
pairs
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Pair<java.lang.String,Schema>
get(int index)
int
hashCode()
java.util.List<java.lang.String>
names()
Returns the names of this path, not including the name of the root.Path
parent()
Returns the parent path, or null if the path is empty.java.util.List<Schema>
schemas()
Returns the schemas of this path.int
size()
-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
-
-
-
Field Detail
-
EMPTY
private static final Schemas.PathImpl EMPTY
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
-
hashCode
public int hashCode()
-
size
public int size()
-
parent
public Path parent()
Description copied from interface:Path
Returns the parent path, or null if the path is empty.
-
names
public java.util.List<java.lang.String> names()
Description copied from interface:Path
Returns the names of this path, not including the name of the root.
-
-