public final class RecordUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
compareNullFirst(Record record1,
Record record2,
String... fieldNames) |
static int |
compareNullFirst(Record record1,
Record record2,
String fieldName) |
static int |
compareNullLast(Record record1,
Record record2,
String... fieldNames) |
static int |
compareNullLast(Record record1,
Record record2,
String fieldName) |
static Record |
copy(RecordDefinition recordDefinition,
Record object) |
static <T extends Record> |
copy(T object,
Geometry geometry)
Create a copy of the data object replacing the geometry with the new
geometry.
|
static RecordDefinition |
createGeometryRecordDefinition() |
static <D extends Record> |
filter(Collection<D> objects,
Geometry geometry,
double maxDistance) |
static boolean |
getBoolean(Record object,
String fieldName) |
static Double |
getDouble(Record object,
int attributeIndex) |
static Double |
getDouble(Record object,
String fieldName) |
static <T> T |
getFieldByPath(Record object,
String path) |
static Set<Identifier> |
getIdentifiers(Collection<? extends Record> records) |
static Integer |
getInteger(Record object,
String fieldName) |
static Integer |
getInteger(Record object,
String fieldName,
Integer defaultValue) |
static Long |
getLong(Record object,
String fieldName) |
static Record |
getObject(RecordDefinition recordDefinition,
Map<String,Object> values) |
static List<Record> |
getObjects(RecordDefinition recordDefinition,
Collection<? extends Map<String,Object>> list) |
static void |
mergeStringListValue(Map<String,Object> object,
Record object1,
Record object2,
String fieldName,
String separator) |
static void |
mergeValue(Map<String,Object> object,
Record object1,
Record object2,
String fieldName,
String separator) |
static void |
setValues(Record target,
Record source,
Collection<String> fieldNames,
Collection<String> ignoreFieldNames) |
static Geometry |
unionGeometry(Collection<?> objects) |
static Geometry |
unionGeometry(Map<?,?> map) |
static Geometry |
unionGeometry(Object object) |
public static int compareNullFirst(Record record1, Record record2, String fieldName)
public static int compareNullFirst(Record record1, Record record2, String... fieldNames)
public static int compareNullLast(Record record1, Record record2, String... fieldNames)
public static Record copy(RecordDefinition recordDefinition, Record object)
public static <T extends Record> T copy(T object, Geometry geometry)
object - The object to copy.geometry - The new geometry.public static RecordDefinition createGeometryRecordDefinition()
public static <D extends Record> List<D> filter(Collection<D> objects, Geometry geometry, double maxDistance)
public static Set<Identifier> getIdentifiers(Collection<? extends Record> records)
public static Record getObject(RecordDefinition recordDefinition, Map<String,Object> values)
public static List<Record> getObjects(RecordDefinition recordDefinition, Collection<? extends Map<String,Object>> list)
public static void mergeStringListValue(Map<String,Object> object, Record object1, Record object2, String fieldName, String separator)
public static void mergeValue(Map<String,Object> object, Record object1, Record object2, String fieldName, String separator)
public static void setValues(Record target, Record source, Collection<String> fieldNames, Collection<String> ignoreFieldNames)
public static Geometry unionGeometry(Collection<?> objects)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.