Sha256: e27affe2decf14d5d0aaa67573c122f50ce521621ac1523588285984a1c7e63d

Contents?: true

Size: 770 Bytes

Versions: 13

Compression:

Stored size: 770 Bytes

Contents

=begin
Copyright 2011 Inside Systems, 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.
=end

module CassandraCQL
  module Types
    class IntegerType < AbstractType
      def self.cast(value)
        bytes_to_int(value)
      end
    end
    
    class Int32Type < IntegerType; end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
cassandra-cql-1.2.2 lib/cassandra-cql/types/integer_type.rb
cassandra-cql-1.2.1 lib/cassandra-cql/types/integer_type.rb
cassandra-cql-1.2.0 lib/cassandra-cql/types/integer_type.rb
cassandra-cql-1.1.5 lib/cassandra-cql/types/integer_type.rb
cassandra-cql-1.1.4 lib/cassandra-cql/types/integer_type.rb
cassandra-cql-1.1.3 lib/cassandra-cql/types/integer_type.rb
cassandra-cql-1.1.2 lib/cassandra-cql/types/integer_type.rb
cassandra-cql-1.1.1 lib/cassandra-cql/types/integer_type.rb
cassandra-cql-1.1.0 lib/cassandra-cql/types/integer_type.rb
hallelujah-cassandra-cql-1.0.4 lib/cassandra-cql/types/integer_type.rb
cassandra-cql-1.0.4 lib/cassandra-cql/types/integer_type.rb
cassandra-cql-1.0.2 lib/cassandra-cql/types/integer_type.rb
cassandra-cql-1.0.1 lib/cassandra-cql/types/integer_type.rb