OmniSciDB  ca0c39ec8f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.dtypes Namespace Reference

Classes

class  DataType
 

Functions

def DateFromTicks
 
def TimeFromTicks
 
def TimestampFromTicks
 

Variables

 T = TDatumType
 
 Binary = memoryview
 
 Date = datetime.date
 
 Time = datetime.time
 
 Timestamp = datetime.datetime
 
tuple BINARY = DataType([])
 
tuple STRING
 
tuple NUMBER
 
tuple DATETIME = DataType([T.DATE, T.TIME, T.TIMESTAMP])
 
tuple ROWID = DataType([])
 

Detailed Description

https://www.python.org/dev/peps/pep-0249/#type-objects

Function Documentation

def heavydb.dtypes.DateFromTicks (   ticks)

Definition at line 58 of file dtypes.py.

References heavydb.dtypes.Date.

58 
59 def DateFromTicks(ticks):
60  return Date(*time.localtime(ticks)[:3])
61 
def DateFromTicks
Definition: dtypes.py:58
def heavydb.dtypes.TimeFromTicks (   ticks)

Definition at line 62 of file dtypes.py.

References heavydb.dtypes.Time.

62 
63 def TimeFromTicks(ticks):
64  return Time(*time.localtime(ticks)[3:6])
65 
def TimeFromTicks
Definition: dtypes.py:62
def heavydb.dtypes.TimestampFromTicks (   ticks)

Definition at line 66 of file dtypes.py.

66 
67 def TimestampFromTicks(ticks):
68  return Timestamp(*time.localtime(ticks)[:6])
def TimestampFromTicks
Definition: dtypes.py:66

Variable Documentation

heavydb.dtypes.Binary = memoryview

Definition at line 25 of file dtypes.py.

tuple heavydb.dtypes.BINARY = DataType([])

Definition at line 30 of file dtypes.py.

heavydb.dtypes.Date = datetime.date

Definition at line 26 of file dtypes.py.

Referenced by ai.heavy.jdbc.HeavyAIStatementTest.create_types(), heavydb.dtypes.DateFromTicks(), ai.heavy.jdbc.HeavyAIStatementTest.escape_function1(), ai.heavy.jdbc.HeavyAIStatementTest.escape_function3(), ai.heavy.jdbc.HeavyAIResultSet.getArray(), ai.heavy.jdbc.HeavyAIResultSet.getDate(), ai.heavy.jdbc.HeavyAIArray.getResultSet(), com.mapd.tests.ForeignTableRefreshConcurrencyTest.getTimeStamp(), and com.mapd.utility.SQLImporter.setColValue().

tuple heavydb.dtypes.DATETIME = DataType([T.DATE, T.TIME, T.TIMESTAMP])

Definition at line 54 of file dtypes.py.

tuple heavydb.dtypes.NUMBER
Initial value:
2  [
3  T.SMALLINT,
4  T.INT,
5  T.BIGINT,
6  T.FLOAT,
7  T.DECIMAL,
8  T.DOUBLE,
9  T.BOOL,
10  T.TINYINT,
11  ]
12 )

Definition at line 42 of file dtypes.py.

tuple heavydb.dtypes.ROWID = DataType([])

Definition at line 55 of file dtypes.py.

tuple heavydb.dtypes.STRING
Initial value:
2  [
3  T.STR,
4  T.POINT,
5  T.LINESTRING,
6  T.POLYGON,
7  T.MULTIPOLYGON,
8  T.GEOMETRY,
9  T.GEOGRAPHY,
10  ]
11 )

Definition at line 31 of file dtypes.py.

Referenced by import_export::TypedImportBuffer.add_arrow_values(), com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Base64Decode.Base64Decode(), com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Base64Encode.Base64Encode(), getOmnisciType(), com.mapd.calcite.parser.HeavyDBSqlOperatorTable.PgILike.getSignatureFamilies(), com.mapd.calcite.parser.HeavyDBSqlOperatorTable.RegexpLike.getSignatureFamilies(), com.mapd.calcite.parser.HeavyDBSqlOperatorTable.SplitPart.getSignatureFamilies(), com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Replace.getSignatureFamilies(), com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Reverse.getSignatureFamilies(), com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Repeat.getSignatureFamilies(), com.mapd.calcite.parser.HeavyDBSqlOperatorTable.RegexpReplace.getSignatureFamilies(), com.mapd.calcite.parser.HeavyDBSqlOperatorTable.RegexpSubstr.getSignatureFamilies(), com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Base64Encode.getSignatureFamilies(), com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Base64Decode.getSignatureFamilies(), ArrowForeignStorageBase.parseArrowTable(), com.mapd.calcite.parser.HeavyDBSqlOperatorTable.RegexpReplace.RegexpReplace(), com.mapd.calcite.parser.HeavyDBSqlOperatorTable.RegexpSubstr.RegexpSubstr(), com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Repeat.Repeat(), com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Replace.Replace(), com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Reverse.Reverse(), com.mapd.calcite.parser.HeavyDBSqlOperatorTable.SplitPart.SplitPart(), and anonymous_namespace{ArrowImporter.h}.value_getter().

heavydb.dtypes.T = TDatumType

Definition at line 8 of file dtypes.py.

Referenced by align_to_int64(), SysAllocator< void >.allocate(), NoneEncoder< T >.appendEncodedData(), NoneEncoder< T >.appendEncodedDataAtIndices(), DateDaysEncoder< T, V >.appendEncodedOrUnencodedData(), FixedLengthEncoder< T, V >.appendEncodedOrUnencodedData(), NoneEncoder< T >.appendValidatedOrNonValidatedData(), anonymous_namespace{WindowContext.cpp}.apply_window_pending_outputs_int(), Array< T >.Array(), arrow_throw_if(), bind_function(), shared.bswap_impl(), anonymous_namespace{ResultSetIteration.cpp}.build_array_target_value(), GeoRaster< T, Z >.calculate_bins_and_scales(), column_list_safe_row_sum__cpu_template(), Analyzer::WidthBucketExpr.compute_bucket(), compute_table_function_col_chunk_stats(), Column< Array< T > >.concatItem(), Contains_Polygon_Point_Impl(), foreign_storage::ParquetTimestampEncoder< V, T, conversion_denominator *kSecsPerDay, NullType >.convert(), count_matches_baseline(), anonymous_namespace{TableFunctionExecutionContext.cpp}.create_literal_buffer(), foreign_storage::anonymous_namespace{LazyParquetChunkLoader.cpp}.create_parquet_date_from_timestamp_encoder_with_types(), ArrowForeignStorageBase.createDecimalColumn(), ct_named_const_output__cpu_template(), ct_named_output__cpu_template(), ct_overload_column_list_test2__cpu_template(), ct_overload_column_list_test__cpu_template(), ct_scalar_1_arg_runtime_sizing__cpu_template(), anonymous_namespace{ExternalExecutor.cpp}.decode_string(), RelAlgVisitor< std::vector< unsigned > >.defaultResult(), RexVisitor< T >.defaultResult(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.defaultResult(), foreign_storage.encode_as_array_datum(), foreign_storage::ParquetDecimalEncoder< V, T, NullType >.encodeAndCopy(), foreign_storage::ParquetTimeEncoder< V, T, conversion_denominator, NullType >.encodeAndCopy(), foreign_storage::ParquetTimestampEncoder< V, T, conversion_denominator *kSecsPerDay, NullType >.encodeAndCopy(), foreign_storage::ParquetFixedLengthEncoder< V, T, NullType >.encodeAndCopy(), foreign_storage::ParquetUnsignedFixedLengthEncoder< V, T, U, NullType >.encodeAndCopy(), foreign_storage::TypedParquetInPlaceEncoder< V, V >.encodeAndCopyContiguous(), DateDaysEncoder< T, V >.encodeDataAndUpdateStats(), FixedLengthEncoder< T, V >.encodeDataAndUpdateStats(), Intervals< T, U >.end(), Analyzer::anonymous_namespace{Analyzer.cpp}.expr_is(), fill_baseline_hash_join_buff(), fill_baseline_hash_join_buff_wrapper(), fill_row_ids_baseline(), Analyzer::anonymous_namespace{Analyzer.cpp}.floatFromDecimal(), anonymous_namespace{WindowContext.cpp}.fp_comparator(), anonymous_namespace{DateTimeParser.cpp}.fromChars(), anonymous_namespace{QueryMemoryDescriptor.cpp}.get_col_byte_widths(), get_column_mean(), get_column_metadata(), get_column_min_max(), get_column_stats(), get_column_std_dev(), get_composite_key_index_impl(), anonymous_namespace{ResultSetSortImpl.cu}.get_device_copy_ptr(), get_fixed_array_null_value(), get_matching_baseline_hash_slot_at(), get_matching_group_value(), get_matching_group_value_columnar_slot(), anonymous_namespace{ResultSetReduction.cpp}.get_matching_group_value_reduction(), get_matching_slot(), TableFunctionManager.get_metadata(), foreign_storage::json_utils.get_value(), GeoRaster< T, Z >.get_xy_coords_for_bin_idx(), SqliteConnector.getData(), DataBufferCache.getDataPtrForKey(), DataBufferCache.getDataRefForKey(), anonymous_namespace{DBETypes.cpp}.getFieldValue(), HashJoin.getHashJoinColumn(), Column< Array< T > >.getItem(), foreign_storage::TypedParquetInPlaceEncoder< V, V >.getUnencodedStats(), init_baseline_hash_join_buff(), init_baseline_hash_join_buff_wrapper(), anonymous_namespace{QueryMemoryInitializer.cpp}.initColumnarBuffer(), inline_fp_null_array_value(), inline_fp_null_value(), anonymous_namespace{HashTable.cpp}.inner_to_string(), anonymous_namespace{RelAlgExecutor.cpp}.insert_one_dict_str(), lockmgr::TableLockMgrImpl< TableDataLockMgr >.instance(), anonymous_namespace{WindowContext.cpp}.integer_comparator(), keys_are_equal(), linear_reg_predict__cpu_template(), RelRexDagVisitor.make_handlers(), Mandelbrot.mandelbrot_cpu_template(), Mandelbrot.mandelbrot_impl(), Mandelbrot.mandelbrot_pixel(), anonymous_namespace{Datum.cpp}.minValue(), heavyai::JSON.operator T(), operator&(), Intervals< T, U >::Iterator.operator*(), Column< T >.operator=(), ColumnList< T >.operator[](), operator|(), operator~(), anonymous_namespace{Datum.cpp}.parseFloatAsInteger(), anonymous_namespace{Datum.cpp}.parseInteger(), point_in_polygon_winding_number(), anonymous_namespace{misc.h}.power(), DataBufferCache.putDataForKey(), DateDaysEncoder< T, V >.readMetadata(), NoneEncoder< T >.readMetadata(), FixedLengthEncoder< T, V >.readMetadata(), ArrowForeignStorageBase.replaceNullValuesImpl(), Analyzer::anonymous_namespace{Analyzer.cpp}.roundDecimal(), serialized_null_value(), Fragmenter_Namespace.set_chunk_stats(), Column< Array< T > >.setItem(), quantile::detail::anonymous_namespace{quantile.h}::Skipped< RealType, IndexType >.shiftRange(), Fragmenter_Namespace.shuffleByIndexesImpl(), sum_along_row__cpu_template(), anonymous_namespace{StringDictionary.cpp}.throw_encoding_error(), anonymous_namespace{HashTable.cpp}::keyed_hash.to_set_one_to_many(), anonymous_namespace{HashTable.cpp}::keyed_hash.to_set_one_to_one(), toString(), anonymous_namespace{HashJoin.cpp}.toStringFlat(), transfer_flat_object_to_gpu(), transfer_vector_of_flat_objects_to_gpu(), import_export.try_cast(), ai.heavy.jdbc.HeavyAIDatabaseMetaDataTest.tst02_heavyDB_table(), ai.heavy.jdbc.HeavyAIDatabaseMetaDataTest.tst03_heavyDB_table(), ai.heavy.jdbc.HeavyAIDatabaseMetaDataTest.tst04_heavyDB_table(), ai.heavy.jdbc.HeavyAIDatabaseMetaDataTest.tst05_user_table(), ai.heavy.jdbc.HeavyAIDatabaseMetaDataTest.tst06_user_table(), ai.heavy.jdbc.HeavyAIDatabaseMetaDataTest.tst07_user_table(), ai.heavy.jdbc.HeavyAIDatabaseMetaDataTest.tst08_user_table(), ai.heavy.jdbc.HeavyAIDatabaseMetaDataTest.tst09_user_table(), ai.heavy.jdbc.HeavyAIDatabaseMetaDataTest.tst10_heavyDB_table(), ai.heavy.jdbc.HeavyAIDatabaseMetaDataTest.tst11_user2_table(), typeName(), Geospatial.unpack_geo_vector(), DateDaysEncoder< T, V >.updateStats(), FixedLengthEncoder< T, V >.updateStats(), NoneEncoder< T >.updateStats(), NoneEncoder< T >.updateStatsEncoded(), DateDaysEncoder< T, V >.updateStatsWithAlreadyEncoded(), foreign_storage::ParquetDecimalEncoder< V, T, NullType >.validate(), foreign_storage::ParquetDateInDaysFromTimestampEncoder< V, T, conversion_denominator, NullType >.validate(), foreign_storage::ParquetTimestampEncoder< V, T, conversion_denominator *kSecsPerDay, NullType >.validate(), foreign_storage::ParquetFixedLengthEncoder< V, T, NullType >.validate(), foreign_storage::ParquetUnsignedFixedLengthEncoder< V, T, U, NullType >.validate(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitAggExpr(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitArrayOper(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitBinOper(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitCardinality(), RexVisitor< T >.visitCase(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitCaseExpr(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitCharLength(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitDateaddExpr(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitDatediffExpr(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitDatetruncExpr(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitExtractExpr(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitFunctionOper(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitGeoBinOper(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitGeoExpr(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitGeoUOper(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitInValues(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitKeyForString(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitLikeExpr(), RexVisitor< T >.visitOperator(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitRangeJoinOper(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitRegexpExpr(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitSampleRatio(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitStringOper(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitUOper(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitWidthBucket(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitWindowFunction(), RexVisitor< T >.visitWindowFunctionOperator(), write_baseline_hash_slot(), write_baseline_hash_slot_for_semi_join(), DateDaysEncoder< T, V >.writeMetadata(), NoneEncoder< T >.writeMetadata(), and FixedLengthEncoder< T, V >.writeMetadata().

heavydb.dtypes.Time = datetime.time

Definition at line 27 of file dtypes.py.

Referenced by ai.heavy.jdbc.HeavyAIStatementTest.create_types(), ai.heavy.jdbc.HeavyAIStatementTest.escape_function1(), ai.heavy.jdbc.HeavyAIResultSet.getArray(), ai.heavy.jdbc.HeavyAIArray.getResultSet(), ai.heavy.jdbc.HeavyAIResultSet.getTime(), com.mapd.utility.SQLImporter.setColValue(), and heavydb.dtypes.TimeFromTicks().

heavydb.dtypes.Timestamp = datetime.datetime

Definition at line 28 of file dtypes.py.