public String[] classesOf(int variableIndex) { IntHashSet typeSet = types[nodeMapping[packNodeAndDegree(variableIndex, 0)]]; if (typeSet == null) { return new String[0]; } int[] typeIndexes = typeSet.toArray(); String[] types = new String[typeIndexes.length]; for (int i = 0; i < typeIndexes.length; ++i) { types[i] = typeList.get(typeIndexes[i]); } return types; }
@Override public int[] iterationOrderArray() { return delegate.toArray(); } }
@Override public GeolocationContextMapping build() { if(precisions.isEmpty()) { precisions.add(GeoHashUtils.PRECISION); } int[] precisionArray = precisions.toArray(); Arrays.sort(precisionArray); return new GeolocationContextMapping(name, precisionArray, neighbors, defaultLocations, fieldName); }
@Override public GeolocationContextMapping build() { if(precisions.isEmpty()) { precisions.add(GeoHashUtils.PRECISION); } int[] precisionArray = precisions.toArray(); Arrays.sort(precisionArray); return new GeolocationContextMapping(name, precisionArray, neighbors, defaultLocations, fieldName); }
@Override public GeolocationContextMapping build() { if(precisions.isEmpty()) { precisions.add(GeoHashUtils.PRECISION); } int[] precisionArray = precisions.toArray(); Arrays.sort(precisionArray); return new GeolocationContextMapping(name, precisionArray, neighbors, defaultLocations, fieldName); }
precisions.add(parsePrecision(parser)); precision = precisions.toArray(); } else { precision = new int[] { parsePrecision(parser) };
precisions.add(parsePrecision(parser)); precision = precisions.toArray(); } else { precision = new int[] { parsePrecision(parser) };
precisions.add(parsePrecision(parser)); precision = precisions.toArray(); } else { precision = new int[] { parsePrecision(parser) };