List of utility methods to do List Create
String | createOrderedQuery(String attributeName, List Step 1 in Collaborative Filtering using SOLR. StringBuilder queryBuilder = new StringBuilder(); if (ids != null) { queryBuilder.append(attributeName + ":("); int productCounter = 0; int weight = ids.size(); for (String product : ids) { if (productCounter >= MAX_SAME_PRODUCT_COUNT) { break; ... |
List | createOrgAttributeList() create Org Attribute List List<String> attributeList = new ArrayList<>(); attributeList.add("name"); attributeList.add("displayName"); attributeList.add("orgType"); attributeList.add("locality"); attributeList.add("parentOrgUnits"); attributeList.add("governors"); attributeList.add("resourceInducements"); ... |
List | createOrGrow(List Grows the given list to the given capacity, or creates a new list if the given list is null. if (list == null) { list = create(minCapacity); } else if (list instanceof ArrayList) { ((ArrayList) list).ensureCapacity(minCapacity); return list; |
List | createOutputTuple(List
create Output Tuple final List<String> outputTuple = new ArrayList<String>(); for (List<String> tpI : tuples) { for (String coulumnJ : tpI) { outputTuple.add(coulumnJ); return outputTuple; |
String | createPostBody(final List create Post Body final StringBuilder body = new StringBuilder("{ name: "); body.append("'test"); body.append(++count); body.append("'"); if (required != null) { for (final String key : required) { body.append(", "); if (key.startsWith("i:")) { ... |
List | createPrimaryKeyList(String primaryKeyStr) create Primary Key List return new ArrayList<>(Arrays.asList(primaryKeyStr.trim().split("\\s*,\\s*"))); |
String | createPrimaryKeysQuery(String tableName, List create Primary Keys Query StringBuilder query = new StringBuilder("ALTER TABLE "); query.append(tableName); query.append(" ADD PRIMARY KEY ("); for (String key : primaryKeys) { query.append(key); query.append(","); query.setLength(query.length() - 1); ... |
String | createQueryLogMessage(String query, List Method to create a human readable log message regarding a generated query. StringBuilder builder = new StringBuilder(); builder.append("Query: \""); builder.append(query); builder.append("\""); if (parameterValues != null && parameterValues.size() > 0) { builder.append(", parameters: { "); Iterator<Object> parameterIterator = parameterValues.iterator(); while (parameterIterator.hasNext()) { ... |
String | createQueryString(String query, List params) create Query String String output = query; int count = 1; for (Iterator i = params.iterator(); i.hasNext();) { output = output.replaceAll("%" + count++, i.next().toString()); return output; |
void | createRegion(String string, List create Region if (endIndex > startIndex) { regionList.add(string.substring(startIndex, endIndex)); } else if (endIndex != startIndex) { throw new IllegalArgumentException("Bad substring range"); |