Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Public Member Functions | |
TupleDescriptor | createTupleDescriptor (String debugName) |
TupleDescriptor | copyTupleDescriptor (TupleId srcId, String debugName) |
SlotDescriptor | addSlotDescriptor (TupleDescriptor d) |
SlotDescriptor | copySlotDescriptor (TupleDescriptor dest, SlotDescriptor src) |
TupleDescriptor | getTupleDesc (TupleId id) |
SlotDescriptor | getSlotDesc (SlotId id) |
Collection< TupleDescriptor > | getTupleDescs () |
Collection< SlotDescriptor > | getSlotDescs () |
TupleId | getMaxTupleId () |
SlotId | getMaxSlotId () |
void | addReferencedTable (Table table) |
void | addReferencedPartition (Table table, long partitionId) |
void | markSlotsMaterialized (List< SlotId > ids) |
List< SlotId > | getTupleSlotIds (List< SlotId > slotIds, TupleId tupleId) |
void | computeMemLayout () |
TDescriptorTable | toThrift () |
String | debugString () |
Private Member Functions | |
HashSet< Long > | getReferencedPartitions (Table table) |
Private Attributes | |
final HashMap< TupleId, TupleDescriptor > | tupleDescs_ = Maps.newHashMap() |
final HashMap< SlotId, SlotDescriptor > | slotDescs_ = Maps.newHashMap() |
final IdGenerator< TupleId > | tupleIdGenerator_ = TupleId.createGenerator() |
final IdGenerator< SlotId > | slotIdGenerator_ = SlotId.createGenerator() |
final List< Table > | referencedTables_ = Lists.newArrayList() |
final HashMap< Table, HashSet < Long > > | referencedPartitionsPerTable_ |
Repository for tuple (and slot) descriptors. Descriptors should only be created through this class, which assigns them unique ids.
Definition at line 36 of file DescriptorTable.java.
|
inline |
Add the partition with ID partitionId to the set of referenced partitions for the given table.
Definition at line 116 of file DescriptorTable.java.
References com.cloudera.impala.analysis.DescriptorTable.getReferencedPartitions().
|
inline |
Definition at line 95 of file DescriptorTable.java.
|
inline |
Definition at line 71 of file DescriptorTable.java.
References com.cloudera.impala.analysis.DescriptorTable.slotIdGenerator_.
|
inline |
Definition at line 143 of file DescriptorTable.java.
References com.cloudera.impala.analysis.DescriptorTable.tupleDescs_.
|
inline |
Append copy of src to dest.
Definition at line 81 of file DescriptorTable.java.
References com.cloudera.impala.analysis.DescriptorTable.slotIdGenerator_.
Referenced by com.cloudera.impala.analysis.DescriptorTable.copyTupleDescriptor().
|
inline |
Create copy of src with new id. The returned descriptor has its mem layout computed.
Definition at line 58 of file DescriptorTable.java.
References com.cloudera.impala.analysis.DescriptorTable.copySlotDescriptor(), com.cloudera.impala.analysis.TupleDescriptor.getByteSize(), com.cloudera.impala.analysis.TupleDescriptor.getSlots(), and com.cloudera.impala.analysis.DescriptorTable.tupleIdGenerator_.
|
inline |
Definition at line 48 of file DescriptorTable.java.
References com.cloudera.impala.analysis.DescriptorTable.tupleIdGenerator_.
|
inline |
Definition at line 180 of file DescriptorTable.java.
References com.cloudera.impala.analysis.DescriptorTable.tupleDescs_.
|
inline |
Definition at line 93 of file DescriptorTable.java.
|
inline |
Definition at line 92 of file DescriptorTable.java.
|
inlineprivate |
Find the set of referenced partitions for the given table. Allocates a set if none has been allocated for the table yet.
Definition at line 103 of file DescriptorTable.java.
Referenced by com.cloudera.impala.analysis.DescriptorTable.addReferencedPartition(), and com.cloudera.impala.analysis.DescriptorTable.toThrift().
|
inline |
Definition at line 89 of file DescriptorTable.java.
Referenced by com.cloudera.impala.analysis.Analyzer.createEqPredicate(), com.cloudera.impala.analysis.Analyzer.getBoundPredicates(), com.cloudera.impala.analysis.Analyzer.getEquivSlots(), com.cloudera.impala.analysis.DescriptorTable.getTupleSlotIds(), and com.cloudera.impala.analysis.DescriptorTable.markSlotsMaterialized().
|
inline |
Definition at line 91 of file DescriptorTable.java.
|
inline |
Definition at line 88 of file DescriptorTable.java.
Referenced by com.cloudera.impala.planner.HdfsScanNode.prunePartitions().
|
inline |
Definition at line 90 of file DescriptorTable.java.
|
inline |
Return all ids in slotIds that belong to tupleId.
Definition at line 132 of file DescriptorTable.java.
References com.cloudera.impala.analysis.DescriptorTable.getSlotDesc().
|
inline |
Marks all slots in list as materialized.
Definition at line 123 of file DescriptorTable.java.
References com.cloudera.impala.analysis.DescriptorTable.getSlotDesc().
|
inline |
|
private |
Definition at line 45 of file DescriptorTable.java.
|
private |
Definition at line 43 of file DescriptorTable.java.
Referenced by com.cloudera.impala.analysis.DescriptorTable.toThrift().
|
private |
Definition at line 38 of file DescriptorTable.java.
|
private |
Definition at line 40 of file DescriptorTable.java.
Referenced by com.cloudera.impala.analysis.DescriptorTable.addSlotDescriptor(), and com.cloudera.impala.analysis.DescriptorTable.copySlotDescriptor().
|
private |
Definition at line 37 of file DescriptorTable.java.
Referenced by com.cloudera.impala.analysis.DescriptorTable.computeMemLayout(), com.cloudera.impala.analysis.DescriptorTable.debugString(), and com.cloudera.impala.analysis.DescriptorTable.toThrift().
|
private |
Definition at line 39 of file DescriptorTable.java.
Referenced by com.cloudera.impala.analysis.DescriptorTable.copyTupleDescriptor(), and com.cloudera.impala.analysis.DescriptorTable.createTupleDescriptor().