Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Realm Japan meetup #17 Java

zaki50
July 20, 2016

Realm Japan meetup #17 Java

zaki50

July 20, 2016
Tweet

More Decks by zaki50

Other Decks in Technology

Transcript

  1. Realm Java 1.1.0(৽ػೳ) • Realm.insert(), Realm.insertOrUpdate()͕௥Ճ͞Ε·ͨ͠ɻRealmΦϒ δΣΫτ࡞੒ͷͨΊͷAPIͷߴ଎൛Ͱ͢(#1684)ɻ • Table.toString()ʹɺϓϥΠϚϦΩʔ৘ใΛؚΊΔΑ͏ʹ͠·ͨ͠ (#2903)ɻ

    • ΧελϜύεΛࢦఆͯ͠RealmϑΝΠϧΛࢦఆ͢ΔࡍʹɺReLinkerΛػ ೳͤ͞ΔͨΊͷίϯετϥΫλΛ௥Ճ͠·ͨ͠(#2900)ɻ • targetSdkVersionΛ23͔Β24ʹมߋ͠·ͨ͠ • GCͰճऩ͞ΕͨDynamicRealm͕close͞Ε͍ͯͳ͔ͬͨ৔߹ϩάʹܯࠂ ϝοηʔδΛग़ྗ͠·͢ɻ [email protected] [email protected]
  2. Realm Java 1.1.0(όάϑΟοΫε) • Realm.compactRealm()͞ΕͨϑΝΠϧͷϝϞϦ؅ཧʹؔ͢ΔόάΛमਖ਼ • ΦϓγϣφϧͳAPI(RxJavaରԠͷAPI౳)͕࢖ΘΕ͍ͯͳ͍৔߹ɺϏϧυ࣌ʹ ࡟আ͢Δॲཧ͕DexGuardͰෆ۩߹Λىͨ͜͢ΊແޮԽ(#3022) • ඇಉظτϥϯβΫγϣϯͰɺಛఆͷঢ়گʹ͓͍ͯOnSuccess.onSuccess()͕

    ؒҧͬͨόʔδϣϯͷσʔλΛड͚औΔόάΛमਖ਼(#1893) • Realm.copyToRealm()͕ɺ॥؀ͨ͠σʔλʹରͯ͠ΦϒδΣΫτΛॏෳͯ͠ ࡞੒ͯ͠͠·͏όάΛमਖ਼ • ϞσϧΫϥεͷ໊લ͕Map΍ListͷΑ͏ʹɺproxyͷ಺෦࣮૷Ͱ࢖༻͍ͯ͠Δ Ϋϥεͱ͔ͿΔ৔߹ʹϏϧυΤϥʔ͕ൃੜ͢ΔόάΛमਖ਼(#3077) [email protected] [email protected]
  3. Bulk insert API [email protected] void insert(RealmModel object) void insert(Collection objects)

    void insertOrUpdate(RealmModel object) void insertOrUpdate(Collection objects) ΦϒδΣΫτ͕managed͔Ͳ͏͔ΛνΣοΫ͠·ͤΜ ࡞੒ͨ͠ΦϒδΣΫτΛฦΓ஋ͱͯ͠ฦ͠·ͤΜ ͢΂ͯͷϑΟʔϧυ͕ͦͷ··࢖ΘΕ·͢ ஫ҙ఺
  4. in query (#3133) [email protected] void RealmQuery.in(String, String[]) void RealmQuery.in(String, String[],

    Case) void RealmQuery.in(String, byte[]) void RealmQuery.in(String, short[]) void RealmQuery.in(String, int[]) void RealmQuery.in(String, long[]) void RealmQuery.in(String, float[]) void RealmQuery.in(String, double[]) void RealmQuery.in(String, boolean[]) void RealmQuery.in(String, Date[]) realm.where(AllTypes.class) .in(“value”, new String[]{"value1", “value2"}) .findAll();