我想在Google大表格中使用java和servelt代碼創建表格? 如何創建表並插入Google大表數據庫? 我想樣品編碼在谷歌大表中創建表?如何在Google Bigtable中創建表格
-2
A
回答
2
Google不會公開訪問Bigtable。
您是否在談論App Engine的數據存儲(在Bigtable上運行)?如果是這樣,App Engine開發人員網站上有大量文檔,特別是Getting Started For Java: Using the Datastore with JDO。
0
有一個谷歌的Hadoop(http://hadoop.apache.org/) - 和基於Hadoop的Hadoop(http://wiki.apache.org/hadoop/Hbase)。這些概念實現與谷歌的bigtable類似。如果你不能輕易使用這些庫,那麼你運氣不好。
1
六年後,現在可以。看看這個快速入門頁面,瞭解如何獲取Bigtable實例並開始寫入它 https://cloud.google.com/bigtable/docs/quickstart
然後這裏是一個示例「Hello,World!」應用 https://cloud.google.com/bigtable/docs/samples-java-hello
例如
try (Connection connection = BigtableConfiguration.connect(projectId, instanceId)) {
Admin admin = connection.getAdmin();
HTableDescriptor descriptor = new HTableDescriptor(TableName.valueOf(TABLE_NAME));
descriptor.addFamily(new HColumnDescriptor(COLUMN_FAMILY_NAME));
print("Create table " + descriptor.getNameAsString());
admin.createTable(descriptor);
Table table = connection.getTable(TableName.valueOf(TABLE_NAME));
print("Write some greetings to the table");
for (int i = 0; i < GREETINGS.length; i++) {
String rowKey = "greeting" + i;
Put put = new Put(Bytes.toBytes(rowKey));
put.addColumn(COLUMN_FAMILY_NAME, COLUMN_NAME, Bytes.toBytes(GREETINGS[i]));
table.put(put);
}
String rowKey = "greeting0";
Result getResult = table.get(new Get(Bytes.toBytes(rowKey)));
}
相關問題
- 1. 如何在Google BigTable中創建數據庫
- 2. 在Python中創建Google表格
- 3. 如何創建「在Google表格中打開」按鈕
- 4. 如何在Google Chrome中創建可滾動表格
- 5. 如何在Google圖表中創建「短幣」軸格式?
- 6. Google Bigtable-primarykey
- 7. 從Google電子表格創建表格:如何操作數據?
- 8. 如何在JS中創建表格
- 9. 如何在Java中創建MDI表格
- 10. 如何在dojo 1.9中創建表格
- 11. 如何在VS 2008中創建表格?
- 12. 如何在BroadcastReceiver中創建表格?
- 13. 如何在python中創建表格?
- 14. 如何在javascript中創建表格
- 15. 如何在Joomla中創建表格?
- 16. 如何在PHP中創建表格
- 17. 如何在excel中創建表格
- 18. 如何在Silverlight中創建表格?
- 19. 如何在MYSQL中創建新表格
- 20. 如何在phpmyadmin的表格中創建?
- 21. 如何在JavaScript中創建表格?
- 22. 如何在Cassandra中創建表格
- 23. 跨Cloud Bigtable和BigQuery加入表格
- 24. 如何使用C#中的API v4創建新的Google表格
- 25. 在Google文檔電子表格中創建按鈕,如EXCEL
- 26. 如何從Google BigQuery將數據加載到Google Cloud Bigtable中
- 27. HTML表格:如何創建此表格?
- 28. 如何在另一個表格列中創建表格?
- 29. 如何在Swift中創建類似電子表格的表格?
- 30. 如何在phpmyadmin中爲表格創建表格?
「我想」 沒有得到:) – MarkR 2010-01-26 08:34:37