public Tuple(TupleInfo info) { this.info = info; this.values = new Object[info.size()]; }
public HiveEnumerator(OLAPContext olapContext) { this.olapContext = olapContext; this.current = new Object[olapContext.returnTupleInfo.size()]; }
public DictionaryEnumerator(OLAPContext olapContext) { Preconditions.checkArgument(olapContext.allColumns.size() == 1, "The query should only relate to one column"); dictCol = olapContext.allColumns.iterator().next(); Preconditions.checkArgument(ifColumnHaveDictionary(dictCol, olapContext.realization, false), "The column " + dictCol + " should be encoded as dictionary for " + olapContext.realization); dictList = getAllDictionaries(dictCol, olapContext.realization); current = new Object[olapContext.returnTupleInfo.size()]; dictColIdx = olapContext.returnTupleInfo.getColumnIndex(dictCol); reset(); logger.info("Will use DictionaryEnumerator to answer query which is only related to column " + dictCol); }
public Tuple(TupleInfo info) { this.info = info; this.values = new Object[info.size()]; }
public HiveEnumerator(OLAPContext olapContext) { this.olapContext = olapContext; this.current = new Object[olapContext.returnTupleInfo.size()]; }
public Tuple(TupleInfo info) { this.info = info; this.values = new Object[info.size()]; }
public DictionaryEnumerator(OLAPContext olapContext) { Preconditions.checkArgument(olapContext.allColumns.size() == 1, "The query should only relate to one column"); dictCol = olapContext.allColumns.iterator().next(); Preconditions.checkArgument(ifColumnHaveDictionary(dictCol, olapContext.realization, false), "The column " + dictCol + " should be encoded as dictionary for " + olapContext.realization); dictList = getAllDictionaries(dictCol, olapContext.realization); current = new Object[olapContext.returnTupleInfo.size()]; dictColIdx = olapContext.returnTupleInfo.getColumnIndex(dictCol); reset(); logger.info("Will use DictionaryEnumerator to answer query which is only related to column " + dictCol); }