blob: f4575f313b83045387ae682c0b8f9961581b0275 [file] [log] [blame]
/*
* Copyright 2009-2012 by The Regents of the University of California
* 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 from
*
* 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 edu.uci.ics.hyracks.storage.common.file;
import java.io.Serializable;
public class LocalResource implements Serializable {
private static final long serialVersionUID = 1L;
private final long resourceId;
private final String resourceName;
private final int partition;
private final int resourceType;
private final Object object;
public static final int TransientResource = 0;
public static final int LSMBTreeResource = 1;
public static final int LSMRTreeResource = 2;
public static final int LSMInvertedIndexResource = 3;
public LocalResource(long resourceId, String resourceName, int partition, int resourceType, Object object) {
this.resourceId = resourceId;
this.resourceName = resourceName;
this.partition = partition;
this.resourceType = resourceType;
this.object = object;
}
public long getResourceId() {
return resourceId;
}
public String getResourceName() {
return resourceName;
}
public int getPartition() {
return partition;
}
public int getResourceType() {
return resourceType;
}
public Object getResourceObject() {
return object;
}
}