there's actually a third option for instantiating an indexsearcher; you can instantiate it with any class that is a concrete subclass of the abstract class indexreader
事实上有第三种实例一个indexsearcher 的选择;你可以用抽象类indexreader的任意具体子类实例它。
presumably that means indexreader.open(), a static factory method, instantiates an appropriate concrete subclass of indexreader and returns it.
大概这意味着indexreader.open(),一个静态工厂方法,实例了一个适当的具体的indexreader子类并返回它。
the pros are similar to the above section: compact tables, data partitions across three concrete subclass tables, and any data change on a subclass only involves one table.
它的优点和上节类似:紧凑数据表、跨三个具体子类的数据分区以及对子类任意数据的修改都只涉及一张表。
rectangle is also a concrete subclass of shape that defines draw and overrides tostring.
rectangle也是shape得一个具体子类,定义了draw 方法,重写了tostring。
circle is declared as a concrete subclass of shape.
circle (圆)被声明为shape的一个具体的子类。
the sql generated from a query on a concrete subclass such as cashpayment looks like
针对具体子类(例如cashpayment)的查询生成的sql是这样的
a query on a concrete subclass only generates sql for that subclass.
具体子类的查询只生成该子类的sql。