int function ( VectorType arg0 , int arg1 ) { switch ( arg0 ) { case BINARY : return 8 * ( ( arg1 / 64 ) ) ; case REAL : return 4 * arg1 ; default : throw new IllegalArgumentException ( "srini_string" + arg0 ) ; } }
returns the size in bytes expected to be taken up by the serialization of this vector in lucene format . concode_field_sep RealVector realInstance concode_field_sep Vector createZeroVector concode_elem_sep Vector generateRandomVector