private void prepareSuperColumn ( ThriftRow tr , EntityMetadata m , Object value , byte [ ] name , long timestamp ) { if ( value != null ) { if ( m . isCounterColumnType ( ) ) { CounterSuperColumn counterSuper = new CounterSuperColumn ( ) ; counterSuper . setName ( name ) ; CounterColumn counterColumn = prepareCounterColumn ( ( String ) value , name ) ; List < CounterColumn > subCounterColumn = new ArrayList < CounterColumn > ( ) ; subCounterColumn . add ( counterColumn ) ; counterSuper . setColumns ( subCounterColumn ) ; tr . addCounterSuperColumn ( counterSuper ) ; } else { SuperColumn superCol = new SuperColumn ( ) ; superCol . setName ( name ) ; Column column = prepareColumn ( ( byte [ ] ) value , name , timestamp , 0 ) ; List < Column > subColumn = new ArrayList < Column > ( ) ; subColumn . add ( column ) ; superCol . setColumns ( subColumn ) ; tr . addSuperColumn ( superCol ) ; } } }
Prepare super column .