| Constructor and Description |
|---|
RecordEqualer(Class<? extends eu.stratosphere.types.Value>[] schema)
Initializes RecordEqualer with the given schema.
|
RecordEqualer(Class<? extends eu.stratosphere.types.Value> firstFieldType,
Class<?>... otherFieldTypes)
Initializes RecordEqualer with the given schema.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equal(eu.stratosphere.types.Record object1,
eu.stratosphere.types.Record object2)
Returns true, if both objects are equal; false, otherwise.
This method has similar semantic to object1.equals(object2). |
Class<? extends eu.stratosphere.types.Value>[] |
getSchema()
Returns the schema.
|
static boolean |
recordsEqual(eu.stratosphere.types.Record object1,
eu.stratosphere.types.Record object2,
Class<? extends eu.stratosphere.types.Value>[] schema)
Convenience method to check for equality on the given records with the provided schema.
|
public RecordEqualer(Class<? extends eu.stratosphere.types.Value> firstFieldType, Class<?>... otherFieldTypes)
public RecordEqualer(Class<? extends eu.stratosphere.types.Value>[] schema)
public boolean equal(eu.stratosphere.types.Record object1,
eu.stratosphere.types.Record object2)
Equalerobject1.equals(object2).public Class<? extends eu.stratosphere.types.Value>[] getSchema()
public static boolean recordsEqual(eu.stratosphere.types.Record object1,
eu.stratosphere.types.Record object2,
Class<? extends eu.stratosphere.types.Value>[] schema)
Copyright © 2014. All rights reserved.