public static String getSingleFamilyName ( FilterAdapterContext context ) { Preconditions . checkState ( context . getScan ( ) . numFamilies ( ) == 1 , "Cannot getSingleFamilyName() unless there is exactly 1 family." ) ; return Bytes . toString ( context . getScan ( ) . getFamilies ( ) [ 0 ] ) ; }
Extract a single family name from a FilterAdapterContext . Throws if there is not exactly 1 family present in the scan .