Package org.renjin.util

Examples of org.renjin.util.NamesBuilder.build()


          names.add(xn.getElementAsString(i));
        }
      }
    }
    return indices
      .setAttribute(Symbols.NAMES, names.build())
      .build();
  }

  private static class FactorString extends StringVector {
View Full Code Here


          names.add(x.getName(x_i));
        }
      }
    }
    if(names.haveNames()) {
      result.setAttribute(Symbols.NAMES, names.build(resultLength));
    }

    return result.build();
  }
View Full Code Here

        names.addNA();
      }
      result.add(node.getValue());
    }
    result.setAttribute(Symbols.NAMES.getPrintName(),
        names.build(result.length()));
    return result.build();
  }

  @Internal
  public static StringVector rawToChar(RawVector vector, boolean multiple) {
View Full Code Here

    StringVector.Builder result = new StringVector.Builder();
    NamesBuilder names = NamesBuilder.withInitialCapacity(paths.length());
    for(String path : paths) {
      result.add(hashFile(context, path));
    }
    result.setAttribute(Symbols.NAMES, names.build());
    return result.build();
  }

  protected static String hashFile(Context context, String path)
      throws FileSystemException, NoSuchAlgorithmException, IOException {
View Full Code Here

      names.add(node.getName());
      expressions.add(node.getValue());
    }
    AttributeMap.Builder attributes = AttributeMap.builder();
    if(names.haveNames()) {
      attributes.setNames((StringVector)names.build());
    }
    return new ExpressionVector(expressions, attributes.build());
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.