Sha256: ae39930e801ba49876a75e3b0141eb89f5125df0590cebd9f28df73a08b6bd20

Contents?: true

Size: 1.59 KB

Versions: 7

Compression:

Stored size: 1.59 KB

Contents

// Copyright 2012 Cloudera Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

namespace cpp impala
namespace java com.cloudera.impala.thrift
namespace rb Impala.Protocol
namespace rb Impala.Protocol

include "Types.thrift"

// Serialized, self-contained version of a RowBatch (in be/src/runtime/row-batch.h).
struct TRowBatch {
  // total number of rows contained in this batch
  1: required i32 num_rows

  // row composition
  2: required list<Types.TTupleId> row_tuples

  // There are a total of num_rows * num_tuples_per_row offsets
  // pointing into tuple_data.
  // An offset of -1 records a NULL.
  3: list<i32> tuple_offsets

  // binary tuple data, broken up into chunks
  // TODO: figure out how we can avoid copying the data during TRowBatch construction
  4: list<string> tuple_data
}

// this is a union over all possible return types
struct TColumnValue {
  // TODO: use <type>_val instead of camelcase
  1: optional bool boolVal
  2: optional i32 intVal
  3: optional i64 longVal
  4: optional double doubleVal
  5: optional string stringVal
}

struct TResultRow {
  1: list<TColumnValue> colVals
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
impala-0.1.6 thrift/Data.thrift
impala-0.1.5 thrift/Data.thrift
impala-0.1.4 thrift/Data.thrift
impala-0.1.3 thrift/Data.thrift
impala-0.1.2 thrift/Data.thrift
impala-0.1.1 thrift/Data.thrift
impala-0.1.0 thrift/Data.thrift