private ByteBuffer generateTimeoutValue ( long timeout ) { if ( columnFamily . getDefaultValueSerializer ( ) == ByteBufferSerializer . get ( ) || columnFamily . getDefaultValueSerializer ( ) == LongSerializer . get ( ) ) { return LongSerializer . get ( ) . toByteBuffer ( timeout ) ; } else { return columnFamily . getDefaultValueSerializer ( ) . fromString ( Long . toString ( timeout ) ) ; } }
Generate the expire time value to put in the column value .