Module: Quandl::Cassandra::Types
- Defined in:
- lib/quandl/cassandra/types.rb,
lib/quandl/cassandra/types/uuid_type.rb
Defined Under Namespace
Classes: AbstractType, BooleanType, DecimalType, DoubleType, FloatType, IntegerType, LongType, TimeUUIDType, TimestampType, UTF8Type, UUIDType
Class Method Summary
collapse
Class Method Details
.type(type) ⇒ Object
15
16
17
|
# File 'lib/quandl/cassandra/types.rb', line 15
def type(type)
self.types[type]
end
|
.types ⇒ Object
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'lib/quandl/cassandra/types.rb', line 19
def types
@@types ||= {
bigint: Quandl::Cassandra::Types::DoubleType,
blob: Quandl::Cassandra::Types::UTF8Type,
boolean: Quandl::Cassandra::Types::BooleanType,
counter: Quandl::Cassandra::Types::IntegerType,
decimal: Quandl::Cassandra::Types::FloatType,
double: Quandl::Cassandra::Types::IntegerType,
float: Quandl::Cassandra::Types::FloatType,
int: Quandl::Cassandra::Types::IntegerType,
timestamp: Quandl::Cassandra::Types::TimestampType,
varchar: Quandl::Cassandra::Types::UTF8Type,
text: Quandl::Cassandra::Types::UTF8Type,
varint: Quandl::Cassandra::Types::IntegerType,
timeuuid: Quandl::Cassandra::Types::TimestampType,
uuid: Quandl::Cassandra::Types::UUIDType,
inet: Quandl::Cassandra::Types::UTF8Type,
}
end
|