@Test public void getSchemaVersion() { Table table = new Table(); table.putToParameters(AvroHiveTableStrategy.AVRO_SCHEMA_VERSION, Integer.toString(1)); int result = underTest.getSchemaVersion(table); assertThat(result, is(1)); }
@Override public int getSchemaVersion(Table table) { return Integer.parseInt(table.getParameters().get(AVRO_SCHEMA_VERSION)); }
AvroHiveTableStrategy implements HiveTableStrategy { @Override public int getSchemaVersion(Table table) { return Integer.parseInt(table.getParameters().get(AVRO_SCHEMA_VERSION)); } }
AvroHiveTableStrategy implements HiveTableStrategy { @Override public int getSchemaVersion(Table table) { return Integer.parseInt(table.getParameters().get(AVRO_SCHEMA_VERSION)); }  }
AvroHiveTableStrategy implements HiveTableStrategy { @Override public int getSchemaVersion(Table table) { return Integer.parseInt(table.getParameters().get(AVRO_SCHEMA_VERSION)); }  @Override Table newHiveTable(
      String databaseName,
      String tableName,
      String partitionColumnName,
      String location,
      Schema schema,
      int version); @Override Table alterHiveTable(Table table, Schema schema, int version); @Override int getSchemaVersion(Table table); }
AvroHiveTableStrategy implements HiveTableStrategy { @Override public int getSchemaVersion(Table table) { return Integer.parseInt(table.getParameters().get(AVRO_SCHEMA_VERSION)); }  @Override Table newHiveTable(
      String databaseName,
      String tableName,
      String partitionColumnName,
      String location,
      Schema schema,
      int version); @Override Table alterHiveTable(Table table, Schema schema, int version); @Override int getSchemaVersion(Table table);  }