The KijiTable interface does not directly provide methods to perform I/O on a Kiji table. Read and write operations can be performed using either a {@link KijiTableReader}or a {@link KijiTableWriter}:
final KijiTable table = myKiji.openTable("tableName"); final EntityId myId = table.getEntityId("myRowKey"); final KijiTableReader reader = table.openTableReader(); final KijiTableWriter writer = table.openTableWriter(); // Read some data from a Kiji table using an existing EntityId and KijiDataRequest. final KijiRowData row = reader.get(myId, myDataRequest); // Do things with the row... // Write some data to a new column in the same row. writer.put(myId, "info", "newcolumn", "newvalue"); // Close open connections. reader.close(); writer.close(); table.release();
@see KijiTableReader for more information about reading data from a Kiji table.
@see KijiTableWriter for more information about writing data to a Kiji table.
@see EntityId for more information about identifying rows with entity ids.
@see Kiji for more information about opening a KijiTable instance.
|
|