Format getFormat ( ) { final int ordinal ; final Flavor f = getFlavor ( ) ; if ( ( f == Flavor . HYBRID ) || ( f == Flavor . SPARSE ) ) { ordinal = 2 | ( mergeFlag ? 0 : 1 ) ; //Hybrid is serialized as SPARSE } else { ordinal = ( ( slidingWindow != null ) ? 4 : 0 ) | ( ( ( pairTable != null ) && ( pairTable . getNumPairs ( ) > 0 ) ) ? 2 : 0 ) | ( mergeFlag ? 0 : 1 ) ; } return Format . ordinalToFormat ( ordinal ) ; }
Returns the Format of the serialized form of this sketch .