try use ByteEncoderHelper.BigEndianLongEncoder.ToByteArray as key byte array 在 2013-5-13 PM7:08,"Leo.C.He (mis.sh04.Newegg) 41317" <leo.c...@newegg.com >写道:
> Hi, I am new in Cassandra, I am using “Aquiles.Cassandra10” , but I > don’t know why longtype in cli like blow.**** > > can any one kown how to display real long in Cassandra-cli, I know there > are different between c# byte and java byte. But thirfty has already conver > little endian to big endian**** > > ** ** > > ** ** > > [default@CNECWeb] get wishlist['20015140_514'];**** > > => (column=C3SysNo, value=4468133780304953344, timestamp=1368472895127991) > **** > > => (column=CreateTime, value=-7863342137930166783, > timestamp=1368472895127471)**** > > => (column=From, value=W, timestamp=1368472895128392)**** > > => (column=Inventory, value=-5403475127914463232, > timestamp=1368472895128569)**** > > => (column=Price, value=1.73595E-319, timestamp=1368472895128758)**** > > => (column=ProductSysNo, value=144678138029277184, > timestamp=1368472895129468)**** > > => (column=Tags, value=, timestamp=1368472895128214)**** > > ** ** > > And Scheme:**** > > ** ** > > create column family WishList**** > > with column_type = 'Standard'**** > > and comparator = 'UTF8Type'**** > > and default_validation_class = 'UTF8Type'**** > > and key_validation_class = 'UTF8Type'**** > > and read_repair_chance = 0.1**** > > and dclocal_read_repair_chance = 0.0**** > > and gc_grace = 864000**** > > and min_compaction_threshold = 4**** > > and max_compaction_threshold = 32**** > > and replicate_on_write = true**** > > and compaction_strategy = > 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy'**** > > and caching = 'KEYS_ONLY'**** > > and column_metadata = [**** > > {column_name : 'C3SysNo',**** > > validation_class : LongType},**** > > {column_name : 'From',**** > > validation_class : UTF8Type},**** > > {column_name : 'CreateTime',**** > > validation_class : LongType},**** > > {column_name : 'Inventory',**** > > validation_class : LongType},**** > > {column_name : 'Price',**** > > validation_class : DoubleType},**** > > {column_name : 'Tags',**** > > validation_class : UTF8Type},**** > > {column_name : 'ProductSysNo',**** > > validation_class : LongType}]**** > > and compression_options = {'sstable_compression' : > 'org.apache.cassandra.io.compress.SnappyCompressor'};**** > > ** ** > > ** ** > > Best Regards**** >