org.cloudgraph.hbase.graph.EdgeRecognizerContext Maven / Gradle / Ivy
/**
* CloudGraph Community Edition (CE) License
*
* This is a community release of CloudGraph, a dual-license suite of
* Service Data Object (SDO) 2.1 services designed for relational and
* big-table style "cloud" databases, such as HBase and others.
* This particular copy of the software is released under the
* version 2 of the GNU General Public License. CloudGraph was developed by
* TerraMeta Software, Inc.
*
* Copyright (c) 2013, TerraMeta Software, Inc. All rights reserved.
*
* General License information can be found below.
*
* This distribution may include materials developed by third
* parties. For license and attribution notices for these
* materials, please refer to the documentation that accompanies
* this distribution (see the "Licenses for Third-Party Components"
* appendix) or view the online documentation at
* .
*/
package org.cloudgraph.hbase.graph;
import java.util.Map;
import org.apache.hadoop.hbase.KeyValue;
import org.cloudgraph.query.expr.EvaluationContext;
/**
* Context which supports the evaluation and
* "recognition" of a given data graph entity
* sequence value by a binary expression tree, within
* the context of the expression syntax and a given
* HBase KeyValue
* map.
*
* A sequence uniquely identifies an data graph entity within a
* local or distributed data graph and is mapped internally
* to provide global uniqueness.
*
* @author Scott Cinnamond
* @since 0.5.2
*
* @see org.cloudgraph.hbase.graph.HBaseGraphAssembler
* @see org.cloudgraph.hbase.graph.GraphSliceSupport
*/
public class EdgeRecognizerContext implements EvaluationContext {
private Map keyMap;
private Integer sequence;
/**
* Constructs an empty context.
*/
public EdgeRecognizerContext() {
}
/**
* Returns the HBase KeyValue
* specific for the current sequence.
* @return the HBase KeyValue
* specific for the current sequence.
*/
public Map getKeyMap() {
return keyMap;
}
/**
* Sets the HBase KeyValue
* specific for the current sequence.
*/
public void setKeyMap(Map keyMap) {
this.keyMap = keyMap;
}
/**
* Returns the current sequence.
* @return the current sequence.
*/
public Integer getSequence() {
return sequence;
}
/**
* Sets the current sequence.
*/
public void setSequence(Integer sequence) {
this.sequence = sequence;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy