Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
partitioned-hash-join-node.inline.h
Go to the documentation of this file.
1 // Copyright 2012 Cloudera Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef IMPALA_EXEC_PARTITIONED_HASH_JOIN_NODE_INLINE_H
16 #define IMPALA_EXEC_PARTITIONED_HASH_JOIN_NODE_INLINE_H
17 
19 
21 
22 namespace impala {
23 
25  current_probe_row_ = NULL;
26  probe_batch_pos_ = 0;
27  matched_probe_ = true;
29 }
30 
32  TupleRow* row) {
33  if (LIKELY(stream->AddRow(row))) return true;
34  return AppendRowStreamFull(stream, row);
35 }
36 
37 }
38 
39 #endif
The underlying memory management is done by the BufferedBlockMgr.
bool AppendRow(BufferedTupleStream *stream, TupleRow *row)
void SetAtEnd()
Resets everything but the pointer to the hash table.
void ResetForProbe()
Prepares for probing the next batch.
bool AppendRowStreamFull(BufferedTupleStream *stream, TupleRow *row)
bool AddRow(TupleRow *row, uint8_t **dst=NULL)
#define LIKELY(expr)
Definition: compiler-util.h:32
HashTable::Iterator hash_tbl_iterator_
The iterator that corresponds to the look up of current_probe_row_.