format/src/main/java/com/github/sadikovi/riff/column/ColumnFilter.java
/**
   * Return unique magic byte assigned to each registered column filter.
   * @param filter column filter
   * @return magic
   */
Return unique magic byte assigned to each registered column filter.
@param filter column filter
@return magic
Return unique magic byte assigned to each registered column filter . @param filter column filter @return magic
public static byte columnFilterToMagic(ColumnFilter filter) {
    if (filter instanceof NoopColumnFilter) return 1;
    if (filter instanceof BooleanColumnFilter) return 2;
    if (filter instanceof ByteColumnFilter) return 3;
    if (filter instanceof ShortColumnFilter) return 4;
    if (filter instanceof IntColumnFilter) return 5;
    if (filter instanceof LongColumnFilter) return 6;
    if (filter instanceof UTF8ColumnFilter) return 7;
    if (filter instanceof DateColumnFilter) return 8;
    if (filter instanceof TimestampColumnFilter) return 9;
    throw new UnsupportedOperationException("Unrecognized column filter: " + filter);
  }
public static byte columnFilterToMagic ( ColumnFilter filter ) { if ( filter instanceof NoopColumnFilter ) return 1 ; if ( filter instanceof BooleanColumnFilter ) return 2 ; if ( filter instanceof ByteColumnFilter ) return 3 ; if ( filter instanceof ShortColumnFilter ) return 4 ; if ( filter instanceof IntColumnFilter ) return 5 ; if ( filter instanceof LongColumnFilter ) return 6 ; if ( filter instanceof UTF8ColumnFilter ) return 7 ; if ( filter instanceof DateColumnFilter ) return 8 ; if ( filter instanceof TimestampColumnFilter ) return 9 ; throw new UnsupportedOperationException ( "Unrecognized column filter: " + filter ) ; }
Return unique magic byte assigned to each registered column filter.
Return unique magic byte assigned to each registered column filter .