public static final IntArray createSPOCMaxKey(Resource subject, URI property, Value object, Resource context){ // the cache key is generated by appending the bytes of the hashcodes of subject, property, object, context and inferred and // storing them as a BigInteger; generating the cache key should thus be very efficient int s = subject != null ? subject.hashCode() : Integer.MAX_VALUE; int p = property != null ? property.hashCode() : Integer.MAX_VALUE; int o = object != null ? calcObjectHash(object) : Integer.MAX_VALUE; int c = context != null ? context.hashCode() : Integer.MAX_VALUE; IntBuffer bb = IntBuffer.allocate(4); bb.put(s); bb.put(p); bb.put(o); bb.put(c); return new IntArray(bb.array()); }
public static final IntArray createSPOCKey(Resource subject, URI property, Value object, Resource context){ // the cache key is generated by appending the bytes of the hashcodes of subject, property, object, context and inferred and // storing them as a BigInteger; generating the cache key should thus be very efficient int s = subject != null ? subject.hashCode() : Integer.MIN_VALUE; int p = property != null ? property.hashCode() : Integer.MIN_VALUE; int o = object != null ? calcObjectHash(object) : Integer.MIN_VALUE; int c = context != null ? context.hashCode() : Integer.MIN_VALUE; IntBuffer bb = IntBuffer.allocate(4); bb.put(s); bb.put(p); bb.put(o); bb.put(c); return new IntArray(bb.array()); }
public static final IntArray createCSPOKey(Resource subject, URI property, Value object, Resource context){ // the cache key is generated by appending the bytes of the hashcodes of subject, property, object, context and inferred and // storing them as a BigInteger; generating the cache key should thus be very efficient int s = subject != null ? subject.hashCode() : Integer.MIN_VALUE; int p = property != null ? property.hashCode() : Integer.MIN_VALUE; int o = object != null ? calcObjectHash(object) : Integer.MIN_VALUE; int c = context != null ? context.hashCode() : Integer.MIN_VALUE; IntBuffer bb = IntBuffer.allocate(4); bb.put(c); bb.put(s); bb.put(p); bb.put(o); return new IntArray(bb.array()); }
public static final IntArray createCSPOMaxKey(Resource subject, URI property, Value object, Resource context){ // the cache key is generated by appending the bytes of the hashcodes of subject, property, object, context and inferred and // storing them as a BigInteger; generating the cache key should thus be very efficient int s = subject != null ? subject.hashCode() : Integer.MAX_VALUE; int p = property != null ? property.hashCode() : Integer.MAX_VALUE; int o = object != null ? calcObjectHash(object) : Integer.MAX_VALUE; int c = context != null ? context.hashCode() : Integer.MAX_VALUE; IntBuffer bb = IntBuffer.allocate(4); bb.put(c); bb.put(s); bb.put(p); bb.put(o); return new IntArray(bb.array()); }
public static final IntArray createSPOCMaxKey(Resource subject, URI property, Value object, Resource context){ // the cache key is generated by appending the bytes of the hashcodes of subject, property, object, context and inferred and // storing them as a BigInteger; generating the cache key should thus be very efficient int s = subject != null ? subject.hashCode() : Integer.MAX_VALUE; int p = property != null ? property.hashCode() : Integer.MAX_VALUE; int o = object != null ? calcObjectHash(object) : Integer.MAX_VALUE; int c = context != null ? context.hashCode() : Integer.MAX_VALUE; IntBuffer bb = IntBuffer.allocate(4); bb.put(s); bb.put(p); bb.put(o); bb.put(c); return new IntArray(bb.array()); }
public static final IntArray createCSPOKey(Resource subject, URI property, Value object, Resource context){ // the cache key is generated by appending the bytes of the hashcodes of subject, property, object, context and inferred and // storing them as a BigInteger; generating the cache key should thus be very efficient int s = subject != null ? subject.hashCode() : Integer.MIN_VALUE; int p = property != null ? property.hashCode() : Integer.MIN_VALUE; int o = object != null ? calcObjectHash(object) : Integer.MIN_VALUE; int c = context != null ? context.hashCode() : Integer.MIN_VALUE; IntBuffer bb = IntBuffer.allocate(4); bb.put(c); bb.put(s); bb.put(p); bb.put(o); return new IntArray(bb.array()); }
public static final IntArray createSPOCKey(Resource subject, URI property, Value object, Resource context){ // the cache key is generated by appending the bytes of the hashcodes of subject, property, object, context and inferred and // storing them as a BigInteger; generating the cache key should thus be very efficient int s = subject != null ? subject.hashCode() : Integer.MIN_VALUE; int p = property != null ? property.hashCode() : Integer.MIN_VALUE; int o = object != null ? calcObjectHash(object) : Integer.MIN_VALUE; int c = context != null ? context.hashCode() : Integer.MIN_VALUE; IntBuffer bb = IntBuffer.allocate(4); bb.put(s); bb.put(p); bb.put(o); bb.put(c); return new IntArray(bb.array()); }
public static final IntArray createCSPOMaxKey(Resource subject, URI property, Value object, Resource context){ // the cache key is generated by appending the bytes of the hashcodes of subject, property, object, context and inferred and // storing them as a BigInteger; generating the cache key should thus be very efficient int s = subject != null ? subject.hashCode() : Integer.MAX_VALUE; int p = property != null ? property.hashCode() : Integer.MAX_VALUE; int o = object != null ? calcObjectHash(object) : Integer.MAX_VALUE; int c = context != null ? context.hashCode() : Integer.MAX_VALUE; IntBuffer bb = IntBuffer.allocate(4); bb.put(c); bb.put(s); bb.put(p); bb.put(o); return new IntArray(bb.array()); }