blob: 7d03d063ca2b30278a81e8d167451e8dd90408fc [file] [log] [blame]
/*
* Copyright 2016 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.mrql;
import java.io.Serializable;
public class SData implements Comparable<SData>,Serializable{
MRData data;
public SData(MRData data) {
this.data = data;
}
public SData() {
}
public MRData data () { return data; }
@Override
public int compareTo ( SData x ) { return data.compareTo(x.data); }
@Override
public boolean equals ( Object x ) {
return x instanceof SData && data.equals(((SData)x).data);
}
@Override
public int hashCode () { return data.hashCode(); }
@Override
public String toString () { return data.toString(); }
}