-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
75 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
http/src/main/java/io/metaloom/qdrant/client/http/model/collection/PayloadIndexInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,42 @@ | ||
package io.metaloom.qdrant.client.http.model.collection; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import io.metaloom.qdrant.client.http.model.RestModel; | ||
|
||
public class PayloadIndexInfo implements RestModel { | ||
|
||
@JsonProperty("data_type") | ||
private PayloadSchemaType dataType; | ||
|
||
private PayloadSchemaParams params; | ||
|
||
private int points; | ||
|
||
public PayloadSchemaType getDataType() { | ||
return dataType; | ||
} | ||
|
||
public PayloadIndexInfo setDataType(PayloadSchemaType dataType) { | ||
this.dataType = dataType; | ||
return this; | ||
} | ||
|
||
public PayloadSchemaParams getParams() { | ||
return params; | ||
} | ||
|
||
public PayloadIndexInfo setParams(PayloadSchemaParams params) { | ||
this.params = params; | ||
return this; | ||
} | ||
|
||
public int getPoints() { | ||
return points; | ||
} | ||
|
||
public PayloadIndexInfo setPoints(int points) { | ||
this.points = points; | ||
return this; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
http/src/main/java/io/metaloom/qdrant/client/http/model/collection/PayloadSchemaParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.metaloom.qdrant.client.http.model.collection; | ||
|
||
import com.fasterxml.jackson.annotation.JsonValue; | ||
|
||
public enum PayloadSchemaParams { | ||
|
||
KEYWORD("keyword"), | ||
|
||
INTEGER("integer"), | ||
|
||
FLOAT("float"), | ||
|
||
GEO("geo"), | ||
|
||
TEXT("text"); | ||
|
||
String name; | ||
|
||
private PayloadSchemaParams(String name) { | ||
this.name = name; | ||
} | ||
|
||
@JsonValue | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters