Package com.alvazan.orm.api.z5api

Examples of com.alvazan.orm.api.z5api.IndexColumnInfo


    @Override
    public IterHolder<byte[]> nextImpl() {
      Holder<IndexColumnInfo> next = cursor.nextImpl();
      if(next == null)
        return null;
      IndexColumnInfo info = next.getValue();
      Wrapper wrapper = info.getIndexNode(view);
      IndexColumn indNode = wrapper.getCol();
      byte[] key = indNode.getPrimaryKey();
      if(key == null)
        throw new IllegalArgumentException("key was null, index data seems corrupt on view="+view+" col="
            +wrapper.getColMeta()+" some value is tied to a null primary key.  Should" +
View Full Code Here


      Holder<IndexColumnInfo> next = cursor.nextImpl();
      if(next == null)
        break;
     
     
      IndexColumnInfo index = next.getValue();
      for(ViewInfo info : eagerlyJoinedViews) {
        byte[] pk = index.getPrimaryKeyRaw(info);
        TwoLists twoLists = map.get(info);
        twoLists.getFullKeyList().add(pk);
        if(pk != null) {
          List<byte[]> list = twoLists.getListWithNoNulls();
          list.add(pk);
View Full Code Here

  @Override
  public Holder<byte[]> nextImpl() {
    Holder<IndexColumnInfo> next = cursor.nextImpl();
    if(next == null || next.getValue()==null)
      return null;
    IndexColumnInfo info = next.getValue();
    Wrapper wrapper = info.getIndexNode(view);
    IndexColumn indNode = wrapper.getCol();
    byte[] key = indNode.getPrimaryKey();
    if(key == null)
      throw new IllegalArgumentException("key was null, index data seems corrupt on view="+view+" col="
          +wrapper.getColMeta()+" some value is tied to a null primary key.  Should" +
View Full Code Here

  @Override
  public Holder<byte[]> previousImpl() {
    Holder<IndexColumnInfo> prev = cursor.previousImpl();
    if(prev == null)
      return null;
    IndexColumnInfo info = prev.getValue();
    Wrapper wrapper = info.getIndexNode(view);
    IndexColumn indNode = wrapper.getCol();
    byte[] key = indNode.getPrimaryKey();
    if(key == null)
      throw new IllegalArgumentException("key was null, index data seems corrupt on view="+view+" col="
          +wrapper.getColMeta()+" some value is tied to a null primary key.  Should" +
View Full Code Here

    if (pk != null) {
      c.setPrimaryKey(colMeta.getOwner().getIdColumnMeta().unformVirtRowKey(pk));
      c.setIndexedValue(colMeta.getOwner().getIdColumnMeta().unformVirtRowKey(pk));
      c.setValue(pk);
    }
    IndexColumnInfo info = new IndexColumnInfo();
    info.putIndexNode(viewInfo, c, colMeta);
    return new Holder<IndexColumnInfo>(info);
  }
View Full Code Here

      Holder<IndexColumnInfo> next = cursor.nextImpl();
      if(next == null)
        break;
     
     
      IndexColumnInfo index = next.getValue();
      if(index != null) {
        for(ViewInfo info : eagerlyJoinedViews) {
          byte[] pk = index.getPrimaryKeyRaw(info);
          TwoLists twoLists = map.get(info);
          twoLists.getFullKeyList().add(pk);
          if(pk != null) {
            List<byte[]> list = twoLists.getListWithNoNulls();
            list.add(pk);
View Full Code Here

      Holder<IndexColumnInfo> previous = cursor.previousImpl();
      if(previous == null)
        break;
     
     
      IndexColumnInfo index = previous.getValue();
      for(ViewInfo info : eagerlyJoinedViews) {
        byte[] pk = index.getPrimaryKeyRaw(info);
        TwoLists twoLists = map.get(info);
        twoLists.getFullKeyList().add(pk);
        if(pk != null) {
          List<byte[]> list = twoLists.getListWithNoNulls();
          list.add(pk);
View Full Code Here

    //always print the nullpartition first and start count at with 1...
    System.out.println("/"+cf+"/<AnyIndexedColumn>");
   
    int counter = 1;
    while(cursor.next()) {
      IndexColumnInfo current = cursor.getCurrent();
      IndexPoint pt = current.getKeyForView(oneView);
      String key = pt.getKeyAsString();
      System.out.println(firstPart+key);
      counter++;
    }
    System.out.println(counter+" Total Partitions");
View Full Code Here

TOP

Related Classes of com.alvazan.orm.api.z5api.IndexColumnInfo

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.