Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for 
change notification.

The "FAQ_JP" page has been changed by MakiWatanabe.
The comment on this change is: Translate range_rp, a_long_is_exactly_8_bytes.
http://wiki.apache.org/cassandra/FAQ_JP?action=diff&rev1=78&rev2=79

--------------------------------------------------

  <<Anchor(a_long_is_exactly_8_bytes)>>
  
  == 挿入操作でInvalidRequestExeptionが発生し,次のようなメッセージが出力されます:"A long is exactly 8 
bytes" ==
- You are propably using !LongType column sorter in your column family. 
!LongType assumes that the numbers stored into column names are exactly 64bit 
(8 bytes) long and in big endian format. Example code how to pack and unpack an 
integer for storing into cassandra and unpacking it for php:
+ 
あなたは恐らくカラムファミリーの中で!LongTypeカラムソーターを使っているはずです。!LongTypeはカラムに格納される数値がぴったり64bit(8 
byte)であり、またbig 
endianであることを想定しています。以下のサンプルコードで、phpからcassandraにintegerをpackして格納する方法、そしてcassandraから読み出してunpackする方法について説明します。
  
  {{{
          /**
@@ -435, +435 @@

  <<Anchor(range_rp)>>
  
  == レンジスライスやシーケンシャルスキャンはなぜ期待通りの結果を返さないのでしょうか? ==
- You're probably using the RandomPartitioner.  This is the default because it 
avoids hotspots, but it means your rows are ordered by the md5 of the row key 
rather than lexicographically by the raw key bytes.
+ 
あなたは多分RandomPartitionerを使っているはずです。これはデフォルト設定で、データが特定のノードに偏ることを避けられます。一方で、RandomPartitionerを使った場合、行はあなたが指定するrow
 keyの字句的順序ではなく、 row keyのmd5ハッシュ値の順で並びます。
  
+ ページングが目的なら、start keyとend keyを空に指定し、row 
count引数を指定すれば実現できます。次のページを取得するには前のページで取得した最後のキーをstart keyに指定します。
+ 行の中であれば、カラムをカラム名の順序で取得できます。データを各行に配置する方法を工夫することで、行そのものが整列していなくても済む場合もあるでしょう。
- You '''can''' start out with a start key and end key of [empty] and use the 
row count argument instead, if your goal is paging the rows.  To get the next 
page, start from the last key you got in the previous page.
- 
- You can also use intra-row ordering of column names to get ordered results 
'''within''' a row; with appropriate row 'bucketing,' you often don't need the 
rows themselves to be ordered.
  
  <<Anchor(unsubscribe)>>
  

Reply via email to