write a keyvalue or an indexedkeyvalue to the output stream . these can be readback via #readkeyvalue datainput or #readkeyvalues datainput . concode_field_sep int INDEX_TYPE_LENGTH_MARKER concode_field_sep List<KeyValue> readKeyValues concode_elem_sep KeyValue readKeyValue
void function ( DataOutput arg0 , KeyValue arg1 ) { if ( arg1 instanceof IndexedKeyValue ) { arg0 . writeInt ( INDEX_TYPE_LENGTH_MARKER ) ; ( ( IndexedKeyValue ) arg1 ) . writeData ( arg0 ) ; } else { KeyValue . write ( arg1 , arg0 ) ; } }