当前位置:网站首页>Analysis of contentvalues
Analysis of contentvalues
2022-07-27 01:07:00 【Roy_ chen7】
I'm learning today SQLite When the database stores knowledge , Find out SQLiteDatabase Objects can be passed first ContentValues Object to assemble data , And then use it SQLiteDatabase Of the object itself insert() Methods will ContentValues Object is passed in for data storage .
that ContentValues What is it? ?
ContentValues and Bundle similar , Is to use HashMap Class for data storage in the generic form of . But the difference is Bundle Can be stored Object object , and ContentValues Only basic types can be stored .Bundle amount to HashMap<String, Object>(),ContentValues It's equivalent to HashMap<String, Basic types of data >().
ContentValues The common method of :
// Add basic type data to the collection ,Double、Integer、String、Boolean、Byte、Float Type and so on
public void put(String key, Short value);
public void put(String key, Long value);
public void put(String key); // Add null
// remove ContentValues All data in
public void clear();
// To current ContentValues Add incoming ContentValues All values in the object
public void putAll(ContentValues other);
// Remove key value as key The data of
public void remove(String key);
// return ContentValues Whether the data in the object is empty
public Boolean isEmpty();
// Return the number of data
public int size();
// Returns a collection of key values
public Set<String> SetKey();
// The key value obtained is key And convert it into Boolean Type return ,String、Integer、Float、Double And so on
public Boolean getAsBoolean(String key)
边栏推荐
- [NPUCTF2020]ezinclude
- Uni-app 小程序 App 的广告变现之路:Banner 信息流广告
- 微信大量下架数字藏品相关小程序:NFT产品究竟是未来还是陷阱?
- Neo4j Basic Guide (installation, node and relationship data import, data query)
- 进入2022年,移动互联网的小程序和短视频直播赛道还有机会吗?
- 当事务遇上分布式锁
- MySQL - how to determine a field suitable for building an index?
- MySQL index optimization: under what circumstances do you need to build an index (several situations suitable for building an index)
- Spark source code learning - memory tuning
- Doris或StarRocks Jmeter压测
猜你喜欢

Scala-模式匹配

Flink的容错机制(checkpoint)

李宏毅机器学习(2021版)_P7-9:训练技巧

(Spark调优~)算子的合理选择

The difference between golang slice make and new

Flink 1.15 implements SQL script to recover data from savepointh

Real time calculation demo based on Flink: user behavior analysis (IV: how many different users have visited the website (UV) in a period of time)

Understanding of Flink interval join source code

Data warehouse knowledge points

Redis -- cache avalanche, cache penetration, cache breakdown
随机推荐
[SQL注入] 报错注入
Redisson 工作原理-源码分析
Write the changed data in MySQL to Kafka through flinkcdc (datastream mode)
深度学习报告(3)
MySQL index optimization: under what circumstances do you need to build an index (several situations suitable for building an index)
Flink checkpoint源码理解
Flink based real-time computing Demo - Data Analysis on user behavior
MySQL uses and implements ranking functions rank and deny_ Rank and row_ NUMBER
MySQL第一篇
[ciscn2019 finals Day2 web1]easyweb
Real time calculation demo based on Flink: user behavior analysis (IV: how many different users have visited the website (UV) in a period of time)
李宏毅机器学习(2017版)_P21:卷积神经网络CNN
MySQL split table DDL operation (stored procedure)
Flink based real-time project: user behavior analysis (I: real-time popular product statistics)
Flink's fault tolerance mechanism (checkpoint)
智密-腾讯云直播 MLVB 插件优化教程:六步提升拉流速度+降低直播延迟
Neo4j基础指南(安装,节点和关系数据导入,数据查询)
短视频App开发有哪些必备的功能?
Simple explanation of database table connection
DataNode Decommision