Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public interface DataType {
public static final String BOOL = "boolean";
public static final String BOOL_ARRAY = "boolean[]";
public static final String BLOB = "blob";
public static final String BLOB_HASH = "blobHash";
public static final String DATE = "date";
public static final String DATE_ARRAY = "date[]";
public static final String UUID = "uuid";
Expand Down
19 changes: 19 additions & 0 deletions src/main/java/io/weaviate/client6/v1/api/collections/Property.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,25 @@ public static Property blob(String name, Function<Builder, ObjectBuilder<Propert
return newProperty(name, DataType.BLOB, fn);
}

/**
* Create a {@code blobHash} property.
*
* @param name Property name.
*/
public static Property blobHash(String name) {
return blobHash(name, ObjectBuilder.identity());
}

/**
* Create a {@code blobHash} property with additional configuration.
*
* @param name Property name.
* @param fn Lambda expression for optional parameters.
*/
public static Property blobHash(String name, Function<Builder, ObjectBuilder<Property>> fn) {
return newProperty(name, DataType.BLOB_HASH, fn);
}

/**
* Create a {@code bool} property.
*
Expand Down
Loading