/** * Create a {@code PropertyState} from a {@link Blob}. * @param name The name of the property state * @param value The value of the property state * @return The new property state of type {@link Type#BINARY} */ public static PropertyState binaryProperty( @NotNull String name, @NotNull Blob value) { return new BinaryPropertyState(name, value); }
/** * Create a {@code PropertyState} from a {@link Blob}. * @param name The name of the property state * @param value The value of the property state * @return The new property state of type {@link Type#BINARY} */ public static PropertyState binaryProperty( @Nonnull String name, @Nonnull Blob value) { return new BinaryPropertyState(name, value); }
/** * Create a {@code PropertyState} from a {@link javax.jcr.Value}. * @param name The name of the property state * @param value The value of the property state * @return The new property state of type {@link Type#BINARY} */ public static PropertyState binaryProperty( @NotNull String name, @NotNull Value value) throws RepositoryException { return new BinaryPropertyState(name, getBlob(value)); }
/** * Create a {@code PropertyState} from a {@link javax.jcr.Value}. * @param name The name of the property state * @param value The value of the property state * @return The new property state of type {@link Type#BINARY} */ public static PropertyState binaryProperty( @Nonnull String name, @Nonnull Value value) throws RepositoryException { return new BinaryPropertyState(name, getBlob(value)); }
/** * Create a {@code PropertyState} from an array of bytes. * @param name The name of the property state * @param value The value of the property state * @return The new property state of type {@link Type#BINARY} */ public static PropertyState binaryProperty( @NotNull String name, @NotNull byte[] value) { return new BinaryPropertyState( name, new ArrayBasedBlob(checkNotNull(value))); }
/** * Create a {@code PropertyState} from an array of bytes. * @param name The name of the property state * @param value The value of the property state * @return The new property state of type {@link Type#BINARY} */ public static PropertyState binaryProperty( @NotNull String name, @NotNull String value) { return new BinaryPropertyState( name, new StringBasedBlob(checkNotNull(value))); }
/** * Create a {@code PropertyState} from an array of bytes. * @param name The name of the property state * @param value The value of the property state * @return The new property state of type {@link Type#BINARY} */ public static PropertyState binaryProperty( @Nonnull String name, @Nonnull byte[] value) { return new BinaryPropertyState( name, new ArrayBasedBlob(checkNotNull(value))); }
/** * Create a {@code PropertyState} from an array of bytes. * @param name The name of the property state * @param value The value of the property state * @return The new property state of type {@link Type#BINARY} */ public static PropertyState binaryProperty( @Nonnull String name, @Nonnull String value) { return new BinaryPropertyState( name, new StringBasedBlob(checkNotNull(value))); }
for (int i = 0; i < 10; i++) { InputStream s = new RandomStream(10 * 1024, 42); PropertyState p = new BinaryPropertyState("p", ns.createBlob(s)); builder.child("test").child("node-" + i).setProperty(p); for (int i = 0; i < 10; i++) { InputStream s = new RandomStream(10 * 1024, 17); PropertyState p = new BinaryPropertyState("p", ns.createBlob(s)); builder.child("test").child("node-" + i).setProperty(p);
while (!Iterables.any(store.find(Collection.NODES, id).getPreviousRanges().values(), INTERMEDIATE)) { InputStream s = new RandomStream(10 * 1024, 42); PropertyState p = new BinaryPropertyState("p", ns.createBlob(s)); builder = ns.getRoot().builder(); builder.child("test").setProperty(p);