@Override public LexPredicate clone() { // Fast path for clone(). return new LexPredicate(this); }
/** * Strengthened return type. * <p> * {@inheritDoc} */ @Override public LexPredicate asBound(final IBindingSet bindingSet) { return (LexPredicate) new LexPredicate(argsCopy(), annotationsRef()) ._asBound(bindingSet); // return (LexPredicate) super.asBound(bindingSet); }
/** * Return the {@link IV} at index position {@value LexiconKeyOrder#SLOT_IV}. */ @SuppressWarnings("unchecked") final public IVariableOrConstant<IV> iv() { return (IVariableOrConstant<IV>) get(LexiconKeyOrder.SLOT_IV); }
+ v.getName() + "-" + ctx.nextId()); lexPred = LexPredicate.reverseInstance(ns, timestamp, anonvar, v);
.reverseInstance(r.getNamespace(), ITx.UNISOLATED, termvar, new Constant<IV>(expected.getIV()));
@Override public LexPredicate clone() { // Fast path for clone(). return new LexPredicate(this); }
/** * Strengthened return type. * <p> * {@inheritDoc} */ @Override public LexPredicate asBound(final IBindingSet bindingSet) { return (LexPredicate) new LexPredicate(argsCopy(), annotationsRef()) ._asBound(bindingSet); // return (LexPredicate) super.asBound(bindingSet); }
+ v.getName() + "-" + ctx.nextId()); lexPred = LexPredicate.reverseInstance(ns, timestamp, anonvar, v);
/** * Return the {@link BigdataValue} at index position * {@value LexiconKeyOrder#SLOT_TERM}. */ @SuppressWarnings("unchecked") final public IVariableOrConstant<BigdataValue> term() { return (IVariableOrConstant<BigdataValue>) get(LexiconKeyOrder.SLOT_TERM); }
public void test_NoneBound_pattern() { final IVariableOrConstant<?>[] args = new IVariableOrConstant[] { Var.var(), // value Var.var(), // iv }; final LexPredicate p = new LexPredicate(args); assertEquals(LexAccessPatternEnum.NoneBound, LexAccessPatternEnum .valueOf(p)); }
.reverseInstance(r.getNamespace(), ITx.UNISOLATED, termvar, new Constant<IV>(expected.getIV()));
/** * Return the {@link IV} at index position {@value LexiconKeyOrder#SLOT_IV}. */ @SuppressWarnings("unchecked") final public IVariableOrConstant<IV> iv() { return (IVariableOrConstant<IV>) get(LexiconKeyOrder.SLOT_IV); }
public void test_NoneBound_pattern() { final IVariableOrConstant<?>[] args = new IVariableOrConstant[] { Var.var(), // value Var.var(), // iv }; final LexPredicate p = new LexPredicate(args); assertEquals(LexAccessPatternEnum.NoneBound, LexAccessPatternEnum .valueOf(p)); }
.reverseInstance(r.getNamespace(), ITx.UNISOLATED, termvar, new Constant<IV>(expected.getIV()));
/** * Return the {@link BigdataValue} at index position * {@value LexiconKeyOrder#SLOT_TERM}. */ @SuppressWarnings("unchecked") final public IVariableOrConstant<BigdataValue> term() { return (IVariableOrConstant<BigdataValue>) get(LexiconKeyOrder.SLOT_TERM); }
public void test_IVBound_pattern() { final MockTermIdFactory f = new MockTermIdFactory(); final IConstant<?> iv = new Constant<IV>(f.newTermId()); final IVariableOrConstant<?>[] args = new IVariableOrConstant[] { Var.var(), // value iv, // iv }; final LexPredicate p = new LexPredicate(args); assertEquals(LexAccessPatternEnum.IVBound, LexAccessPatternEnum .valueOf(p)); }
final IVariableOrConstant<IV> term) { return new LexPredicate(// new IVariableOrConstant[] {//
final IVariableOrConstant<IV> term) { return new LexPredicate(// new IVariableOrConstant[] {//
public void test_IVBound_pattern() { final MockTermIdFactory f = new MockTermIdFactory(); final IConstant<?> iv = new Constant<IV>(f.newTermId()); final IVariableOrConstant<?>[] args = new IVariableOrConstant[] { Var.var(), // value iv, // iv }; final LexPredicate p = new LexPredicate(args); assertEquals(LexAccessPatternEnum.IVBound, LexAccessPatternEnum .valueOf(p)); }
public void test_ValueBound_pattern() { final BigdataValueFactory vf = BigdataValueFactoryImpl .getInstance(getName()); final IConstant<?> value = new Constant<BigdataURI>(vf .createURI("http://www.bigdata.com")); final IVariableOrConstant<?>[] args = new IVariableOrConstant[] { value, // value Var.var(), // iv }; final LexPredicate p = new LexPredicate(args); assertEquals(LexAccessPatternEnum.ValueBound, LexAccessPatternEnum .valueOf(p)); }