OmniSciDB  340b00dbf6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.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 omnisci.dtypes.DateFromTicks (   ticks)

Definition at line 58 of file dtypes.py.

References omnisci.dtypes.Date.

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

Definition at line 62 of file dtypes.py.

References omnisci.dtypes.Time.

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

Definition at line 66 of file dtypes.py.

References omnisci.dtypes.Timestamp.

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

Variable Documentation

omnisci.dtypes.Binary = memoryview

Definition at line 25 of file dtypes.py.

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

Definition at line 30 of file dtypes.py.

omnisci.dtypes.Date = datetime.date

Definition at line 26 of file dtypes.py.

Referenced by com.omnisci.jdbc.OmniSciStatementTest.create_types(), omnisci.dtypes.DateFromTicks(), com.omnisci.jdbc.OmniSciStatementTest.escape_function1(), com.omnisci.jdbc.OmniSciStatementTest.escape_function3(), com.omnisci.jdbc.OmniSciResultSet.getArray(), com.omnisci.jdbc.OmniSciResultSet.getDate(), com.omnisci.jdbc.OmniSciArray.getResultSet(), and com.mapd.utility.SQLImporter.setColValue().

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

Definition at line 54 of file dtypes.py.

tuple omnisci.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 omnisci.dtypes.ROWID = DataType([])

Definition at line 55 of file dtypes.py.

tuple omnisci.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(), getOmnisciType(), com.mapd.calcite.parser.MapDSqlOperatorTable.PgILike.getSignatureFamilies(), com.mapd.calcite.parser.MapDSqlOperatorTable.RegexpLike.getSignatureFamilies(), ArrowForeignStorageBase.parseArrowTable(), and anonymous_namespace{ArrowImporter.h}.value_getter().

omnisci.dtypes.T = TDatumType

Definition at line 8 of file dtypes.py.

Referenced by align_to_int64(), DateDaysEncoder< T, V >.appendData(), FixedLengthEncoder< T, V >.appendData(), NoneEncoder< T >.appendData(), anonymous_namespace{WindowContext.cpp}.apply_window_pending_outputs_int(), Array< T >.Array(), arrow_throw_if(), anonymous_namespace{ResultSetIteration.cpp}.build_array_target_value(), count_matches_baseline(), anonymous_namespace{TableFunctionExecutionContext.cpp}.create_literal_buffer(), ArrowForeignStorageBase.createDecimalColumn(), anonymous_namespace{ExternalExecutor.cpp}.decode_string(), RelAlgVisitor< std::unordered_set< int > >.defaultResult(), RexVisitor< std::unordered_set< const RexInput * > >.defaultResult(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.defaultResult(), foreign_storage.encode_as_array_datum(), foreign_storage::ParquetDecimalEncoder< V, T >.encodeAndCopy(), foreign_storage::ParquetTimeEncoder< V, T >.encodeAndCopy(), foreign_storage::ParquetTimestampEncoder< V, T >.encodeAndCopy(), foreign_storage::ParquetFixedLengthEncoder< V, T >.encodeAndCopy(), foreign_storage::ParquetUnsignedFixedLengthEncoder< V, T, U >.encodeAndCopy(), foreign_storage::TypedParquetInPlaceEncoder< int64_t, int32_t >.encodeAndCopyContiguous(), DateDaysEncoder< T, V >.encodeDataAndUpdateStats(), FixedLengthEncoder< T, V >.encodeDataAndUpdateStats(), Intervals< T >.end(), Analyzer::anonymous_namespace{Analyzer.cpp}.expr_is(), fill_baseline_hash_join_buff(), fill_baseline_hash_join_buff_wrapper(), fill_row_ids_baseline(), anonymous_namespace{WindowContext.cpp}.fp_comparator(), anonymous_namespace{DateTimeParser.cpp}.fromChars(), 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(), foreign_storage::json_utils.get_value(), SqliteConnector.getData(), foreign_storage::TypedParquetInPlaceEncoder< int64_t, int32_t >.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{JoinHashTableInterface.cpp}.innerToString(), anonymous_namespace{RelAlgExecutor.cpp}.insert_one_dict_str(), anonymous_namespace{WindowContext.cpp}.integer_comparator(), keys_are_equal(), anonymous_namespace{StringDictionary.cpp}.log_encoding_error(), RelRexDagVisitor.make_handlers(), operator&(), Intervals< T >::Iterator.operator*(), operator|(), operator~(), DateDaysEncoder< T, V >.readMetadata(), NoneEncoder< T >.readMetadata(), FixedLengthEncoder< T, V >.readMetadata(), Analyzer::anonymous_namespace{Analyzer.cpp}.safe_narrow(), Fragmenter_Namespace.set_chunk_stats(), ArrowForeignStorageBase.setNulls(), ArrowForeignStorageBase.setNullValues(), Fragmenter_Namespace.shuffleByIndexesImpl(), anonymous_namespace{JoinHashTableInterface.cpp}::keyed_hash.to_set_one_to_many(), anonymous_namespace{JoinHashTableInterface.cpp}::keyed_hash.to_set_one_to_one(), anonymous_namespace{JoinHashTableInterface.cpp}.toStringFlat(), transfer_flat_object_to_gpu(), transfer_vector_of_flat_objects_to_gpu(), import_export.try_cast(), com.omnisci.jdbc.OmniSciDatabaseMetaDataTest.tst02_omnisci_table(), com.omnisci.jdbc.OmniSciDatabaseMetaDataTest.tst03_omnisci_table(), com.omnisci.jdbc.OmniSciDatabaseMetaDataTest.tst04_omnisci_table(), com.omnisci.jdbc.OmniSciDatabaseMetaDataTest.tst05_user_table(), com.omnisci.jdbc.OmniSciDatabaseMetaDataTest.tst06_user_table(), com.omnisci.jdbc.OmniSciDatabaseMetaDataTest.tst07_user_table(), com.omnisci.jdbc.OmniSciDatabaseMetaDataTest.tst08_user_table(), com.omnisci.jdbc.OmniSciDatabaseMetaDataTest.tst09_user_table(), com.omnisci.jdbc.OmniSciDatabaseMetaDataTest.tst10_omnisci_table(), com.omnisci.jdbc.OmniSciDatabaseMetaDataTest.tst11_user2_table(), Geospatial.unpack_geo_vector(), DateDaysEncoder< T, V >.updateStats(), FixedLengthEncoder< T, V >.updateStats(), NoneEncoder< T >.updateStats(), NoneEncoder< T >.updateStatsEncoded(), 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< std::unordered_set< const RexInput * > >.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 > >.visitGeoUOper(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitInValues(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitKeyForString(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitLikeExpr(), RexVisitor< std::unordered_set< const RexInput * > >.visitOperator(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitRegexpExpr(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitSampleRatio(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitUOper(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >.visitWindowFunction(), RexVisitor< std::unordered_set< const RexInput * > >.visitWindowFunctionOperator(), write_baseline_hash_slot(), DateDaysEncoder< T, V >.writeMetadata(), NoneEncoder< T >.writeMetadata(), and FixedLengthEncoder< T, V >.writeMetadata().

omnisci.dtypes.Time = datetime.time

Definition at line 27 of file dtypes.py.

Referenced by com.omnisci.jdbc.OmniSciStatementTest.create_types(), com.omnisci.jdbc.OmniSciStatementTest.escape_function1(), com.omnisci.jdbc.OmniSciResultSet.getArray(), com.omnisci.jdbc.OmniSciArray.getResultSet(), com.omnisci.jdbc.OmniSciResultSet.getTime(), com.mapd.utility.SQLImporter.setColValue(), and omnisci.dtypes.TimeFromTicks().

omnisci.dtypes.Timestamp = datetime.datetime

Definition at line 28 of file dtypes.py.

Referenced by com.omnisci.jdbc.OmniSciResultSet.adjust_precision(), com.omnisci.jdbc.OmniSciStatementTest.create_times(), com.omnisci.jdbc.OmniSciStatementTest.create_types(), com.mapd.bench.BenchmarkCloud.doWork(), com.omnisci.jdbc.OmniSciStatementTest.escape_function1(), com.omnisci.jdbc.OmniSciStatementTest.escape_function2(), com.omnisci.jdbc.OmniSciStatementTest.escape_function3(), com.omnisci.jdbc.OmniSciResultSet.extract_complex_time(), com.omnisci.jdbc.OmniSciPrepareTest.formBatch(), com.omnisci.jdbc.OmniSciResultSet.getArray(), com.omnisci.jdbc.OmniSciArray.getResultSet(), com.omnisci.jdbc.OmniSciArrayTest.insert_select_test(), com.omnisci.jdbc.OmniSciStatementTest.insert_times(), com.mapd.utility.SQLImporter.setColValue(), and omnisci.dtypes.TimestampFromTicks().