@Test public void testDefineRange() throws Exception { RyaIRI subject = null; RyaIRI predicate = null; RyaType object = null; RyaIRI context = null; RdfCloudTripleStoreConfiguration conf = new MockRdfConfiguration(); NullRowTriplePatternStrategy instance = new NullRowTriplePatternStrategy(); Map.Entry<RdfCloudTripleStoreConstants.TABLE_LAYOUT, ByteRange> expResult = new RdfCloudTripleStoreUtils.CustomEntry<>(RdfCloudTripleStoreConstants.TABLE_LAYOUT.SPO, new ByteRange(new byte[]{}, LAST_BYTES)); Map.Entry<RdfCloudTripleStoreConstants.TABLE_LAYOUT, ByteRange> result = instance.defineRange(subject, predicate, object, context, conf); assertEquals(expResult.getKey(), result.getKey()); assertTrue(Arrays.equals(expResult.getValue().getStart(), result.getValue().getStart())); assertTrue(Arrays.equals(expResult.getValue().getEnd(), result.getValue().getEnd())); }
@Override public Map.Entry<TABLE_LAYOUT, ByteRange> defineRange(RyaIRI subject, RyaIRI predicate, RyaType object, RyaIRI context, RdfCloudTripleStoreConfiguration conf) throws IOException { byte[] start = new byte[]{ }; byte[] stop = LAST_BYTES; return new RdfCloudTripleStoreUtils.CustomEntry<>(TABLE_LAYOUT.SPO, new ByteRange(start, stop)); }
NullRowTriplePatternStrategy extends AbstractTriplePatternStrategy { @Override public Map.Entry<TABLE_LAYOUT, ByteRange> defineRange(RyaIRI subject, RyaIRI predicate, RyaType object, RyaIRI context, RdfCloudTripleStoreConfiguration conf) throws IOException { byte[] start = new byte[]{ }; byte[] stop = LAST_BYTES; return new RdfCloudTripleStoreUtils.CustomEntry<>(TABLE_LAYOUT.SPO, new ByteRange(start, stop)); } }
NullRowTriplePatternStrategy extends AbstractTriplePatternStrategy { @Override public Map.Entry<TABLE_LAYOUT, ByteRange> defineRange(RyaIRI subject, RyaIRI predicate, RyaType object, RyaIRI context, RdfCloudTripleStoreConfiguration conf) throws IOException { byte[] start = new byte[]{ }; byte[] stop = LAST_BYTES; return new RdfCloudTripleStoreUtils.CustomEntry<>(TABLE_LAYOUT.SPO, new ByteRange(start, stop)); }  }
NullRowTriplePatternStrategy extends AbstractTriplePatternStrategy { @Override public Map.Entry<TABLE_LAYOUT, ByteRange> defineRange(RyaIRI subject, RyaIRI predicate, RyaType object, RyaIRI context, RdfCloudTripleStoreConfiguration conf) throws IOException { byte[] start = new byte[]{ }; byte[] stop = LAST_BYTES; return new RdfCloudTripleStoreUtils.CustomEntry<>(TABLE_LAYOUT.SPO, new ByteRange(start, stop)); }  @Override TABLE_LAYOUT getLayout(); @Override Map.Entry<TABLE_LAYOUT, ByteRange> defineRange(RyaIRI subject, RyaIRI predicate, RyaType object,
                                                          RyaIRI context, RdfCloudTripleStoreConfiguration conf); @Override boolean handles(RyaIRI subject, RyaIRI predicate, RyaType object, RyaIRI context); }
NullRowTriplePatternStrategy extends AbstractTriplePatternStrategy { @Override public Map.Entry<TABLE_LAYOUT, ByteRange> defineRange(RyaIRI subject, RyaIRI predicate, RyaType object, RyaIRI context, RdfCloudTripleStoreConfiguration conf) throws IOException { byte[] start = new byte[]{ }; byte[] stop = LAST_BYTES; return new RdfCloudTripleStoreUtils.CustomEntry<>(TABLE_LAYOUT.SPO, new ByteRange(start, stop)); }  @Override TABLE_LAYOUT getLayout(); @Override Map.Entry<TABLE_LAYOUT, ByteRange> defineRange(RyaIRI subject, RyaIRI predicate, RyaType object,
                                                          RyaIRI context, RdfCloudTripleStoreConfiguration conf); @Override boolean handles(RyaIRI subject, RyaIRI predicate, RyaType object, RyaIRI context);  }