format/src/main/java/com/github/sadikovi/riff/column/ColumnFilter.java
/**
   * Return instance of column filter for a magic.
   * @param magic unique magic byte
   * @return default filter instance
   */
Return instance of column filter for a magic.
@param magic unique magic byte
@return default filter instance
Return instance of column filter for a magic . @param magic unique magic byte @return default filter instance
public static ColumnFilter magicToColumnFilter(int magic) {
    switch (magic) {
      case 1:
        return new NoopColumnFilter();
      case 2:
        return new BooleanColumnFilter();
      case 3:
        return new ByteColumnFilter();
      case 4:
        return new ShortColumnFilter();
      case 5:
        return new IntColumnFilter();
      case 6:
        return new LongColumnFilter();
      case 7:
        return new UTF8ColumnFilter();
      case 8:
        return new DateColumnFilter();
      case 9:
        return new TimestampColumnFilter();
      default:
        throw new UnsupportedOperationException("Unrecognized column filter magic: " + magic);
    }
  }
public static ColumnFilter magicToColumnFilter ( int magic ) { switch ( magic ) { case 1 : return new NoopColumnFilter ( ) ; case 2 : return new BooleanColumnFilter ( ) ; case 3 : return new ByteColumnFilter ( ) ; case 4 : return new ShortColumnFilter ( ) ; case 5 : return new IntColumnFilter ( ) ; case 6 : return new LongColumnFilter ( ) ; case 7 : return new UTF8ColumnFilter ( ) ; case 8 : return new DateColumnFilter ( ) ; case 9 : return new TimestampColumnFilter ( ) ; default : throw new UnsupportedOperationException ( "Unrecognized column filter magic: " + magic ) ; } }
Return instance of column filter for a magic.
Return instance of column filter for a magic .