Package com.alibaba.wasp

Examples of com.alibaba.wasp.ReadModel


  public void testGet() {
    String tableName = "test";
    String primary = "1234";
    String familyName = "info";
    String columnName = "col";
    ReadModel model = ReadModel.SNAPSHOT;
    GetAction action = new GetAction(model, tableName, Bytes.toBytes(primary));
    action.addEntityColumn(tableName, familyName, columnName, DataType.STRING, null);
    action.addEntityColumn(tableName, familyName, columnName, DataType.STRING, null);
    GetActionProto proto = ProtobufUtil.toGetActionProto(action);
    action = (GetAction) ProtobufUtil.toGetAction(proto);
View Full Code Here


        && action.getColumns().get(1).getColumnName().equals(columnName));
  }

  @Test
  public void testScan() {
    ReadModel readerMode = ReadModel.INCONSISTENT;
    String indexTableName = "test_index";
    String entityTableName = "test";
    byte[] startKey = "000".getBytes();
    byte[] endKey = "111".getBytes();
    int limit = 100;
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.ReadModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.