15 package com.cloudera.impala.analysis;
17 import java.util.Collections;
18 import java.util.List;
23 import com.cloudera.impala.thrift.TSlotDescriptor;
24 import com.google.common.base.Joiner;
25 import com.google.common.base.Objects;
26 import com.google.common.base.Preconditions;
27 import com.google.common.collect.Lists;
86 this.nullIndicatorByte_ = nullIndicatorByte;
90 this.nullIndicatorBit_ = nullIndicatorBit;
101 public void setByteSize(
int byteSize) { this.byteSize_ = byteSize; }
103 public void setByteOffset(
int byteOffset) { this.byteOffset_ = byteOffset; }
104 public void setSlotIdx(
int slotIdx) { this.slotIdx_ = slotIdx; }
114 Preconditions.checkNotNull(
path);
115 Preconditions.checkNotNull(path.getRootDesc());
116 Preconditions.checkState(path.getRootDesc() ==
parent_);
118 type_ = path_.destType();
125 if (
path_ == null)
return null;
126 return path_.destColumn();
145 Preconditions.checkNotNull(
parent_);
151 return Lists.newArrayList(path_.getAbsolutePath());
156 TSlotDescriptor result =
new TSlotDescriptor(
157 id_.asInt(), parent_.getId().asInt(), type_.toThrift(),
165 String typeStr = (
type_ == null ?
"null" : type_.toString());
166 return Objects.toStringHelper(
this)
167 .add(
"id",
id_.asInt())
168 .add(
"path", pathStr)
169 .add(
"type", typeStr)
void setNullIndicatorByte(int nullIndicatorByte)
List< Expr > getSourceExprs()
void setNullIndicatorBit(int nullIndicatorBit)
int getNullIndicatorByte()
string path("/usr/lib/sasl2:/usr/lib64/sasl2:/usr/local/lib/sasl2:/usr/lib/x86_64-linux-gnu/sasl2")
void setByteOffset(int byteOffset)
List< Integer > getAbsolutePath()
void setIsNullable(boolean value)
void setStats(ColumnStats stats)
TSlotDescriptor toThrift()
int getNullIndicatorBit()
void setSourceExpr(Expr expr)
void setByteSize(int byteSize)
void addSourceExpr(Expr expr)
List< Expr > sourceExprs_
void setLabel(String label)
SlotDescriptor(SlotId id, TupleDescriptor parent, SlotDescriptor src)
void setIsMaterialized(boolean value)
void setSourceExprs(List< Expr > exprs)
SlotDescriptor(SlotId id, TupleDescriptor parent)
final TupleDescriptor parent_
void setSlotIdx(int slotIdx)
List< String > getRawPath()
TupleDescriptor getParent()