...

Package private_maprdb_go_client

import "github.com/mapr/private-maprdb-go-client"
Overview
Index
Subdirectories

Overview ▾

Index ▾

Constants
Variables
func RegisterMapRDbServerServer(s *grpc.Server, srv MapRDbServerServer)
func StreamClientAuthInterceptor(umd *userMetadata) grpc.StreamClientInterceptor
func StreamClientTokenInterceptor(umd *userMetadata) grpc.StreamClientInterceptor
func UnaryClientAuthInterceptor(umd *userMetadata) grpc.UnaryClientInterceptor
func UnaryClientTokenInterceptor(umd *userMetadata) grpc.UnaryClientInterceptor
type BinaryOrStringId
    func BosiFromBinary(binary []byte) *BinaryOrStringId
    func BosiFromString(str string) *BinaryOrStringId
type Comparison
type Condition
    func MakeCondition(conditions ...ConditionOptions) (*Condition, error)
    func (condition *Condition) AsMap() map[string]interface{}
    func (condition *Condition) Build() (*Condition, error)
    func (condition *Condition) IsBuilt() bool
    func (condition *Condition) IsEmpty() bool
type ConditionOptions
    func AddCondition(conditionToAdd *Condition) ConditionOptions
    func AddConditionMap(conditionToAdd map[string]interface{}) ConditionOptions
    func And() ConditionOptions
    func Close() ConditionOptions
    func ElementAnd(fieldPath string) ConditionOptions
    func Equals(fieldPath string, value interface{}) ConditionOptions
    func Exists(fieldPath string) ConditionOptions
    func In(fieldPath string, valueList []interface{}) ConditionOptions
    func Is(fieldPath string, op Comparison, value interface{}) ConditionOptions
    func Like(fieldPath string, likeExpr interface{}) ConditionOptions
    func Matches(fieldPath string, regex interface{}) ConditionOptions
    func NotEquals(fieldPath string, value interface{}) ConditionOptions
    func NotExists(fieldPath string) ConditionOptions
    func NotIn(fieldPath string, valueList []interface{}) ConditionOptions
    func NotLike(fieldPath string, likeExpr interface{}) ConditionOptions
    func NotMatches(fieldPath string, regex interface{}) ConditionOptions
    func NotTypeOf(fieldPath string, valueType interface{}) ConditionOptions
    func Or() ConditionOptions
    func TypeOf(fieldPath string, valueType interface{}) ConditionOptions
type Connection
    func MakeConnection(connectionString string) (*Connection, error)
    func MakeConnectionWithRetryOptions(connectionString string, connectionOptions *ConnectionOptions) (*Connection, error)
    func (connection *Connection) Close()
    func (connection *Connection) CreateDocumentFromMap(documentMap map[string]interface{}) *Document
    func (connection *Connection) CreateDocumentFromString(jsonString string) (*Document, error)
    func (connection *Connection) CreateEmptyDocument() (*Document, error)
    func (connection *Connection) CreateStore(storeName string) (*DocumentStore, error)
    func (connection *Connection) DeleteStore(storeName string) error
    func (connection *Connection) GetStore(storeName string) (*DocumentStore, error)
    func (connection *Connection) IsStoreExists(storeName string) (bool, error)
type ConnectionOptions
type CreateTableRequest
    func (*CreateTableRequest) Descriptor() ([]byte, []int)
    func (m *CreateTableRequest) GetTablePath() string
    func (*CreateTableRequest) ProtoMessage()
    func (m *CreateTableRequest) Reset()
    func (m *CreateTableRequest) String() string
    func (m *CreateTableRequest) XXX_DiscardUnknown()
    func (m *CreateTableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *CreateTableRequest) XXX_Merge(src proto.Message)
    func (m *CreateTableRequest) XXX_Size() int
    func (m *CreateTableRequest) XXX_Unmarshal(b []byte) error
type CreateTableResponse
    func (*CreateTableResponse) Descriptor() ([]byte, []int)
    func (m *CreateTableResponse) GetError() *RpcError
    func (*CreateTableResponse) ProtoMessage()
    func (m *CreateTableResponse) Reset()
    func (m *CreateTableResponse) String() string
    func (m *CreateTableResponse) XXX_DiscardUnknown()
    func (m *CreateTableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *CreateTableResponse) XXX_Merge(src proto.Message)
    func (m *CreateTableResponse) XXX_Size() int
    func (m *CreateTableResponse) XXX_Unmarshal(b []byte) error
type DeleteRequest
    func (*DeleteRequest) Descriptor() ([]byte, []int)
    func (m *DeleteRequest) GetCondition() isDeleteRequest_Condition
    func (m *DeleteRequest) GetDocument() isDeleteRequest_Document
    func (m *DeleteRequest) GetJsonCondition() string
    func (m *DeleteRequest) GetJsonDocument() string
    func (m *DeleteRequest) GetPayloadEncoding() PayloadEncoding
    func (m *DeleteRequest) GetTablePath() string
    func (*DeleteRequest) ProtoMessage()
    func (m *DeleteRequest) Reset()
    func (m *DeleteRequest) String() string
    func (m *DeleteRequest) XXX_DiscardUnknown()
    func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *DeleteRequest) XXX_Merge(src proto.Message)
    func (*DeleteRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
    func (m *DeleteRequest) XXX_Size() int
    func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
type DeleteRequest_JsonCondition
type DeleteRequest_JsonDocument
type DeleteResponse
    func (*DeleteResponse) Descriptor() ([]byte, []int)
    func (m *DeleteResponse) GetError() *RpcError
    func (*DeleteResponse) ProtoMessage()
    func (m *DeleteResponse) Reset()
    func (m *DeleteResponse) String() string
    func (m *DeleteResponse) XXX_DiscardUnknown()
    func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *DeleteResponse) XXX_Merge(src proto.Message)
    func (m *DeleteResponse) XXX_Size() int
    func (m *DeleteResponse) XXX_Unmarshal(b []byte) error
type DeleteTableRequest
    func (*DeleteTableRequest) Descriptor() ([]byte, []int)
    func (m *DeleteTableRequest) GetTablePath() string
    func (*DeleteTableRequest) ProtoMessage()
    func (m *DeleteTableRequest) Reset()
    func (m *DeleteTableRequest) String() string
    func (m *DeleteTableRequest) XXX_DiscardUnknown()
    func (m *DeleteTableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *DeleteTableRequest) XXX_Merge(src proto.Message)
    func (m *DeleteTableRequest) XXX_Size() int
    func (m *DeleteTableRequest) XXX_Unmarshal(b []byte) error
type DeleteTableResponse
    func (*DeleteTableResponse) Descriptor() ([]byte, []int)
    func (m *DeleteTableResponse) GetError() *RpcError
    func (*DeleteTableResponse) ProtoMessage()
    func (m *DeleteTableResponse) Reset()
    func (m *DeleteTableResponse) String() string
    func (m *DeleteTableResponse) XXX_DiscardUnknown()
    func (m *DeleteTableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *DeleteTableResponse) XXX_Merge(src proto.Message)
    func (m *DeleteTableResponse) XXX_Size() int
    func (m *DeleteTableResponse) XXX_Unmarshal(b []byte) error
type Document
    func MakeDocument(operations ...DocumentOperations) (*Document, error)
    func MakeDocumentFromJson(jsonDocument string) (*Document, error)
    func MakeDocumentFromMap(initialData map[string]interface{}) *Document
    func (doc *Document) AsJsonString() string
    func (doc *Document) AsMap() map[string]interface{}
    func (doc *Document) AsString() string
    func (doc *Document) Clean() *Document
    func (doc *Document) Delete(fieldPath string) *Document
    func (doc *Document) GetBool(fieldPath string) (bool, error)
    func (doc *Document) GetByte(fieldPath string) ([]byte, error)
    func (doc *Document) GetDate(fieldPath string) (ODate, error)
    func (doc *Document) GetFloat32(fieldPath string) (float32, error)
    func (doc *Document) GetFloat64(fieldPath string) (float64, error)
    func (doc *Document) GetIdBinary() ([]byte, error)
    func (doc *Document) GetIdString() (string, error)
    func (doc *Document) GetInt(fieldPath string) (int, error)
    func (doc *Document) GetMap(fieldPath string) (map[string]interface{}, error)
    func (doc *Document) GetSlice(fieldPath string) ([]interface{}, error)
    func (doc *Document) GetString(fieldPath string) (string, error)
    func (doc *Document) GetTime(fieldPath string) (OTime, error)
    func (doc *Document) GetTimestamp(fieldPath string) (OTimestamp, error)
    func (doc *Document) HasId() bool
    func (doc *Document) IsNil(fieldPath string) (bool, error)
    func (doc *Document) IsPathExists(fieldPath string) bool
    func (doc *Document) MarshalJSON() ([]byte, error)
    func (doc *Document) SetBool(fieldPath string, value bool) *Document
    func (doc *Document) SetByte(fieldPath string, value []byte) *Document
    func (doc *Document) SetDate(fieldPath string, value *ODate) *Document
    func (doc *Document) SetFloat32(fieldPath string, value float32) *Document
    func (doc *Document) SetFloat64(fieldPath string, value float64) *Document
    func (doc *Document) SetIdBinary(id []byte) error
    func (doc *Document) SetIdString(id string) error
    func (doc *Document) SetInt(fieldPath string, value int) *Document
    func (doc *Document) SetMap(fieldPath string, value map[string]interface{}) *Document
    func (doc *Document) SetNil(fieldPath string) *Document
    func (doc *Document) SetSlice(fieldPath string, value []interface{}) *Document
    func (doc *Document) SetString(fieldPath string, value string) *Document
    func (doc *Document) SetTime(fieldPath string, value *OTime) *Document
    func (doc *Document) SetTimestamp(fieldPath string, value *OTimestamp) *Document
    func (doc *Document) UnmarshalJSON(b []byte) error
type DocumentMutation
    func MakeDocumentMutation(mutations ...MutationOperations) (*DocumentMutation, error)
type DocumentOperations
    func SetBool(fieldPath string, value bool) DocumentOperations
    func SetByte(fieldPath string, value []byte) DocumentOperations
    func SetDate(fieldPath string, value *ODate) DocumentOperations
    func SetFloat32(fieldPath string, value float32) DocumentOperations
    func SetFloat64(fieldPath string, value float64) DocumentOperations
    func SetIdBinary(id []byte) DocumentOperations
    func SetIdString(id string) DocumentOperations
    func SetInt(fieldPath string, value int) DocumentOperations
    func SetMap(fieldPath string, value map[string]interface{}) DocumentOperations
    func SetNil(fieldPath string) DocumentOperations
    func SetSlice(fieldPath string, value []interface{}) DocumentOperations
    func SetString(fieldPath string, value string) DocumentOperations
    func SetTime(fieldPath string, value *OTime) DocumentOperations
    func SetTimestamp(fieldPath string, value *OTimestamp) DocumentOperations
type DocumentStore
    func (documentStore *DocumentStore) CheckAndDelete(id *BinaryOrStringId, condition *MapOrStructCondition) error
    func (documentStore *DocumentStore) CheckAndDeleteWithContext(id *BinaryOrStringId, condition *MapOrStructCondition, ctx context.Context) error
    func (documentStore *DocumentStore) CheckAndReplace(condition *MapOrStructCondition, document *Document) error
    func (documentStore *DocumentStore) CheckAndReplaceWithContext(condition *MapOrStructCondition, document *Document, ctx context.Context) error
    func (documentStore *DocumentStore) CheckAndReplaceWithId(id *BinaryOrStringId, condition *MapOrStructCondition, document *Document) error
    func (documentStore *DocumentStore) CheckAndReplaceWithIdContext(id *BinaryOrStringId, condition *MapOrStructCondition, document *Document, ctx context.Context) error
    func (documentStore *DocumentStore) CheckAndUpdate(id *BinaryOrStringId, queryCondition *MapOrStructCondition, documentMutation *MapOrStructMutation) (bool, error)
    func (documentStore *DocumentStore) CheckAndUpdateWithContext(id *BinaryOrStringId, queryCondition *MapOrStructCondition, documentMutation *MapOrStructMutation, ctx context.Context) (bool, error)
    func (documentStore *DocumentStore) DecrementFloat64(id *BinaryOrStringId, fieldPath string, dec float64) error
    func (documentStore *DocumentStore) DecrementFloat64ByOne(id *BinaryOrStringId, fieldPath string) error
    func (documentStore *DocumentStore) DecrementFloat64ByOneWithContext(id *BinaryOrStringId, fieldPath string, ctx context.Context) error
    func (documentStore *DocumentStore) DecrementFloat64WithContext(id *BinaryOrStringId, fieldPath string, dec float64, ctx context.Context) error
    func (documentStore *DocumentStore) DecrementInt(id *BinaryOrStringId, fieldPath string, dec int) error
    func (documentStore *DocumentStore) DecrementIntByOne(id *BinaryOrStringId, fieldPath string) error
    func (documentStore *DocumentStore) DecrementIntByOneWithContext(id *BinaryOrStringId, fieldPath string, ctx context.Context) error
    func (documentStore *DocumentStore) DecrementIntWithContext(id *BinaryOrStringId, fieldPath string, dec int, ctx context.Context) error
    func (documentStore *DocumentStore) DeleteByIdBinary(id []byte) (bool, error)
    func (documentStore *DocumentStore) DeleteByIdBinaryWithContext(id []byte, ctx context.Context) (bool, error)
    func (documentStore *DocumentStore) DeleteByIdString(id string) (bool, error)
    func (documentStore *DocumentStore) DeleteByIdStringWithContext(id string, ctx context.Context) (bool, error)
    func (documentStore *DocumentStore) DeleteDoc(doc *Document) (bool, error)
    func (documentStore *DocumentStore) DeleteDocWithContext(doc *Document, ctx context.Context) (bool, error)
    func (documentStore *DocumentStore) FindAll(findOptions *FindOptions) (*QueryResult, error)
    func (documentStore *DocumentStore) FindAllWithContext(findOptions *FindOptions, ctx context.Context) (*QueryResult, error)
    func (documentStore *DocumentStore) FindByIdByte(id []byte) (*Document, error)
    func (documentStore *DocumentStore) FindByIdByteWithContext(id []byte, ctx context.Context) (*Document, error)
    func (documentStore *DocumentStore) FindByIdByteWithFieldsAndCondition(id []byte, fieldPaths []string, queryCondition *MapOrStructCondition) (*Document, error)
    func (documentStore *DocumentStore) FindByIdByteWithFieldsAndConditionContext(id []byte, fieldPaths []string, queryCondition *MapOrStructCondition, ctx context.Context) (*Document, error)
    func (documentStore *DocumentStore) FindByIdString(id string) (*Document, error)
    func (documentStore *DocumentStore) FindByIdStringWithContext(id string, ctx context.Context) (*Document, error)
    func (documentStore *DocumentStore) FindByIdStringWithFieldsAndCondition(id string, fieldPaths []string, queryCondition *MapOrStructCondition) (*Document, error)
    func (documentStore *DocumentStore) FindByIdStringWithFieldsAndConditionContext(id string, fieldPaths []string, queryCondition *MapOrStructCondition, ctx context.Context) (*Document, error)
    func (documentStore *DocumentStore) FindQuery(query *Query, findOptions *FindOptions) (*QueryResult, error)
    func (documentStore *DocumentStore) FindQueryMap(query map[string]interface{}, findOptions *FindOptions) (*QueryResult, error)
    func (documentStore *DocumentStore) FindQueryMapWithContext(query map[string]interface{}, findOptions *FindOptions, ctx context.Context) (*QueryResult, error)
    func (documentStore *DocumentStore) FindQueryString(query string, findOptions *FindOptions) (*QueryResult, error)
    func (documentStore *DocumentStore) FindQueryStringWithContext(query string, findOptions *FindOptions, ctx context.Context) (*QueryResult, error)
    func (documentStore *DocumentStore) FindQueryWithContext(query *Query, findOptions *FindOptions, ctx context.Context) (*QueryResult, error)
    func (documentStore *DocumentStore) IncrementFloat64(id *BinaryOrStringId, fieldPath string, inc float64) error
    func (documentStore *DocumentStore) IncrementFloat64ByOne(id *BinaryOrStringId, fieldPath string) error
    func (documentStore *DocumentStore) IncrementFloat64ByOneWithContext(id *BinaryOrStringId, fieldPath string, ctx context.Context) error
    func (documentStore *DocumentStore) IncrementFloat64WithContext(id *BinaryOrStringId, fieldPath string, inc float64, ctx context.Context) error
    func (documentStore *DocumentStore) IncrementInt(id *BinaryOrStringId, fieldPath string, inc int) error
    func (documentStore *DocumentStore) IncrementIntByOne(id *BinaryOrStringId, fieldPath string) error
    func (documentStore *DocumentStore) IncrementIntByOneWithContext(id *BinaryOrStringId, fieldPath string, ctx context.Context) error
    func (documentStore *DocumentStore) IncrementIntWithContext(id *BinaryOrStringId, fieldPath string, inc int, ctx context.Context) error
    func (documentStore *DocumentStore) InsertDocument(doc *Document) error
    func (documentStore *DocumentStore) InsertDocumentWithContext(doc *Document, ctx context.Context) error
    func (documentStore *DocumentStore) InsertDocumentWithIdBinary(doc *Document, id []byte) error
    func (documentStore *DocumentStore) InsertDocumentWithIdBinaryContext(doc *Document, id []byte, ctx context.Context) error
    func (documentStore *DocumentStore) InsertDocumentWithIdString(doc *Document, id string) error
    func (documentStore *DocumentStore) InsertDocumentWithIdStringContext(doc *Document, id string, ctx context.Context) error
    func (documentStore *DocumentStore) InsertMap(docMap map[string]interface{}) error
    func (documentStore *DocumentStore) InsertMapWithContext(docMap map[string]interface{}, ctx context.Context) error
    func (documentStore *DocumentStore) InsertMapWithIdBinary(docMap map[string]interface{}, id []byte) error
    func (documentStore *DocumentStore) InsertMapWithIdBinaryContext(docMap map[string]interface{}, id []byte, ctx context.Context) error
    func (documentStore *DocumentStore) InsertMapWithIdString(docMap map[string]interface{}, id string) error
    func (documentStore *DocumentStore) InsertMapWithIdStringContext(docMap map[string]interface{}, id string, ctx context.Context) error
    func (documentStore *DocumentStore) InsertOrReplaceDocument(doc *Document) error
    func (documentStore *DocumentStore) InsertOrReplaceDocumentWithContext(doc *Document, ctx context.Context) error
    func (documentStore *DocumentStore) InsertOrReplaceDocumentWithIdBinary(doc *Document, id []byte) error
    func (documentStore *DocumentStore) InsertOrReplaceDocumentWithIdBinaryContext(doc *Document, id []byte, ctx context.Context) error
    func (documentStore *DocumentStore) InsertOrReplaceDocumentWithIdString(doc *Document, id string) error
    func (documentStore *DocumentStore) InsertOrReplaceDocumentWithIdStringContext(doc *Document, id string, ctx context.Context) error
    func (documentStore *DocumentStore) InsertOrReplaceMap(docMap map[string]interface{}) error
    func (documentStore *DocumentStore) InsertOrReplaceMapWithContext(docMap map[string]interface{}, ctx context.Context) error
    func (documentStore *DocumentStore) InsertOrReplaceMapWithIdBinary(docMap map[string]interface{}, id []byte) error
    func (documentStore *DocumentStore) InsertOrReplaceMapWithIdBinaryContext(docMap map[string]interface{}, id []byte, ctx context.Context) error
    func (documentStore *DocumentStore) InsertOrReplaceMapWithIdString(docMap map[string]interface{}, id string) error
    func (documentStore *DocumentStore) InsertOrReplaceMapWithIdStringContext(docMap map[string]interface{}, id string, ctx context.Context) error
    func (documentStore *DocumentStore) InsertOrReplaceString(docString string) error
    func (documentStore *DocumentStore) InsertOrReplaceStringWithContext(docString string, ctx context.Context) error
    func (documentStore *DocumentStore) InsertOrReplaceStringWithIdBinary(docString string, id []byte) error
    func (documentStore *DocumentStore) InsertOrReplaceStringWithIdBinaryContext(docString string, id []byte, ctx context.Context) error
    func (documentStore *DocumentStore) InsertOrReplaceStringWithIdString(docString string, id string) error
    func (documentStore *DocumentStore) InsertOrReplaceStringWithIdStringContext(docString string, id string, ctx context.Context) error
    func (documentStore *DocumentStore) InsertString(docString string) error
    func (documentStore *DocumentStore) InsertStringWithContext(docString string, ctx context.Context) error
    func (documentStore *DocumentStore) InsertStringWithIdBinary(docString string, id []byte) error
    func (documentStore *DocumentStore) InsertStringWithIdBinaryContext(docString string, id []byte, ctx context.Context) error
    func (documentStore *DocumentStore) InsertStringWithIdString(docString string, id string) error
    func (documentStore *DocumentStore) InsertStringWithIdStringContext(docString string, id string, ctx context.Context) error
    func (documentStore *DocumentStore) ReplaceDocument(doc *Document) error
    func (documentStore *DocumentStore) ReplaceDocumentWithContext(doc *Document, ctx context.Context) error
    func (documentStore *DocumentStore) ReplaceDocumentWithIdBinary(doc *Document, id []byte) error
    func (documentStore *DocumentStore) ReplaceDocumentWithIdBinaryContext(doc *Document, id []byte, ctx context.Context) error
    func (documentStore *DocumentStore) ReplaceDocumentWithIdString(doc *Document, id string) error
    func (documentStore *DocumentStore) ReplaceDocumentWithIdStringContext(doc *Document, id string, ctx context.Context) error
    func (documentStore *DocumentStore) ReplaceMap(docMap map[string]interface{}) error
    func (documentStore *DocumentStore) ReplaceMapWithContext(docMap map[string]interface{}, ctx context.Context) error
    func (documentStore *DocumentStore) ReplaceMapWithIdBinary(docMap map[string]interface{}, id []byte) error
    func (documentStore *DocumentStore) ReplaceMapWithIdBinaryContext(docMap map[string]interface{}, id []byte, ctx context.Context) error
    func (documentStore *DocumentStore) ReplaceMapWithIdString(docMap map[string]interface{}, id string) error
    func (documentStore *DocumentStore) ReplaceMapWithIdStringContext(docMap map[string]interface{}, id string, ctx context.Context) error
    func (documentStore *DocumentStore) ReplaceString(docString string) error
    func (documentStore *DocumentStore) ReplaceStringWithContext(docString string, ctx context.Context) error
    func (documentStore *DocumentStore) ReplaceStringWithIdBinary(docString string, id []byte) error
    func (documentStore *DocumentStore) ReplaceStringWithIdBinaryContext(docString string, id []byte, ctx context.Context) error
    func (documentStore *DocumentStore) ReplaceStringWithIdString(docString string, id string) error
    func (documentStore *DocumentStore) ReplaceStringWithIdStringContext(docString string, id string, ctx context.Context) error
    func (documentStore *DocumentStore) Update(id *BinaryOrStringId, documentMutation *MapOrStructMutation) error
    func (documentStore *DocumentStore) UpdateWithContext(id *BinaryOrStringId, documentMutation *MapOrStructMutation, ctx context.Context) error
type DocumentStream
type ErrorCode
    func (ErrorCode) EnumDescriptor() ([]byte, []int)
    func (x ErrorCode) String() string
type FindByIdRequest
    func (*FindByIdRequest) Descriptor() ([]byte, []int)
    func (m *FindByIdRequest) GetCondition() isFindByIdRequest_Condition
    func (m *FindByIdRequest) GetDocument() isFindByIdRequest_Document
    func (m *FindByIdRequest) GetJsonCondition() string
    func (m *FindByIdRequest) GetJsonDocument() string
    func (m *FindByIdRequest) GetPayloadEncoding() PayloadEncoding
    func (m *FindByIdRequest) GetProjections() []string
    func (m *FindByIdRequest) GetTablePath() string
    func (*FindByIdRequest) ProtoMessage()
    func (m *FindByIdRequest) Reset()
    func (m *FindByIdRequest) String() string
    func (m *FindByIdRequest) XXX_DiscardUnknown()
    func (m *FindByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *FindByIdRequest) XXX_Merge(src proto.Message)
    func (*FindByIdRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
    func (m *FindByIdRequest) XXX_Size() int
    func (m *FindByIdRequest) XXX_Unmarshal(b []byte) error
type FindByIdRequest_JsonCondition
type FindByIdRequest_JsonDocument
type FindByIdResponse
    func (*FindByIdResponse) Descriptor() ([]byte, []int)
    func (m *FindByIdResponse) GetData() isFindByIdResponse_Data
    func (m *FindByIdResponse) GetError() *RpcError
    func (m *FindByIdResponse) GetJsonDocument() string
    func (m *FindByIdResponse) GetPayloadEncoding() PayloadEncoding
    func (*FindByIdResponse) ProtoMessage()
    func (m *FindByIdResponse) Reset()
    func (m *FindByIdResponse) String() string
    func (m *FindByIdResponse) XXX_DiscardUnknown()
    func (m *FindByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *FindByIdResponse) XXX_Merge(src proto.Message)
    func (*FindByIdResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
    func (m *FindByIdResponse) XXX_Size() int
    func (m *FindByIdResponse) XXX_Unmarshal(b []byte) error
type FindByIdResponse_JsonDocument
type FindOptions
type FindRequest
    func (*FindRequest) Descriptor() ([]byte, []int)
    func (m *FindRequest) GetData() isFindRequest_Data
    func (m *FindRequest) GetIncludeQueryPlan() bool
    func (m *FindRequest) GetJsonQuery() string
    func (m *FindRequest) GetPayloadEncoding() PayloadEncoding
    func (m *FindRequest) GetTablePath() string
    func (*FindRequest) ProtoMessage()
    func (m *FindRequest) Reset()
    func (m *FindRequest) String() string
    func (m *FindRequest) XXX_DiscardUnknown()
    func (m *FindRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *FindRequest) XXX_Merge(src proto.Message)
    func (*FindRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
    func (m *FindRequest) XXX_Size() int
    func (m *FindRequest) XXX_Unmarshal(b []byte) error
type FindRequest_JsonQuery
type FindResponse
    func (*FindResponse) Descriptor() ([]byte, []int)
    func (m *FindResponse) GetData() isFindResponse_Data
    func (m *FindResponse) GetError() *RpcError
    func (m *FindResponse) GetJsonResponse() string
    func (m *FindResponse) GetPayloadEncoding() PayloadEncoding
    func (m *FindResponse) GetType() FindResponseType
    func (*FindResponse) ProtoMessage()
    func (m *FindResponse) Reset()
    func (m *FindResponse) String() string
    func (m *FindResponse) XXX_DiscardUnknown()
    func (m *FindResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *FindResponse) XXX_Merge(src proto.Message)
    func (*FindResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
    func (m *FindResponse) XXX_Size() int
    func (m *FindResponse) XXX_Unmarshal(b []byte) error
type FindResponseType
    func (FindResponseType) EnumDescriptor() ([]byte, []int)
    func (x FindResponseType) String() string
type FindResponse_JsonResponse
type InsertMode
    func (InsertMode) EnumDescriptor() ([]byte, []int)
    func (x InsertMode) String() string
type InsertOrReplaceRequest
    func (*InsertOrReplaceRequest) Descriptor() ([]byte, []int)
    func (m *InsertOrReplaceRequest) GetCondition() isInsertOrReplaceRequest_Condition
    func (m *InsertOrReplaceRequest) GetData() isInsertOrReplaceRequest_Data
    func (m *InsertOrReplaceRequest) GetInsertMode() InsertMode
    func (m *InsertOrReplaceRequest) GetJsonCondition() string
    func (m *InsertOrReplaceRequest) GetJsonDocument() string
    func (m *InsertOrReplaceRequest) GetPayloadEncoding() PayloadEncoding
    func (m *InsertOrReplaceRequest) GetTablePath() string
    func (*InsertOrReplaceRequest) ProtoMessage()
    func (m *InsertOrReplaceRequest) Reset()
    func (m *InsertOrReplaceRequest) String() string
    func (m *InsertOrReplaceRequest) XXX_DiscardUnknown()
    func (m *InsertOrReplaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *InsertOrReplaceRequest) XXX_Merge(src proto.Message)
    func (*InsertOrReplaceRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
    func (m *InsertOrReplaceRequest) XXX_Size() int
    func (m *InsertOrReplaceRequest) XXX_Unmarshal(b []byte) error
type InsertOrReplaceRequest_JsonCondition
type InsertOrReplaceRequest_JsonDocument
type InsertOrReplaceResponse
    func (*InsertOrReplaceResponse) Descriptor() ([]byte, []int)
    func (m *InsertOrReplaceResponse) GetError() *RpcError
    func (*InsertOrReplaceResponse) ProtoMessage()
    func (m *InsertOrReplaceResponse) Reset()
    func (m *InsertOrReplaceResponse) String() string
    func (m *InsertOrReplaceResponse) XXX_DiscardUnknown()
    func (m *InsertOrReplaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *InsertOrReplaceResponse) XXX_Merge(src proto.Message)
    func (m *InsertOrReplaceResponse) XXX_Size() int
    func (m *InsertOrReplaceResponse) XXX_Unmarshal(b []byte) error
type MapOrStructCondition
    func MoscFromMap(condition map[string]interface{}) *MapOrStructCondition
    func MoscFromStruct(condition *Condition) *MapOrStructCondition
type MapOrStructMutation
    func MosmFromMap(mutation map[string]interface{}) *MapOrStructMutation
    func MosmFromStruct(mutation *DocumentMutation) *MapOrStructMutation
type MapRDbServerClient
    func NewMapRDbServerClient(cc *grpc.ClientConn) MapRDbServerClient
type MapRDbServerServer
type MapRDbServer_FindClient
type MapRDbServer_FindServer
type MutationOp
type MutationOperations
    func AppendSlice(fieldPath string, value []interface{}) MutationOperations
    func AppendString(fieldPath, value string) MutationOperations
    func DecrementFloat64(fieldPath string, value float64) MutationOperations
    func DecrementFloat64ByOne(fieldPath string) MutationOperations
    func DecrementInt(fieldPath string, value int) MutationOperations
    func DecrementIntByOne(fieldPath string) MutationOperations
    func Delete(fieldPath string) MutationOperations
    func IncrementFloat64(fieldPath string, value float64) MutationOperations
    func IncrementFloat64ByOne(fieldPath string) MutationOperations
    func IncrementInt(fieldPath string, value int) MutationOperations
    func IncrementIntByOne(fieldPath string) MutationOperations
    func MergeDocument(fieldPath string, value *Document) MutationOperations
    func MergeMap(fieldPath string, value map[string]interface{}) MutationOperations
    func Set(fieldPath string, value interface{}) MutationOperations
    func SetOrReplace(fieldPath string, value interface{}) MutationOperations
type ODate
    func MakeODate(year, month, dayOfMonth int) *ODate
    func MakeODateFromDate(date *time.Time) *ODate
    func MakeODateFromString(date string) (*ODate, error)
    func MakeODateFromTimestampInt(timestamp int64) *ODate
    func MakeODateFromTimestampString(timestamp string) *ODate
    func (date *ODate) GetDate() time.Time
    func (date *ODate) GetDay() int
    func (date *ODate) GetMonth() int
    func (date *ODate) GetYear() int
    func (date *ODate) MarshalJSON() ([]byte, error)
    func (date *ODate) String() string
type OTime
    func MakeOTime(hourOfDay, minutes, seconds int) *OTime
    func MakeOTimeFromDate(date *time.Time) *OTime
    func MakeOTimeFromString(date string) (*OTime, error)
    func MakeOTimeFromStringRFC3339(date string) (*OTime, error)
    func MakeOTimeFromTimestampInt(timestamp int64) *OTime
    func MakeOTimeFromTimestampString(timestamp string) (*OTime, error)
    func MakeOTimeWithNsec(hourOfDay, minutes, seconds, nsec int) *OTime
    func (time *OTime) GetHour() int
    func (time *OTime) GetMinute() int
    func (time *OTime) GetNanosecond() int
    func (time *OTime) GetSecond() int
    func (time *OTime) GetTime() *time.Time
    func (time *OTime) GetTimeString() string
    func (time *OTime) MarshalJSON() ([]byte, error)
    func (time *OTime) String() string
type OTimestamp
    func MakeOTimestamp(years, months, days, hours, minutes, seconds, millis int) *OTimestamp
    func MakeOTimestampFromDate(date time.Time) *OTimestamp
    func MakeOTimestampFromString(str string) *OTimestamp
    func MakeOTimestampFromUnixTimestamp(sec, nsec int) *OTimestamp
    func (timestamp *OTimestamp) DateTime() time.Time
    func (timestamp *OTimestamp) Days() int
    func (timestamp *OTimestamp) Hours() int
    func (timestamp *OTimestamp) MarshalJSON() ([]byte, error)
    func (timestamp *OTimestamp) Millis() int
    func (timestamp *OTimestamp) Minutes() int
    func (timestamp *OTimestamp) Months() int
    func (timestamp *OTimestamp) String() string
    func (timestamp *OTimestamp) Years() int
type Operation
type Order
type PayloadEncoding
    func (PayloadEncoding) EnumDescriptor() ([]byte, []int)
    func (x PayloadEncoding) String() string
type PingRequest
    func (*PingRequest) Descriptor() ([]byte, []int)
    func (*PingRequest) ProtoMessage()
    func (m *PingRequest) Reset()
    func (m *PingRequest) String() string
    func (m *PingRequest) XXX_DiscardUnknown()
    func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *PingRequest) XXX_Merge(src proto.Message)
    func (m *PingRequest) XXX_Size() int
    func (m *PingRequest) XXX_Unmarshal(b []byte) error
type PingResponse
    func (*PingResponse) Descriptor() ([]byte, []int)
    func (*PingResponse) ProtoMessage()
    func (m *PingResponse) Reset()
    func (m *PingResponse) String() string
    func (m *PingResponse) XXX_DiscardUnknown()
    func (m *PingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *PingResponse) XXX_Merge(src proto.Message)
    func (m *PingResponse) XXX_Size() int
    func (m *PingResponse) XXX_Unmarshal(b []byte) error
type Query
    func MakeQuery(operations ...QueryOptions) (*Query, error)
    func (query *Query) AsMap() map[string]interface{}
    func (query *Query) Build()
    func (query *Query) CleanLimit() *Query
    func (query *Query) CleanOffset() *Query
    func (query *Query) CleanOrderBy() *Query
    func (query *Query) CleanQuery() *Query
    func (query *Query) CleanSelect() *Query
    func (query *Query) IsBuild() bool
type QueryOptions
    func Limit(limit int) QueryOptions
    func Offset(offset int) QueryOptions
    func OrderBy(order Order, fieldPaths ...interface{}) QueryOptions
    func Select(fields ...interface{}) QueryOptions
    func WhereCondition(where *Condition) QueryOptions
    func WhereMap(where map[string]interface{}) QueryOptions
type QueryResult
    func MakeQueryResult(responseStream MapRDbServer_FindClient, findOptions *FindOptions) (*QueryResult, error)
    func (queryResult *QueryResult) DocumentList() []interface{}
    func (queryResult *QueryResult) QueryPlan() string
type RpcError
    func (*RpcError) Descriptor() ([]byte, []int)
    func (m *RpcError) GetErrCode() ErrorCode
    func (m *RpcError) GetErrorMessage() string
    func (m *RpcError) GetJavaStackTrace() string
    func (*RpcError) ProtoMessage()
    func (m *RpcError) Reset()
    func (m *RpcError) String() string
    func (m *RpcError) XXX_DiscardUnknown()
    func (m *RpcError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *RpcError) XXX_Merge(src proto.Message)
    func (m *RpcError) XXX_Size() int
    func (m *RpcError) XXX_Unmarshal(b []byte) error
type TableExistsRequest
    func (*TableExistsRequest) Descriptor() ([]byte, []int)
    func (m *TableExistsRequest) GetTablePath() string
    func (*TableExistsRequest) ProtoMessage()
    func (m *TableExistsRequest) Reset()
    func (m *TableExistsRequest) String() string
    func (m *TableExistsRequest) XXX_DiscardUnknown()
    func (m *TableExistsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *TableExistsRequest) XXX_Merge(src proto.Message)
    func (m *TableExistsRequest) XXX_Size() int
    func (m *TableExistsRequest) XXX_Unmarshal(b []byte) error
type TableExistsResponse
    func (*TableExistsResponse) Descriptor() ([]byte, []int)
    func (m *TableExistsResponse) GetError() *RpcError
    func (*TableExistsResponse) ProtoMessage()
    func (m *TableExistsResponse) Reset()
    func (m *TableExistsResponse) String() string
    func (m *TableExistsResponse) XXX_DiscardUnknown()
    func (m *TableExistsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *TableExistsResponse) XXX_Merge(src proto.Message)
    func (m *TableExistsResponse) XXX_Size() int
    func (m *TableExistsResponse) XXX_Unmarshal(b []byte) error
type UpdateRequest
    func (*UpdateRequest) Descriptor() ([]byte, []int)
    func (m *UpdateRequest) GetCondition() isUpdateRequest_Condition
    func (m *UpdateRequest) GetDocument() isUpdateRequest_Document
    func (m *UpdateRequest) GetJsonCondition() string
    func (m *UpdateRequest) GetJsonDocument() string
    func (m *UpdateRequest) GetJsonMutation() string
    func (m *UpdateRequest) GetMutation() isUpdateRequest_Mutation
    func (m *UpdateRequest) GetPayloadEncoding() PayloadEncoding
    func (m *UpdateRequest) GetTablePath() string
    func (*UpdateRequest) ProtoMessage()
    func (m *UpdateRequest) Reset()
    func (m *UpdateRequest) String() string
    func (m *UpdateRequest) XXX_DiscardUnknown()
    func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *UpdateRequest) XXX_Merge(src proto.Message)
    func (*UpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
    func (m *UpdateRequest) XXX_Size() int
    func (m *UpdateRequest) XXX_Unmarshal(b []byte) error
type UpdateRequest_JsonCondition
type UpdateRequest_JsonDocument
type UpdateRequest_JsonMutation
type UpdateResponse
    func (*UpdateResponse) Descriptor() ([]byte, []int)
    func (m *UpdateResponse) GetError() *RpcError
    func (*UpdateResponse) ProtoMessage()
    func (m *UpdateResponse) Reset()
    func (m *UpdateResponse) String() string
    func (m *UpdateResponse) XXX_DiscardUnknown()
    func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
    func (m *UpdateResponse) XXX_Merge(src proto.Message)
    func (m *UpdateResponse) XXX_Size() int
    func (m *UpdateResponse) XXX_Unmarshal(b []byte) error

Package files

connection.go date.go document_mutation.go document_store.go interceptor.go maprdb-server.pb.go ojai_document.go query.go query_condition.go queryresult.go time.go timestamp.go

Constants

QueryCondition logical operations constants

const (
    AND logicalOperation = iota
    OR
    ELEMENT_AND
)

QueryCondition operations constants

const (
    EXISTS conditionQueryOperation = iota
    NOT_EXISTS
    NOT_IN
    IN
    TYPE_OF
    NOT_TYPE_OF
    MATCHES
    NOT_MATCHES
    LIKE
    NOT_LIKE
)
const (
    END endType = iota
)
const RFC3339FullDate = "2006-01-02"

Variables

var ErrorCode_name = map[int32]string{
    0:   "NO_ERROR",
    2:   "TABLE_NOT_FOUND",
    5:   "IO_ERROR",
    12:  "OUT_OF_MEMORY",
    13:  "ACCESS_DENIED",
    17:  "TABLE_ALREADY_EXISTS",
    22:  "INVALID_ARGUMENT",
    38:  "UNSUPPORTED_OPERATION",
    256: "UNKNOWN_ERROR",
    260: "UNKNOWN_PAYLOAD_ENCODING",
    270: "CLUSTER_NOT_FOUND",
    271: "PATH_NOT_FOUND",
    280: "DOCUMENT_ALREADY_EXISTS",
    281: "DOCUMENT_NOT_FOUND",
    290: "ENCODING_ERROR",
    291: "DECODING_ERROR",
    292: "ILLEGAL_MUTATION",
}
var ErrorCode_value = map[string]int32{
    "NO_ERROR":                 0,
    "TABLE_NOT_FOUND":          2,
    "IO_ERROR":                 5,
    "OUT_OF_MEMORY":            12,
    "ACCESS_DENIED":            13,
    "TABLE_ALREADY_EXISTS":     17,
    "INVALID_ARGUMENT":         22,
    "UNSUPPORTED_OPERATION":    38,
    "UNKNOWN_ERROR":            256,
    "UNKNOWN_PAYLOAD_ENCODING": 260,
    "CLUSTER_NOT_FOUND":        270,
    "PATH_NOT_FOUND":           271,
    "DOCUMENT_ALREADY_EXISTS":  280,
    "DOCUMENT_NOT_FOUND":       281,
    "ENCODING_ERROR":           290,
    "DECODING_ERROR":           291,
    "ILLEGAL_MUTATION":         292,
}
var FindResponseType_name = map[int32]string{
    0: "UNKNOWN_TYPE",
    1: "RESULT_DOCUMENT",
    2: "QUERY_PLAN",
}
var FindResponseType_value = map[string]int32{
    "UNKNOWN_TYPE":    0,
    "RESULT_DOCUMENT": 1,
    "QUERY_PLAN":      2,
}
var InsertMode_name = map[int32]string{
    0: "UNKNOWN_MODE",
    1: "INSERT_OR_REPLACE",
    2: "INSERT",
    3: "REPLACE",
}
var InsertMode_value = map[string]int32{
    "UNKNOWN_MODE":      0,
    "INSERT_OR_REPLACE": 1,
    "INSERT":            2,
    "REPLACE":           3,
}
var PayloadEncoding_name = map[int32]string{
    0: "UNKNOWN_ENCODING",
    1: "JSON_ENCODING",
}
var PayloadEncoding_value = map[string]int32{
    "UNKNOWN_ENCODING": 0,
    "JSON_ENCODING":    1,
}

func RegisterMapRDbServerServer

func RegisterMapRDbServerServer(s *grpc.Server, srv MapRDbServerServer)

func StreamClientAuthInterceptor

func StreamClientAuthInterceptor(umd *userMetadata) grpc.StreamClientInterceptor

func StreamClientTokenInterceptor

func StreamClientTokenInterceptor(umd *userMetadata) grpc.StreamClientInterceptor

func UnaryClientAuthInterceptor

func UnaryClientAuthInterceptor(umd *userMetadata) grpc.UnaryClientInterceptor

Closure function which returns custom UnaryClientInterceptor for channel

func UnaryClientTokenInterceptor

func UnaryClientTokenInterceptor(umd *userMetadata) grpc.UnaryClientInterceptor

UnaryClientTokenInterceptor responsible for unauthenticated response code in Unary calls.

type BinaryOrStringId

structure that is used in gRPC requests instead of string or []byte _id representation

type BinaryOrStringId struct {
    IsBinary bool
    Binary   []byte
    Str      string
}

func BosiFromBinary

func BosiFromBinary(binary []byte) *BinaryOrStringId

Creates BinaryOrStringId struct from []byte

func BosiFromString

func BosiFromString(str string) *BinaryOrStringId

Creates BinaryOrStringId struct from string

type Comparison

QueryCondition comparison operation type

type Comparison int

QueryCondition comparison operations constants

const (
    LESS Comparison = iota
    LESS_OR_EQUAL
    GREATER
    GREATER_OR_EQUAL
    EQUAL
    NOT_EQUAL
)

type Condition

Condition structure with required fields

type Condition struct {
    // contains filtered or unexported fields
}

func MakeCondition

func MakeCondition(conditions ...ConditionOptions) (*Condition, error)

MakeCondition returns new empty Condition

func (*Condition) AsMap

func (condition *Condition) AsMap() map[string]interface{}

Returns condition as Map

func (*Condition) Build

func (condition *Condition) Build() (*Condition, error)

Builds Query Condition

func (*Condition) IsBuilt

func (condition *Condition) IsBuilt() bool

IsBuilt checks is Condition built

func (*Condition) IsEmpty

func (condition *Condition) IsEmpty() bool

IsEmpty checks Condition and returns boolean result

type ConditionOptions

type ConditionOptions func(condition *Condition) (*Condition, error)

func AddCondition

func AddCondition(conditionToAdd *Condition) ConditionOptions

Adds existing condition into new Query Condition

func AddConditionMap

func AddConditionMap(conditionToAdd map[string]interface{}) ConditionOptions

Adds existing condition into new Query Condition

func And

func And() ConditionOptions

And adds the logical operator 'and' in query condition

func Close

func Close() ConditionOptions

Close adds the 'end' operation in condition queue. Close required after each logical operation as 'or', 'and' or 'elementAnd' and all query condition must ends on Close

func ElementAnd

func ElementAnd(fieldPath string) ConditionOptions

ElementAnd adds the logical operator 'elementAnd' in query condition

func Equals

func Equals(fieldPath string, value interface{}) ConditionOptions

Adds a condition that tests if the value at the specified fieldPath equals the specified value. Two values are considered equal if and only if they contain the same key-value pair in the same order.

func Exists

func Exists(fieldPath string) ConditionOptions

Adds a condition that tests for existence of the specified.

func In

func In(fieldPath string, valueList []interface{}) ConditionOptions

Adds a condition that tests if the value at the specified fieldPath is equal to at least one of the values in the specified list.

func Is

func Is(fieldPath string, op Comparison, value interface{}) ConditionOptions

Adds a condition that tests if the value at the specified fieldPath satisfies the given Op against the specified value.

func Like

func Like(fieldPath string, likeExpr interface{}) ConditionOptions

Adds a condition that tests if the value at the specified fieldPath is a string and matches the specified SQL LIKE expression optionally escaped with the specified escape character.

func Matches

func Matches(fieldPath string, regex interface{}) ConditionOptions

Adds a condition that tests if the value at the specified fieldPath is a string and matches the specified regular expression.

func NotEquals

func NotEquals(fieldPath string, value interface{}) ConditionOptions

Adds a condition that tests if the Value at the specified fieldPath does not equal the specified value. Two values are considered equal if and only if they contain the same key-value pair in the same order.

func NotExists

func NotExists(fieldPath string) ConditionOptions

Adds a condition that tests for non-existence of the specified fieldPath.

func NotIn

func NotIn(fieldPath string, valueList []interface{}) ConditionOptions

Adds a condition that tests if the value at the specified fieldPath is not equal to any of the values in the

func NotLike

func NotLike(fieldPath string, likeExpr interface{}) ConditionOptions

Adds a condition that tests if the value at the specified fieldPath is a string and does not match the specified SQL LIKE expression optionally escaped with the specified escape character.

func NotMatches

func NotMatches(fieldPath string, regex interface{}) ConditionOptions

Adds a condition that tests if the value at the specified fieldPath is a string and does not match the specified regular expression.

func NotTypeOf

func NotTypeOf(fieldPath string, valueType interface{}) ConditionOptions

Adds a condition that tests if the value at the specified fieldPath is not of the specified valueType.

func Or

func Or() ConditionOptions

Or adds the logical operator 'or' in query condition

func TypeOf

func TypeOf(fieldPath string, valueType interface{}) ConditionOptions

Adds a condition that tests if the value at the specified fieldPath is of the specified valueType.

type Connection

type Connection struct {
    // contains filtered or unexported fields
}

func MakeConnection

func MakeConnection(connectionString string) (*Connection, error)

Function initialize connection and returns new Connection struct

func MakeConnectionWithRetryOptions

func MakeConnectionWithRetryOptions(
    connectionString string,
    connectionOptions *ConnectionOptions,
) (*Connection, error)

Function initialize connection with specific retry options and returns new Connection struct

func (*Connection) Close

func (connection *Connection) Close()

Method Close closes gRPC channel.

func (*Connection) CreateDocumentFromMap

func (connection *Connection) CreateDocumentFromMap(documentMap map[string]interface{}) *Document

Creates and returns a new instance of an OJAI Document.

func (*Connection) CreateDocumentFromString

func (connection *Connection) CreateDocumentFromString(jsonString string) (*Document, error)

Creates and returns a new instance of an OJAI Document.

func (*Connection) CreateEmptyDocument

func (connection *Connection) CreateEmptyDocument() (*Document, error)

Creates and returns a new, empty instance of an OJAI Document.

func (*Connection) CreateStore

func (connection *Connection) CreateStore(storeName string) (*DocumentStore, error)

Method executes CreateTable RPC request with given store name and return new DocumentStore.

func (*Connection) DeleteStore

func (connection *Connection) DeleteStore(storeName string) error

Method executes DeleteTable RPC request with given store name.

func (*Connection) GetStore

func (connection *Connection) GetStore(storeName string) (*DocumentStore, error)

Method executes IsStoreExists method for ensure that store with given name is exists and return new DocumentStore if result is positive.

func (*Connection) IsStoreExists

func (connection *Connection) IsStoreExists(storeName string) (bool, error)

Method executes TableExists RPC request with given store name and return true if table is exists or false if not.

type ConnectionOptions

ConnectionOptions apply to all calls for the connections MaxAttempt attempt count WaitBetweenSeconds delay between attempts in seconds CallTimeoutSeconds maximum call timeout

type ConnectionOptions struct {
    MaxAttempt         int
    WaitBetweenSeconds int
    CallTimeoutSeconds int
}

type CreateTableRequest

type CreateTableRequest struct {
    TablePath            string   `protobuf:"bytes,1,opt,name=table_path,json=tablePath,proto3" json:"table_path,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*CreateTableRequest) Descriptor

func (*CreateTableRequest) Descriptor() ([]byte, []int)

func (*CreateTableRequest) GetTablePath

func (m *CreateTableRequest) GetTablePath() string

func (*CreateTableRequest) ProtoMessage

func (*CreateTableRequest) ProtoMessage()

func (*CreateTableRequest) Reset

func (m *CreateTableRequest) Reset()

func (*CreateTableRequest) String

func (m *CreateTableRequest) String() string

func (*CreateTableRequest) XXX_DiscardUnknown

func (m *CreateTableRequest) XXX_DiscardUnknown()

func (*CreateTableRequest) XXX_Marshal

func (m *CreateTableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateTableRequest) XXX_Merge

func (m *CreateTableRequest) XXX_Merge(src proto.Message)

func (*CreateTableRequest) XXX_Size

func (m *CreateTableRequest) XXX_Size() int

func (*CreateTableRequest) XXX_Unmarshal

func (m *CreateTableRequest) XXX_Unmarshal(b []byte) error

type CreateTableResponse

type CreateTableResponse struct {
    //*
    // `NO_ERROR` - if the table was created successfully,
    // `TABLE_ALREADY_EXISTS` - if a table with the same path already exists
    Error                *RpcError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

func (*CreateTableResponse) Descriptor

func (*CreateTableResponse) Descriptor() ([]byte, []int)

func (*CreateTableResponse) GetError

func (m *CreateTableResponse) GetError() *RpcError

func (*CreateTableResponse) ProtoMessage

func (*CreateTableResponse) ProtoMessage()

func (*CreateTableResponse) Reset

func (m *CreateTableResponse) Reset()

func (*CreateTableResponse) String

func (m *CreateTableResponse) String() string

func (*CreateTableResponse) XXX_DiscardUnknown

func (m *CreateTableResponse) XXX_DiscardUnknown()

func (*CreateTableResponse) XXX_Marshal

func (m *CreateTableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateTableResponse) XXX_Merge

func (m *CreateTableResponse) XXX_Merge(src proto.Message)

func (*CreateTableResponse) XXX_Size

func (m *CreateTableResponse) XXX_Size() int

func (*CreateTableResponse) XXX_Unmarshal

func (m *CreateTableResponse) XXX_Unmarshal(b []byte) error

type DeleteRequest

type DeleteRequest struct {
    TablePath       string          `protobuf:"bytes,1,opt,name=table_path,json=tablePath,proto3" json:"table_path,omitempty"`
    PayloadEncoding PayloadEncoding `protobuf:"varint,2,opt,name=payload_encoding,json=payloadEncoding,proto3,enum=com.mapr.data.db.PayloadEncoding" json:"payload_encoding,omitempty"`
    // Types that are valid to be assigned to Condition:
    //	*DeleteRequest_JsonCondition
    Condition isDeleteRequest_Condition `protobuf_oneof:"condition"`
    // Types that are valid to be assigned to Document:
    //	*DeleteRequest_JsonDocument
    Document             isDeleteRequest_Document `protobuf_oneof:"document"`
    XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
    XXX_unrecognized     []byte                   `json:"-"`
    XXX_sizecache        int32                    `json:"-"`
}

func (*DeleteRequest) Descriptor

func (*DeleteRequest) Descriptor() ([]byte, []int)

func (*DeleteRequest) GetCondition

func (m *DeleteRequest) GetCondition() isDeleteRequest_Condition

func (*DeleteRequest) GetDocument

func (m *DeleteRequest) GetDocument() isDeleteRequest_Document

func (*DeleteRequest) GetJsonCondition

func (m *DeleteRequest) GetJsonCondition() string

func (*DeleteRequest) GetJsonDocument

func (m *DeleteRequest) GetJsonDocument() string

func (*DeleteRequest) GetPayloadEncoding

func (m *DeleteRequest) GetPayloadEncoding() PayloadEncoding

func (*DeleteRequest) GetTablePath

func (m *DeleteRequest) GetTablePath() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) Reset

func (m *DeleteRequest) Reset()

func (*DeleteRequest) String

func (m *DeleteRequest) String() string

func (*DeleteRequest) XXX_DiscardUnknown

func (m *DeleteRequest) XXX_DiscardUnknown()

func (*DeleteRequest) XXX_Marshal

func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteRequest) XXX_Merge

func (m *DeleteRequest) XXX_Merge(src proto.Message)

func (*DeleteRequest) XXX_OneofFuncs

func (*DeleteRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*DeleteRequest) XXX_Size

func (m *DeleteRequest) XXX_Size() int

func (*DeleteRequest) XXX_Unmarshal

func (m *DeleteRequest) XXX_Unmarshal(b []byte) error

type DeleteRequest_JsonCondition

type DeleteRequest_JsonCondition struct {
    JsonCondition string `protobuf:"bytes,3,opt,name=json_condition,json=jsonCondition,proto3,oneof"`
}

type DeleteRequest_JsonDocument

type DeleteRequest_JsonDocument struct {
    JsonDocument string `protobuf:"bytes,4,opt,name=json_document,json=jsonDocument,proto3,oneof"`
}

type DeleteResponse

type DeleteResponse struct {
    //*
    // `NO_ERROR` - if a document was deleted successfully
    Error                *RpcError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

func (*DeleteResponse) Descriptor

func (*DeleteResponse) Descriptor() ([]byte, []int)

func (*DeleteResponse) GetError

func (m *DeleteResponse) GetError() *RpcError

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) Reset

func (m *DeleteResponse) Reset()

func (*DeleteResponse) String

func (m *DeleteResponse) String() string

func (*DeleteResponse) XXX_DiscardUnknown

func (m *DeleteResponse) XXX_DiscardUnknown()

func (*DeleteResponse) XXX_Marshal

func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteResponse) XXX_Merge

func (m *DeleteResponse) XXX_Merge(src proto.Message)

func (*DeleteResponse) XXX_Size

func (m *DeleteResponse) XXX_Size() int

func (*DeleteResponse) XXX_Unmarshal

func (m *DeleteResponse) XXX_Unmarshal(b []byte) error

type DeleteTableRequest

type DeleteTableRequest struct {
    TablePath            string   `protobuf:"bytes,1,opt,name=table_path,json=tablePath,proto3" json:"table_path,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*DeleteTableRequest) Descriptor

func (*DeleteTableRequest) Descriptor() ([]byte, []int)

func (*DeleteTableRequest) GetTablePath

func (m *DeleteTableRequest) GetTablePath() string

func (*DeleteTableRequest) ProtoMessage

func (*DeleteTableRequest) ProtoMessage()

func (*DeleteTableRequest) Reset

func (m *DeleteTableRequest) Reset()

func (*DeleteTableRequest) String

func (m *DeleteTableRequest) String() string

func (*DeleteTableRequest) XXX_DiscardUnknown

func (m *DeleteTableRequest) XXX_DiscardUnknown()

func (*DeleteTableRequest) XXX_Marshal

func (m *DeleteTableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteTableRequest) XXX_Merge

func (m *DeleteTableRequest) XXX_Merge(src proto.Message)

func (*DeleteTableRequest) XXX_Size

func (m *DeleteTableRequest) XXX_Size() int

func (*DeleteTableRequest) XXX_Unmarshal

func (m *DeleteTableRequest) XXX_Unmarshal(b []byte) error

type DeleteTableResponse

type DeleteTableResponse struct {
    //*
    // `NO_ERROR` - if the table exists
    // `TABLE_NOT_FOUND` - if the table does not exist
    Error                *RpcError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

func (*DeleteTableResponse) Descriptor

func (*DeleteTableResponse) Descriptor() ([]byte, []int)

func (*DeleteTableResponse) GetError

func (m *DeleteTableResponse) GetError() *RpcError

func (*DeleteTableResponse) ProtoMessage

func (*DeleteTableResponse) ProtoMessage()

func (*DeleteTableResponse) Reset

func (m *DeleteTableResponse) Reset()

func (*DeleteTableResponse) String

func (m *DeleteTableResponse) String() string

func (*DeleteTableResponse) XXX_DiscardUnknown

func (m *DeleteTableResponse) XXX_DiscardUnknown()

func (*DeleteTableResponse) XXX_Marshal

func (m *DeleteTableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteTableResponse) XXX_Merge

func (m *DeleteTableResponse) XXX_Merge(src proto.Message)

func (*DeleteTableResponse) XXX_Size

func (m *DeleteTableResponse) XXX_Size() int

func (*DeleteTableResponse) XXX_Unmarshal

func (m *DeleteTableResponse) XXX_Unmarshal(b []byte) error

type Document

type Document struct {
    // contains filtered or unexported fields
}

func MakeDocument

func MakeDocument(operations ...DocumentOperations) (*Document, error)

MakeDocument function creates and returns new Document

func MakeDocumentFromJson

func MakeDocumentFromJson(jsonDocument string) (*Document, error)

MakeDocumentFromJson function creates and returns new Document from given JSON string

func MakeDocumentFromMap

func MakeDocumentFromMap(initialData map[string]interface{}) *Document

MakeDocumentFromMap function creates and returns new Document from given map[string]interface{}

func (*Document) AsJsonString

func (doc *Document) AsJsonString() string

Method returns document content as JSON string

func (*Document) AsMap

func (doc *Document) AsMap() map[string]interface{}

Method returns document content as map[string]interface{}

func (*Document) AsString

func (doc *Document) AsString() string

Method returns document content as string

func (*Document) Clean

func (doc *Document) Clean() *Document

Method cleans whole document

func (*Document) Delete

func (doc *Document) Delete(fieldPath string) *Document

The Delete function deletes element from given fieldPath if it exists in document.

func (*Document) GetBool

func (doc *Document) GetBool(fieldPath string) (bool, error)

Method returns boolean value from given path or boolean zero value.

func (*Document) GetByte

func (doc *Document) GetByte(fieldPath string) ([]byte, error)

Method returns []byte value from given path or []byte zero value.

func (*Document) GetDate

func (doc *Document) GetDate(fieldPath string) (ODate, error)

Method returns types.ODate object from given path otherwise nil

func (*Document) GetFloat32

func (doc *Document) GetFloat32(fieldPath string) (float32, error)

Method returns float value from given path or float zero value.

func (*Document) GetFloat64

func (doc *Document) GetFloat64(fieldPath string) (float64, error)

Method returns float value from given path or string float value.

func (*Document) GetIdBinary

func (doc *Document) GetIdBinary() ([]byte, error)

Method returns _id of document or []byte zero value if it doesn't exists.

func (*Document) GetIdString

func (doc *Document) GetIdString() (string, error)

Method returns _id of document or string zero value if it doesn't exists.

func (*Document) GetInt

func (doc *Document) GetInt(fieldPath string) (int, error)

Method returns int value from given path or int zero value.

func (*Document) GetMap

func (doc *Document) GetMap(fieldPath string) (map[string]interface{}, error)

Method returns map[string]interface{} value from given path otherwise nil

func (*Document) GetSlice

func (doc *Document) GetSlice(fieldPath string) ([]interface{}, error)

Method returns []interface{} value from given path otherwise nil

func (*Document) GetString

func (doc *Document) GetString(fieldPath string) (string, error)

Method returns string value from given path or string zero value.

func (*Document) GetTime

func (doc *Document) GetTime(fieldPath string) (OTime, error)

Method returns types.Otime object from given path otherwise nil

func (*Document) GetTimestamp

func (doc *Document) GetTimestamp(fieldPath string) (OTimestamp, error)

Method returns types.OTimestamp object from given path otherwise OTimestamp zero value

func (*Document) HasId

func (doc *Document) HasId() bool

Method check is _id key exists in the document map and returns true or false accordingly

func (*Document) IsNil

func (doc *Document) IsNil(fieldPath string) (bool, error)

Method returns true if value for given path is nil or path doesn't exists.

func (*Document) IsPathExists

func (doc *Document) IsPathExists(fieldPath string) bool

Method checks is path exists in the Document.

func (*Document) MarshalJSON

func (doc *Document) MarshalJSON() ([]byte, error)

Implementation of Marshaler interface for JSON encoding.

func (*Document) SetBool

func (doc *Document) SetBool(fieldPath string, value bool) *Document

SetBool method sets bool value to given field path

func (*Document) SetByte

func (doc *Document) SetByte(fieldPath string, value []byte) *Document

SetByte method sets []byte value to given field path

func (*Document) SetDate

func (doc *Document) SetDate(fieldPath string, value *ODate) *Document

SetDate method sets ODate value to given field path

func (*Document) SetFloat32

func (doc *Document) SetFloat32(fieldPath string, value float32) *Document

SetFloat32 method sets float32 value to given field path

func (*Document) SetFloat64

func (doc *Document) SetFloat64(fieldPath string, value float64) *Document

SetFloat64 method sets float64 value to given field path

func (*Document) SetIdBinary

func (doc *Document) SetIdBinary(id []byte) error

SetIdBinary method sets not empty _id byte field in the Document

func (*Document) SetIdString

func (doc *Document) SetIdString(id string) error

SetIdString method sets not empty _id string field in the Document

func (*Document) SetInt

func (doc *Document) SetInt(fieldPath string, value int) *Document

SetInt method sets int value to given field path

func (*Document) SetMap

func (doc *Document) SetMap(fieldPath string, value map[string]interface{}) *Document

SetMap method sets map[string]interface{} value to given field path

func (*Document) SetNil

func (doc *Document) SetNil(fieldPath string) *Document

SetNil method sets nil value to given field path

func (*Document) SetSlice

func (doc *Document) SetSlice(fieldPath string, value []interface{}) *Document

SetSlice method sets list[]interface{}value to given field path

func (*Document) SetString

func (doc *Document) SetString(fieldPath string, value string) *Document

SetString method sets string value to given field path

func (*Document) SetTime

func (doc *Document) SetTime(fieldPath string, value *OTime) *Document

SetTime method sets OTIme value to given field path

func (*Document) SetTimestamp

func (doc *Document) SetTimestamp(fieldPath string, value *OTimestamp) *Document

SetTimestamp method sets OTimestamp value to given field path

func (*Document) UnmarshalJSON

func (doc *Document) UnmarshalJSON(b []byte) error

Unmarshaler interface implementation

type DocumentMutation

DocumentMutation struct

type DocumentMutation struct {
    // contains filtered or unexported fields
}

func MakeDocumentMutation

func MakeDocumentMutation(mutations ...MutationOperations) (*DocumentMutation, error)

MakeDocumentationMutation function process and returns new DocumentMutation and error

type DocumentOperations

Type for Document functional options

type DocumentOperations func(document *Document) (*Document, error)

func SetBool

func SetBool(fieldPath string, value bool) DocumentOperations

SetBool method sets bool value to given field path

func SetByte

func SetByte(fieldPath string, value []byte) DocumentOperations

SetByte method sets []byte value to given field path

func SetDate

func SetDate(fieldPath string, value *ODate) DocumentOperations

SetDate method sets ODate value to given field path

func SetFloat32

func SetFloat32(fieldPath string, value float32) DocumentOperations

SetFloat32 method sets float32 value to given field path

func SetFloat64

func SetFloat64(fieldPath string, value float64) DocumentOperations

SetFloat64 method sets float64 value to given field path

func SetIdBinary

func SetIdBinary(id []byte) DocumentOperations

SetIdBinary functional option which sets not empty _id byte field in theDocument

func SetIdString

func SetIdString(id string) DocumentOperations

SetIdString functional option which sets not empty _id string field in the Document

func SetInt

func SetInt(fieldPath string, value int) DocumentOperations

SetInt method sets int value to given field path

func SetMap

func SetMap(fieldPath string, value map[string]interface{}) DocumentOperations

SetMap method sets map[string]interface{} value to given field path

func SetNil

func SetNil(fieldPath string) DocumentOperations

SetNil method sets nil value to given field path

func SetSlice

func SetSlice(fieldPath string, value []interface{}) DocumentOperations

SetSlice method sets list[]interface{}value to given field path

func SetString

func SetString(fieldPath string, value string) DocumentOperations

SetString method sets string value to given field path

func SetTime

func SetTime(fieldPath string, value *OTime) DocumentOperations

SetTime method sets OTIme value to given field path

func SetTimestamp

func SetTimestamp(fieldPath string, value *OTimestamp) DocumentOperations

SetTimestamp method sets OTimestamp value to given field path

type DocumentStore

type DocumentStore struct {
    // contains filtered or unexported fields
}

func (*DocumentStore) CheckAndDelete

func (documentStore *DocumentStore) CheckAndDelete(id *BinaryOrStringId, condition *MapOrStructCondition) error

CheckAndDelete method atomically evaluates the condition on given document and if the condition holds true for the document then it is atomically deleted. id string or []byte document _id. condition the condition to evaluate on the document.

func (*DocumentStore) CheckAndDeleteWithContext

func (documentStore *DocumentStore) CheckAndDeleteWithContext(
    id *BinaryOrStringId,
    condition *MapOrStructCondition,
    ctx context.Context,
) error

CheckAndDeleteWithContext method atomically evaluates the condition on given document and if the condition holds true for the document then it is atomically deleted. User defined context is required for this method. id string or []byte document _id. condition the condition to evaluate on the document.

func (*DocumentStore) CheckAndReplace

func (documentStore *DocumentStore) CheckAndReplace(
    condition *MapOrStructCondition,
    document *Document,
) error

Atomically evaluates the condition on the given document and if the condition holds true for the document then it atomically replaces the document with the given document. condition the condition to evaluate on the document. document document to replace

func (*DocumentStore) CheckAndReplaceWithContext

func (documentStore *DocumentStore) CheckAndReplaceWithContext(
    condition *MapOrStructCondition,
    document *Document,
    ctx context.Context,
) error

CheckAndReplaceWithContext method atomically evaluates the condition on the given document and if the condition holds true for the document then it atomically replaces the document with the given document. User defined context is required for this method. condition the condition to evaluate on the document. document document to replace

func (*DocumentStore) CheckAndReplaceWithId

func (documentStore *DocumentStore) CheckAndReplaceWithId(
    id *BinaryOrStringId,
    condition *MapOrStructCondition,
    document *Document,
) error

Atomically evaluates the condition on the given document and if the condition holds true for the document then it atomically replaces the document with the given document. id document id. condition the condition to evaluate on the document. document document to replace

func (*DocumentStore) CheckAndReplaceWithIdContext

func (documentStore *DocumentStore) CheckAndReplaceWithIdContext(
    id *BinaryOrStringId,
    condition *MapOrStructCondition,
    document *Document,
    ctx context.Context,
) error

CheckAndReplaceWithIdContext method atomically evaluates the condition on the given document and if the condition holds true for the document then it atomically replaces the document with the given document. User defined context is required for this method. id document id. condition the condition to evaluate on the document. document document to replace

func (*DocumentStore) CheckAndUpdate

func (documentStore *DocumentStore) CheckAndUpdate(
    id *BinaryOrStringId,
    queryCondition *MapOrStructCondition,
    documentMutation *MapOrStructMutation,
) (bool, error)

CheckAndUpdate method atomically evaluates the condition on a given document and if the condition holds true for the document then a mutation is applied on the document.

func (*DocumentStore) CheckAndUpdateWithContext

func (documentStore *DocumentStore) CheckAndUpdateWithContext(
    id *BinaryOrStringId,
    queryCondition *MapOrStructCondition,
    documentMutation *MapOrStructMutation,
    ctx context.Context,
) (bool, error)

CheckAndUpdateWithContext method atomically evaluates the condition on a given document and if the condition holds true for the document then a mutation is applied on the document.

func (*DocumentStore) DecrementFloat64

func (documentStore *DocumentStore) DecrementFloat64(id *BinaryOrStringId, fieldPath string, dec float64) error

DecrementFloat64 method atomically applies an decrement to a given field (in dot separated notation) of the given document id. If the field doesn't exist on the server then it will be created with the type of the decremental value. The operation will fail if the decrement is applied to a field that is of a non-numeric type. _id string or byte document id fieldPath the field name in dot separated notation dec decrement to apply to a field.

func (*DocumentStore) DecrementFloat64ByOne

func (documentStore *DocumentStore) DecrementFloat64ByOne(id *BinaryOrStringId, fieldPath string) error

DecrementFloat64ByOne method atomically applies an decrement by one to a given field (in dot separated notation) of the given document id. If the field doesn't exist on the server then it will be created with the type of the decremental value. The operation will fail if the decrement is applied to a field that is of a non-numeric type. _id string or byte document id fieldPath the field name in dot separated notation

func (*DocumentStore) DecrementFloat64ByOneWithContext

func (documentStore *DocumentStore) DecrementFloat64ByOneWithContext(
    id *BinaryOrStringId,
    fieldPath string,
    ctx context.Context,
) error

DecrementFloat64ByOneWithContext method atomically applies an decrement by one to a given field (in dot separated notation) of the given document id. If the field doesn't exist on the server then it will be created with the type of the decremental value. The operation will fail if the decrement is applied to a field that is of a non-numeric type. _id string or byte document id fieldPath the field name in dot separated notation

func (*DocumentStore) DecrementFloat64WithContext

func (documentStore *DocumentStore) DecrementFloat64WithContext(
    id *BinaryOrStringId,
    fieldPath string,
    dec float64,
    ctx context.Context,
) error

DecrementFloat64WithContext method atomically applies an decrement to a given field (in dot separated notation) of the given document id. If the field doesn't exist on the server then it will be created with the type of the decremental value. The operation will fail if the decrement is applied to a field that is of a non-numeric type. _id string or byte document id fieldPath the field name in dot separated notation dec decrement to apply to a field.

func (*DocumentStore) DecrementInt

func (documentStore *DocumentStore) DecrementInt(id *BinaryOrStringId, fieldPath string, dec int) error

DecrementInt method atomically applies an decrement to a given field (in dot separated notation) of the given document id. If the field doesn't exist on the server then it will be created with the type of the decremental value. The operation will fail if the decrement is applied to a field that is of a non-numeric type. _id string or byte document id fieldPath the field name in dot separated notation dec decrement to apply to a field.

func (*DocumentStore) DecrementIntByOne

func (documentStore *DocumentStore) DecrementIntByOne(id *BinaryOrStringId, fieldPath string) error

DecrementIntByOne method atomically applies an decrement by one to a given field (in dot separated notation) of the given document id. If the field doesn't exist on the server then it will be created with the type of the decremental value. The operation will fail if the decrement is applied to a field that is of a non-numeric type. _id string or byte document id fieldPath the field name in dot separated notation

func (*DocumentStore) DecrementIntByOneWithContext

func (documentStore *DocumentStore) DecrementIntByOneWithContext(
    id *BinaryOrStringId,
    fieldPath string,
    ctx context.Context,
) error

DecrementIntByOneWithContext method atomically applies an decrement by one to a given field (in dot separated notation) of the given document id. If the field doesn't exist on the server then it will be created with the type of the decremental value. The operation will fail if the decrement is applied to a field that is of a non-numeric type. _id string or byte document id fieldPath the field name in dot separated notation

func (*DocumentStore) DecrementIntWithContext

func (documentStore *DocumentStore) DecrementIntWithContext(
    id *BinaryOrStringId,
    fieldPath string,
    dec int,
    ctx context.Context,
) error

DecrementIntWithContext method atomically applies an decrement to a given field (in dot separated notation) of the given document id. If the field doesn't exist on the server then it will be created with the type of the decremental value. The operation will fail if the decrement is applied to a field that is of a non-numeric type. _id string or byte document id fieldPath the field name in dot separated notation dec decrement to apply to a field.

func (*DocumentStore) DeleteByIdBinary

func (documentStore *DocumentStore) DeleteByIdBinary(id []byte) (bool, error)

DeleteByIdBinary method takes []byte _id, create new Document and executes gRPC Delete request on server and returns true if the Document was deleted from MapR-DB table otherwise false.

func (*DocumentStore) DeleteByIdBinaryWithContext

func (documentStore *DocumentStore) DeleteByIdBinaryWithContext(id []byte, ctx context.Context) (bool, error)

DeleteByIdBinaryWithContext method takes []byte _id, create new Document and executes gRPC Delete request on server and returns true if the Document was deleted from MapR-DB table otherwise false. User defined context is required for this method.

func (*DocumentStore) DeleteByIdString

func (documentStore *DocumentStore) DeleteByIdString(id string) (bool, error)

DeleteByIdString method takes string _id, create new Document and executes gRPC Delete request on server and returns true if the Document was deleted from MapR-DB table otherwise false.

func (*DocumentStore) DeleteByIdStringWithContext

func (documentStore *DocumentStore) DeleteByIdStringWithContext(id string, ctx context.Context) (bool, error)

DeleteByIdStringWithContext method takes string _id, create new Document and executes gRPC Delete request on server and returns true if the Document was deleted from MapR-DB table otherwise false. User defined context is required for this method.

func (*DocumentStore) DeleteDoc

func (documentStore *DocumentStore) DeleteDoc(doc *Document) (bool, error)

DeleteDoc method takes Document and executes gRPC Delete request on server and returns true if the Document was deleted from MapR-DB table otherwise false.

func (*DocumentStore) DeleteDocWithContext

func (documentStore *DocumentStore) DeleteDocWithContext(doc *Document, ctx context.Context) (bool, error)

DeleteDocWithContext method takes Document and executes gRPC Delete request on server and returns true if the Document was deleted from MapR-DB table otherwise false. User defined context is required for this method.

func (*DocumentStore) FindAll

func (documentStore *DocumentStore) FindAll(findOptions *FindOptions) (*QueryResult, error)

FindAll method executes gRPC Find request and returns all content of specific DocumentStore findOptions is FindOptions struct with specific query parameters returns QueryResult with response content and error

func (*DocumentStore) FindAllWithContext

func (documentStore *DocumentStore) FindAllWithContext(
    findOptions *FindOptions,
    ctx context.Context,
) (*QueryResult, error)

FindAllWithContext method executes gRPC Find request and returns all content of specific DocumentStore User defined context is required for this method. findOptions is FindOptions struct with specific query parameters returns QueryResult with response content and error

func (*DocumentStore) FindByIdByte

func (documentStore *DocumentStore) FindByIdByte(id []byte) (*Document, error)

FindByIdByte method executes gRPC FindById request with id field as array of byte on server and returns Document if it exists in MapR-DB

func (*DocumentStore) FindByIdByteWithContext

func (documentStore *DocumentStore) FindByIdByteWithContext(id []byte, ctx context.Context) (*Document, error)

FindByIdByteWithContext method executes gRPC FindById request with id field as array of byte on server and returns Document if it exists in MapR-DB User defined context is required for this method.

func (*DocumentStore) FindByIdByteWithFieldsAndCondition

func (documentStore *DocumentStore) FindByIdByteWithFieldsAndCondition(
    id []byte,
    fieldPaths []string,
    queryCondition *MapOrStructCondition,
) (*Document, error)

FindByIdByteWithFieldsAndCondition method returns the document with the specified `_id` or nil if the document with that `_id` either doesn't exist in this DocumentStore or does not meet the specified condition. id Document id. field_paths list of fields that should be returned in the read document. condition query condition to test the document

func (*DocumentStore) FindByIdByteWithFieldsAndConditionContext

func (documentStore *DocumentStore) FindByIdByteWithFieldsAndConditionContext(
    id []byte,
    fieldPaths []string,
    queryCondition *MapOrStructCondition,
    ctx context.Context,
) (*Document, error)

FindByIdByteWithFieldsAndConditionContext method returns the document with the specified `_id` or nil if the document with that `_id` either doesn't exist in this DocumentStore or does not meet the specified condition. User defined context is required for this method. id Document id. field_paths list of fields that should be returned in the read document. condition query condition to test the document

func (*DocumentStore) FindByIdString

func (documentStore *DocumentStore) FindByIdString(id string) (*Document, error)

FindByIdString method executes gRPC FindById request with id field as string on server and returns Document if it exists in MapR-DB

func (*DocumentStore) FindByIdStringWithContext

func (documentStore *DocumentStore) FindByIdStringWithContext(id string, ctx context.Context) (*Document, error)

FindByIdStringWithContext method executes gRPC FindById request with id field as string on server and returns Document if it exists in MapR-DB User defined context is required for this method.

func (*DocumentStore) FindByIdStringWithFieldsAndCondition

func (documentStore *DocumentStore) FindByIdStringWithFieldsAndCondition(
    id string,
    fieldPaths []string,
    queryCondition *MapOrStructCondition,
) (*Document, error)

FindByIdStringWithFieldsAndCondition method returns the document with the specified `_id` or nil if the document with that `_id` either doesn't exist in this DocumentStore or does not meet the specified condition. id Document id. field_paths list of fields that should be returned in the read document. condition query condition to test the document

func (*DocumentStore) FindByIdStringWithFieldsAndConditionContext

func (documentStore *DocumentStore) FindByIdStringWithFieldsAndConditionContext(
    id string,
    fieldPaths []string,
    queryCondition *MapOrStructCondition,
    ctx context.Context,
) (*Document, error)

FindByIdStringWithFieldsAndConditionContext method returns the document with the specified `_id` or nil if the document with that `_id` either doesn't exist in this DocumentStore or does not meet the specified condition. User defined context is required for this method. id Document id. field_paths list of fields that should be returned in the read document. condition query condition to test the document

func (*DocumentStore) FindQuery

func (documentStore *DocumentStore) FindQuery(query *Query, findOptions *FindOptions) (*QueryResult, error)

FindQuery method executes gRPC Find request and returns QueryResult and error. query is Query struct with OJAI query content findOptions is FindOptions struct with specific query parameters

func (*DocumentStore) FindQueryMap

func (documentStore *DocumentStore) FindQueryMap(
    query map[string]interface{},
    findOptions *FindOptions,
) (*QueryResult, error)

FindQueryMap method executes gRPC Find request and returns QueryResult and error. query is map[string]interface{} with OJAI query content findOptions is FindOptions struct with specific query parameters

func (*DocumentStore) FindQueryMapWithContext

func (documentStore *DocumentStore) FindQueryMapWithContext(
    query map[string]interface{},
    findOptions *FindOptions,
    ctx context.Context,
) (*QueryResult, error)

FindQueryMapWithContext method executes gRPC Find request and returns QueryResult and error. User defined context is required for this method. query is map[string]interface{} with OJAI query content findOptions is FindOptions struct with specific query parameters

func (*DocumentStore) FindQueryString

func (documentStore *DocumentStore) FindQueryString(query string, findOptions *FindOptions) (*QueryResult, error)

FindQueryString executes gRPC Find request and returns QueryResult and error. query is json string representation of OJAI query content findOptions is FindOptions struct with specific query parameters

func (*DocumentStore) FindQueryStringWithContext

func (documentStore *DocumentStore) FindQueryStringWithContext(
    query string,
    findOptions *FindOptions,
    ctx context.Context,
) (*QueryResult, error)

FindQueryString executes gRPC Find request and returns QueryResult and error. User defined context is required for this method. query is json string representation of OJAI query content findOptions is FindOptions struct with specific query parameters

func (*DocumentStore) FindQueryWithContext

func (documentStore *DocumentStore) FindQueryWithContext(
    query *Query,
    findOptions *FindOptions,
    ctx context.Context,
) (*QueryResult, error)

FindQueryWithContext method executes gRPC Find request and returns QueryResult and error. User defined context is required for this method. query is Query struct with OJAI query content findOptions is FindOptions struct with specific query parameters

func (*DocumentStore) IncrementFloat64

func (documentStore *DocumentStore) IncrementFloat64(id *BinaryOrStringId, fieldPath string, inc float64) error

IncrementFloat64 method atomically applies an increment to a given field (in dot separated notation) of the given document id. If the field doesn't exist on the server then it will be created with the type of the incremental value. The operation will fail if the increment is applied to a field that is of a non-numeric type. _id string or byte document id fieldPath the field name in dot separated notation inc increment to apply to a field.

func (*DocumentStore) IncrementFloat64ByOne

func (documentStore *DocumentStore) IncrementFloat64ByOne(id *BinaryOrStringId, fieldPath string) error

IncrementFloat64ByOne method atomically applies an increment by one to a given field (in dot separated notation) of the given document id. If the field doesn't exist on the server then it will be created with the type of the incremental value. The operation will fail if the increment is applied to a field that is of a non-numeric type. _id string or byte document id fieldPath the field name in dot separated notation inc increment to apply to a field.

func (*DocumentStore) IncrementFloat64ByOneWithContext

func (documentStore *DocumentStore) IncrementFloat64ByOneWithContext(
    id *BinaryOrStringId,
    fieldPath string,
    ctx context.Context,
) error

IncrementFloat64ByOneWithContext method atomically applies an increment by one to a given field (in dot separated notation) of the given document id. If the field doesn't exist on the server then it will be created with the type of the incremental value. The operation will fail if the increment is applied to a field that is of a non-numeric type. _id string or byte document id fieldPath the field name in dot separated notation inc increment to apply to a field.

func (*DocumentStore) IncrementFloat64WithContext

func (documentStore *DocumentStore) IncrementFloat64WithContext(
    id *BinaryOrStringId,
    fieldPath string,
    inc float64,
    ctx context.Context,
) error

IncrementFloat64WithContext method atomically applies an increment to a given field (in dot separated notation) of the given document id. If the field doesn't exist on the server then it will be created with the type of the incremental value. The operation will fail if the increment is applied to a field that is of a non-numeric type. _id string or byte document id fieldPath the field name in dot separated notation inc increment to apply to a field.

func (*DocumentStore) IncrementInt

func (documentStore *DocumentStore) IncrementInt(id *BinaryOrStringId, fieldPath string, inc int) error

IncrementInt method atomically applies an increment to a given field (in dot separated notation) of the given document id. If the field doesn't exist on the server then it will be created with the type of the incremental value. The operation will fail if the increment is applied to a field that is of a non-numeric type. _id string or byte document id fieldPath the field name in dot separated notation inc increment to apply to a field.

func (*DocumentStore) IncrementIntByOne

func (documentStore *DocumentStore) IncrementIntByOne(id *BinaryOrStringId, fieldPath string) error

IncrementIntByOne method atomically applies an increment by one to a given field (in dot separated notation) of the given document id. If the field doesn't exist on the server then it will be created with the type of the incremental value. The operation will fail if the increment is applied to a field that is of a non-numeric type. _id string or byte document id fieldPath the field name in dot separated notation

func (*DocumentStore) IncrementIntByOneWithContext

func (documentStore *DocumentStore) IncrementIntByOneWithContext(
    id *BinaryOrStringId,
    fieldPath string,
    ctx context.Context,
) error

IncrementIntByOneWithContext method atomically applies an increment by one to a given field (in dot separated notation) of the given document id. If the field doesn't exist on the server then it will be created with the type of the incremental value. The operation will fail if the increment is applied to a field that is of a non-numeric type. _id string or byte document id fieldPath the field name in dot separated notation

func (*DocumentStore) IncrementIntWithContext

func (documentStore *DocumentStore) IncrementIntWithContext(
    id *BinaryOrStringId,
    fieldPath string,
    inc int,
    ctx context.Context,
) error

IncrementIntWithContext method atomically applies an increment to a given field (in dot separated notation) of the given document id. If the field doesn't exist on the server then it will be created with the type of the incremental value. The operation will fail if the increment is applied to a field that is of a non-numeric type. _id string or byte document id fieldPath the field name in dot separated notation inc increment to apply to a field.

func (*DocumentStore) InsertDocument

func (documentStore *DocumentStore) InsertDocument(doc *Document) error

InsertDocument method inserts Document into the store in MapR-DB. This operation is successful only when the document with the given id doesn't exist. If "_id" already existed in the document, then an error will be thrown.

func (*DocumentStore) InsertDocumentWithContext

func (documentStore *DocumentStore) InsertDocumentWithContext(doc *Document, ctx context.Context) error

InsertDocumentWithContext method inserts Document into the store in MapR-DB. User defined context is required for this method. This operation is successful only when the document with the given id doesn't exist. If "_id" already existed in the document, then an error will be thrown.

func (*DocumentStore) InsertDocumentWithIdBinary

func (documentStore *DocumentStore) InsertDocumentWithIdBinary(doc *Document, id []byte) error

InsertDocumentWithIdBinary method changes the Document id if exists or add new id field and inserts the Document into the store in MapR-DB. This operation is successful only when the document with the given id doesn't exist. If "_id" already existed in the document, then an error will be thrown.

func (*DocumentStore) InsertDocumentWithIdBinaryContext

func (documentStore *DocumentStore) InsertDocumentWithIdBinaryContext(
    doc *Document,
    id []byte,
    ctx context.Context,
) error

InsertDocumentWithIdBinaryContext method changes the Document id if exists or add new id field and inserts the Document into the store in MapR-DB. User defined context is required for this method. This operation is successful only when the document with the given id doesn't exist. If "_id" already existed in the document, then an error will be thrown.

func (*DocumentStore) InsertDocumentWithIdString

func (documentStore *DocumentStore) InsertDocumentWithIdString(doc *Document, id string) error

InsertDocumentWithIdString method changes the Document id if exists or add new id field and inserts the Document into the store in MapR-DB. This operation is successful only when the document with the given id doesn't exist. If "_id" already existed in the document, then an error will be thrown.

func (*DocumentStore) InsertDocumentWithIdStringContext

func (documentStore *DocumentStore) InsertDocumentWithIdStringContext(
    doc *Document,
    id string,
    ctx context.Context,
) error

InsertDocumentWithIdStringContext method changes the Document id if exists or add new id field and inserts the Document into the store in MapR-DB. User defined context is required for this method. This operation is successful only when the document with the given id doesn't exist. If "_id" already existed in the document, then an error will be thrown.

func (*DocumentStore) InsertMap

func (documentStore *DocumentStore) InsertMap(docMap map[string]interface{}) error

InsertMap method inserts map[string]interface{} into the store in MapR-DB. This operation is successful only when the document with the given id doesn't exist. If "_id" already existed in the document, then an error will be thrown.

func (*DocumentStore) InsertMapWithContext

func (documentStore *DocumentStore) InsertMapWithContext(docMap map[string]interface{}, ctx context.Context) error

InsertMapWithContext method inserts map[string]interface{} into the store in MapR-DB. User defined context is required for this method. This operation is successful only when the document with the given id doesn't exist. If "_id" already existed in the document, then an error will be thrown.

func (*DocumentStore) InsertMapWithIdBinary

func (documentStore *DocumentStore) InsertMapWithIdBinary(docMap map[string]interface{}, id []byte) error

InsertMapWithIdBinary method changes id if exists or add new if field and inserts map[string]interface{} into the store in MapR-DB. This operation is successful only when the document with the given id doesn't exist. If "_id" already existed in the document, then an error will be thrown.

func (*DocumentStore) InsertMapWithIdBinaryContext

func (documentStore *DocumentStore) InsertMapWithIdBinaryContext(
    docMap map[string]interface{},
    id []byte,
    ctx context.Context,
) error

InsertMapWithIdBinaryContext method changes id if exists or add new if field and inserts map[string]interface{} into the store in MapR-DB. User defined context is required for this method. This operation is successful only when the document with the given id doesn't exist. If "_id" already existed in the document, then an error will be thrown.

func (*DocumentStore) InsertMapWithIdString

func (documentStore *DocumentStore) InsertMapWithIdString(docMap map[string]interface{}, id string) error

InsertMapWithIdString method changes id if exists or add new if field and inserts map[string]interface{} into the store in MapR-DB. This operation is successful only when the document with the given id doesn't exist. If "_id" already existed in the document, then an error will be thrown.

func (*DocumentStore) InsertMapWithIdStringContext

func (documentStore *DocumentStore) InsertMapWithIdStringContext(
    docMap map[string]interface{},
    id string,
    ctx context.Context,
) error

InsertMapWithIdStringContext method changes id if exists or add new if field and inserts map[string]interface{} into the store in MapR-DB. User defined context is required for this method. This operation is successful only when the document with the given id doesn't exist. If "_id" already existed in the document, then an error will be thrown.

func (*DocumentStore) InsertOrReplaceDocument

func (documentStore *DocumentStore) InsertOrReplaceDocument(doc *Document) error

InsertOrReplaceDocument method inserts or replaces the Document into the store in MapR-DB.

func (*DocumentStore) InsertOrReplaceDocumentWithContext

func (documentStore *DocumentStore) InsertOrReplaceDocumentWithContext(doc *Document, ctx context.Context) error

InsertOrReplaceDocumentWithContext method inserts or replaces the Document into the store in MapR-DB. User defined context is required for this method.

func (*DocumentStore) InsertOrReplaceDocumentWithIdBinary

func (documentStore *DocumentStore) InsertOrReplaceDocumentWithIdBinary(doc *Document, id []byte) error

InsertOrReplaceDocumentWithIdBinary method changes the Document id if exists or add new id field and inserts or replaces Document into the store in MapR-DB.

func (*DocumentStore) InsertOrReplaceDocumentWithIdBinaryContext

func (documentStore *DocumentStore) InsertOrReplaceDocumentWithIdBinaryContext(
    doc *Document,
    id []byte,
    ctx context.Context) error

InsertOrReplaceDocumentWithIdBinaryContext method changes the Document id if exists or add new id field and inserts or replaces Document into the store in MapR-DB. User defined context is required for this method.

func (*DocumentStore) InsertOrReplaceDocumentWithIdString

func (documentStore *DocumentStore) InsertOrReplaceDocumentWithIdString(doc *Document, id string) error

InsertOrReplaceDocumentWithIdString method changes the Document id if exists or add new id field and inserts or replaces Document into the store in MapR-DB.

func (*DocumentStore) InsertOrReplaceDocumentWithIdStringContext

func (documentStore *DocumentStore) InsertOrReplaceDocumentWithIdStringContext(
    doc *Document,
    id string,
    ctx context.Context,
) error

InsertOrReplaceDocumentWithIdStringContext method changes the Document id if exists or add new id field and inserts or replaces Document into the store in MapR-DB. User defined context is required for this method.

func (*DocumentStore) InsertOrReplaceMap

func (documentStore *DocumentStore) InsertOrReplaceMap(docMap map[string]interface{}) error

InsertOrReplaceMap method inserts or replaces map[string]interface{} into the store in MapR-DB.

func (*DocumentStore) InsertOrReplaceMapWithContext

func (documentStore *DocumentStore) InsertOrReplaceMapWithContext(
    docMap map[string]interface{},
    ctx context.Context,
) error

InsertOrReplaceMapWithContext method inserts or replaces map[string]interface{} into the store in MapR-DB. User defined context is required for this method.

func (*DocumentStore) InsertOrReplaceMapWithIdBinary

func (documentStore *DocumentStore) InsertOrReplaceMapWithIdBinary(docMap map[string]interface{}, id []byte) error

InsertOrReplaceMapWithIdString method changes id if exists or add new if field and inserts or replaces map[string]interface{} into the store in MapR-DB.

func (*DocumentStore) InsertOrReplaceMapWithIdBinaryContext

func (documentStore *DocumentStore) InsertOrReplaceMapWithIdBinaryContext(
    docMap map[string]interface{},
    id []byte,
    ctx context.Context,
) error

InsertOrReplaceMapWithIdBinaryContext method changes id if exists or add new if field and inserts or replaces map[string]interface{} into the store in MapR-DB. User defined context is required for this method.

func (*DocumentStore) InsertOrReplaceMapWithIdString

func (documentStore *DocumentStore) InsertOrReplaceMapWithIdString(docMap map[string]interface{}, id string) error

InsertOrReplaceMapWithIdString method changes id if exists or add new if field and inserts or replaces map[string]interface{} into the store in MapR-DB.

func (*DocumentStore) InsertOrReplaceMapWithIdStringContext

func (documentStore *DocumentStore) InsertOrReplaceMapWithIdStringContext(
    docMap map[string]interface{},
    id string,
    ctx context.Context,
) error

InsertOrReplaceMapWithIdStringContext method changes id if exists or add new if field and inserts or replaces map[string]interface{} into the store in MapR-DB. User defined context is required for this method.

func (*DocumentStore) InsertOrReplaceString

func (documentStore *DocumentStore) InsertOrReplaceString(docString string) error

InsertOrReplaceString method inserts or replaces string into the store in MapR-DB.

func (*DocumentStore) InsertOrReplaceStringWithContext

func (documentStore *DocumentStore) InsertOrReplaceStringWithContext(docString string, ctx context.Context) error

InsertOrReplaceStringWithContext method inserts or replaces string into the store in MapR-DB. User defined context is required for this method.

func (*DocumentStore) InsertOrReplaceStringWithIdBinary

func (documentStore *DocumentStore) InsertOrReplaceStringWithIdBinary(docString string, id []byte) error

InsertOrReplaceStringWithIdBinary method changes id if exists or add new id field and inserts or replaces string into the store in MapR-DB.

func (*DocumentStore) InsertOrReplaceStringWithIdBinaryContext

func (documentStore *DocumentStore) InsertOrReplaceStringWithIdBinaryContext(
    docString string,
    id []byte,
    ctx context.Context,
) error

InsertOrReplaceStringWithIdBinaryContext method changes id if exists or add new id field and inserts or replaces string into the store in MapR-DB. User defined context is required for this method.

func (*DocumentStore) InsertOrReplaceStringWithIdString

func (documentStore *DocumentStore) InsertOrReplaceStringWithIdString(docString string, id string) error

InsertOrReplaceStringWithIdString method changes id if exists or and new id field and inserts or replaces string into the store in MapR-DB.

func (*DocumentStore) InsertOrReplaceStringWithIdStringContext

func (documentStore *DocumentStore) InsertOrReplaceStringWithIdStringContext(
    docString string,
    id string,
    ctx context.Context,
) error

InsertOrReplaceStringWithIdStringContext method changes id if exists or and new id field and inserts or replaces string into the store in MapR-DB. User defined context is required for this method.

func (*DocumentStore) InsertString

func (documentStore *DocumentStore) InsertString(docString string) error

InsertString method inserts string into the store in MapR-DB. This operation is successful only when the document with the given id doesn't exist. If "_id" already existed in the document, then an error will be thrown.

func (*DocumentStore) InsertStringWithContext

func (documentStore *DocumentStore) InsertStringWithContext(docString string, ctx context.Context) error

InsertString method inserts string into the store in MapR-DB. User defined context is required for this method. This operation is successful only when the document with the given id doesn't exist. If "_id" already existed in the document, then an error will be thrown.

func (*DocumentStore) InsertStringWithIdBinary

func (documentStore *DocumentStore) InsertStringWithIdBinary(docString string, id []byte) error

InsertStringWithIdBinary method changes if if exists or add new id field and inserts string into the store in MapR-DB. This operation is successful only when the document with the given id doesn't exist. If "_id" already existed in the document, then an error will be thrown.

func (*DocumentStore) InsertStringWithIdBinaryContext

func (documentStore *DocumentStore) InsertStringWithIdBinaryContext(
    docString string,
    id []byte,
    ctx context.Context,
) error

InsertStringWithIdBinaryContext method changes if if exists or add new id field and inserts string into the store in MapR-DB. User defined context is required for this method. This operation is successful only when the document with the given id doesn't exist. If "_id" already existed in the document, then an error will be thrown.

func (*DocumentStore) InsertStringWithIdString

func (documentStore *DocumentStore) InsertStringWithIdString(docString string, id string) error

InsertStringWithIdString method changes id if exists or add new id field and inserts string into the store in MapR-DB. This operation is successful only when the document with the given id doesn't exist. If "_id" already existed in the document, then an error will be thrown.

func (*DocumentStore) InsertStringWithIdStringContext

func (documentStore *DocumentStore) InsertStringWithIdStringContext(
    docString string,
    id string,
    ctx context.Context,
) error

InsertStringWithIdStringContext method changes id if exists or add new id field and inserts string into the store in MapR-DB. User defined context is required for this method. This operation is successful only when the document with the given id doesn't exist. If "_id" already existed in the document, then an error will be thrown.

func (*DocumentStore) ReplaceDocument

func (documentStore *DocumentStore) ReplaceDocument(doc *Document) error

ReplaceDocument method replaces the Document into the store in MapR-DB.

func (*DocumentStore) ReplaceDocumentWithContext

func (documentStore *DocumentStore) ReplaceDocumentWithContext(doc *Document, ctx context.Context) error

ReplaceDocumentWithContext method replaces the Document into the store in MapR-DB. User defined context is required for this method.

func (*DocumentStore) ReplaceDocumentWithIdBinary

func (documentStore *DocumentStore) ReplaceDocumentWithIdBinary(doc *Document, id []byte) error

ReplaceDocumentWithIdBinary method changes the Document id if exists or add new if field and replaces the Document into the store in MapR-DB.

func (*DocumentStore) ReplaceDocumentWithIdBinaryContext

func (documentStore *DocumentStore) ReplaceDocumentWithIdBinaryContext(
    doc *Document,
    id []byte,
    ctx context.Context,
) error

ReplaceDocumentWithIdBinaryContext method changes the Document id if exists or add new if field and replaces the Document into the store in MapR-DB. User defined context is required for this method.

func (*DocumentStore) ReplaceDocumentWithIdString

func (documentStore *DocumentStore) ReplaceDocumentWithIdString(doc *Document, id string) error

ReplaceDocumentWithIdString method changes the Document id if exists or add new if field and replaces the Document into the store in MapR-DB.

func (*DocumentStore) ReplaceDocumentWithIdStringContext

func (documentStore *DocumentStore) ReplaceDocumentWithIdStringContext(
    doc *Document,
    id string,
    ctx context.Context,
) error

ReplaceDocumentWithIdStringContext method changes the Document id if exists or add new if field and replaces the Document into the store in MapR-DB. User defined context is required for this method.

func (*DocumentStore) ReplaceMap

func (documentStore *DocumentStore) ReplaceMap(docMap map[string]interface{}) error

ReplaceMap method replaces map[string]interface{} into the store in MapR-DB.

func (*DocumentStore) ReplaceMapWithContext

func (documentStore *DocumentStore) ReplaceMapWithContext(docMap map[string]interface{}, ctx context.Context) error

ReplaceMapWithContext method replaces map[string]interface{} into the store in MapR-DB. User defined context is required for this method.

func (*DocumentStore) ReplaceMapWithIdBinary

func (documentStore *DocumentStore) ReplaceMapWithIdBinary(docMap map[string]interface{}, id []byte) error

ReplaceMapWithIdBinary method changes id id exists or add new id field and replaces map[string]interface{} into the store in MapR-DB.

func (*DocumentStore) ReplaceMapWithIdBinaryContext

func (documentStore *DocumentStore) ReplaceMapWithIdBinaryContext(
    docMap map[string]interface{},
    id []byte,
    ctx context.Context,
) error

ReplaceMapWithIdBinaryContext method changes id id exists or add new id field and replaces map[string]interface{} into the store in MapR-DB. User defined context is required for this method.

func (*DocumentStore) ReplaceMapWithIdString

func (documentStore *DocumentStore) ReplaceMapWithIdString(docMap map[string]interface{}, id string) error

ReplaceMapWithIdString method changes id id exists or add new id field and replaces map[string]interface{} into the store in MapR-DB.

func (*DocumentStore) ReplaceMapWithIdStringContext

func (documentStore *DocumentStore) ReplaceMapWithIdStringContext(
    docMap map[string]interface{},
    id string,
    ctx context.Context,
) error

ReplaceMapWithIdStringContext method changes id id exists or add new id field and replaces map[string]interface{} into the store in MapR-DB. User defined context is required for this method.

func (*DocumentStore) ReplaceString

func (documentStore *DocumentStore) ReplaceString(docString string) error

ReplaceString method replaces string into the store in MapR-DB.

func (*DocumentStore) ReplaceStringWithContext

func (documentStore *DocumentStore) ReplaceStringWithContext(
    docString string,
    ctx context.Context,
) error

ReplaceStringWithContext method replaces string into the store in MapR-DB. User defined context is required for this method.

func (*DocumentStore) ReplaceStringWithIdBinary

func (documentStore *DocumentStore) ReplaceStringWithIdBinary(docString string, id []byte) error

ReplaceStringWithIdBinary method changes id if exists or add new id field and replaces string into the store in MapR-DB.

func (*DocumentStore) ReplaceStringWithIdBinaryContext

func (documentStore *DocumentStore) ReplaceStringWithIdBinaryContext(
    docString string,
    id []byte,
    ctx context.Context,
) error

ReplaceStringWithIdBinaryContext method changes id if exists or add new id field and replaces string into the store in MapR-DB. User defined context is required for this method.

func (*DocumentStore) ReplaceStringWithIdString

func (documentStore *DocumentStore) ReplaceStringWithIdString(docString string, id string) error

ReplaceStringWithIdString method changes id if exists or add new id field and replaces string into the store in MapR-DB.

func (*DocumentStore) ReplaceStringWithIdStringContext

func (documentStore *DocumentStore) ReplaceStringWithIdStringContext(
    docString string,
    id string,
    ctx context.Context,
) error

ReplaceStringWithIdStringContext method changes id if exists or add new id field and replaces string into the store in MapR-DB. User defined context is required for this method.

func (*DocumentStore) Update

func (documentStore *DocumentStore) Update(
    id *BinaryOrStringId,
    documentMutation *MapOrStructMutation,
) error

Update method applies a mutation on the document identified by the document id. All updates specified by the mutation object should be applied atomically, and consistently meaning either all of the updates in mutation are applied or none of them is applied and a partial update should not be visible to an observer.

func (*DocumentStore) UpdateWithContext

func (documentStore *DocumentStore) UpdateWithContext(
    id *BinaryOrStringId,
    documentMutation *MapOrStructMutation,
    ctx context.Context,
) error

UpdateWithContext method applies a mutation on the document identified by the document id. All updates specified by the mutation object should be applied atomically, and consistently meaning either all of the updates in mutation are applied or none of them is applied and a partial update should not be visible to an observer.

type DocumentStream

type DocumentStream struct {
    // contains filtered or unexported fields
}

type ErrorCode

* RPC response error codes. POSIX error codes are used where appropriate.

Extended error codes, those that can not be mapped to a POSIX error code, begins at 256.

type ErrorCode int32
const (
    //*
    // No error, operation completed successfully.
    ErrorCode_NO_ERROR ErrorCode = 0
    //*
    // Specified table does not exist
    ErrorCode_TABLE_NOT_FOUND ErrorCode = 2
    //*
    // An I/O error occurred on the server(s)
    ErrorCode_IO_ERROR ErrorCode = 5
    //*
    // The operation resulted in server(s) running out of memory
    ErrorCode_OUT_OF_MEMORY ErrorCode = 12
    //*
    // User does not have sufficient permission to execute the operation.
    ErrorCode_ACCESS_DENIED ErrorCode = 13
    //*
    // The specified table already exists.
    ErrorCode_TABLE_ALREADY_EXISTS ErrorCode = 17
    //*
    // One or more request parameter was invalid.
    // This error code should be used whenever a request parameter was unrecognized or outside a valid domain.
    // For example, an unrecognized enum value was supplied for InsertMode.
    ErrorCode_INVALID_ARGUMENT ErrorCode = 22
    //*
    // Requested operation is not supported by this server.
    // This error code should be used if a known, valid operation is not supported by the current service.
    ErrorCode_UNSUPPORTED_OPERATION ErrorCode = 38
    //*
    // Catch-all for all undefined errors on server.
    ErrorCode_UNKNOWN_ERROR ErrorCode = 256
    //
    // Extended error codes.
    //
    // TODO: renumber the error codes before release
    //
    ErrorCode_UNKNOWN_PAYLOAD_ENCODING ErrorCode = 260
    ErrorCode_CLUSTER_NOT_FOUND        ErrorCode = 270
    ErrorCode_PATH_NOT_FOUND           ErrorCode = 271
    ErrorCode_DOCUMENT_ALREADY_EXISTS  ErrorCode = 280
    ErrorCode_DOCUMENT_NOT_FOUND       ErrorCode = 281
    ErrorCode_ENCODING_ERROR           ErrorCode = 290
    ErrorCode_DECODING_ERROR           ErrorCode = 291
    ErrorCode_ILLEGAL_MUTATION         ErrorCode = 292
)

func (ErrorCode) EnumDescriptor

func (ErrorCode) EnumDescriptor() ([]byte, []int)

func (ErrorCode) String

func (x ErrorCode) String() string

type FindByIdRequest

type FindByIdRequest struct {
    TablePath       string          `protobuf:"bytes,1,opt,name=table_path,json=tablePath,proto3" json:"table_path,omitempty"`
    PayloadEncoding PayloadEncoding `protobuf:"varint,2,opt,name=payload_encoding,json=payloadEncoding,proto3,enum=com.mapr.data.db.PayloadEncoding" json:"payload_encoding,omitempty"`
    //*
    // <b>[Optional]</b><p/>
    // List of OJAI FieldPaths that should be included in the returned document
    Projections []string `protobuf:"bytes,3,rep,name=projections,proto3" json:"projections,omitempty"`
    // Types that are valid to be assigned to Condition:
    //	*FindByIdRequest_JsonCondition
    Condition isFindByIdRequest_Condition `protobuf_oneof:"condition"`
    // Types that are valid to be assigned to Document:
    //	*FindByIdRequest_JsonDocument
    Document             isFindByIdRequest_Document `protobuf_oneof:"document"`
    XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
    XXX_unrecognized     []byte                     `json:"-"`
    XXX_sizecache        int32                      `json:"-"`
}

func (*FindByIdRequest) Descriptor

func (*FindByIdRequest) Descriptor() ([]byte, []int)

func (*FindByIdRequest) GetCondition

func (m *FindByIdRequest) GetCondition() isFindByIdRequest_Condition

func (*FindByIdRequest) GetDocument

func (m *FindByIdRequest) GetDocument() isFindByIdRequest_Document

func (*FindByIdRequest) GetJsonCondition

func (m *FindByIdRequest) GetJsonCondition() string

func (*FindByIdRequest) GetJsonDocument

func (m *FindByIdRequest) GetJsonDocument() string

func (*FindByIdRequest) GetPayloadEncoding

func (m *FindByIdRequest) GetPayloadEncoding() PayloadEncoding

func (*FindByIdRequest) GetProjections

func (m *FindByIdRequest) GetProjections() []string

func (*FindByIdRequest) GetTablePath

func (m *FindByIdRequest) GetTablePath() string

func (*FindByIdRequest) ProtoMessage

func (*FindByIdRequest) ProtoMessage()

func (*FindByIdRequest) Reset

func (m *FindByIdRequest) Reset()

func (*FindByIdRequest) String

func (m *FindByIdRequest) String() string

func (*FindByIdRequest) XXX_DiscardUnknown

func (m *FindByIdRequest) XXX_DiscardUnknown()

func (*FindByIdRequest) XXX_Marshal

func (m *FindByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FindByIdRequest) XXX_Merge

func (m *FindByIdRequest) XXX_Merge(src proto.Message)

func (*FindByIdRequest) XXX_OneofFuncs

func (*FindByIdRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*FindByIdRequest) XXX_Size

func (m *FindByIdRequest) XXX_Size() int

func (*FindByIdRequest) XXX_Unmarshal

func (m *FindByIdRequest) XXX_Unmarshal(b []byte) error

type FindByIdRequest_JsonCondition

type FindByIdRequest_JsonCondition struct {
    JsonCondition string `protobuf:"bytes,4,opt,name=json_condition,json=jsonCondition,proto3,oneof"`
}

type FindByIdRequest_JsonDocument

type FindByIdRequest_JsonDocument struct {
    JsonDocument string `protobuf:"bytes,5,opt,name=json_document,json=jsonDocument,proto3,oneof"`
}

type FindByIdResponse

type FindByIdResponse struct {
    //*
    // `NO_ERROR` - if a document with the specified `_id` was found
    // `DOCUMENT_NOT_FOUND` - if the document with the specified `_id` does not exist
    Error           *RpcError       `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
    PayloadEncoding PayloadEncoding `protobuf:"varint,2,opt,name=payload_encoding,json=payloadEncoding,proto3,enum=com.mapr.data.db.PayloadEncoding" json:"payload_encoding,omitempty"`
    // Types that are valid to be assigned to Data:
    //	*FindByIdResponse_JsonDocument
    Data                 isFindByIdResponse_Data `protobuf_oneof:"data"`
    XXX_NoUnkeyedLiteral struct{}                `json:"-"`
    XXX_unrecognized     []byte                  `json:"-"`
    XXX_sizecache        int32                   `json:"-"`
}

func (*FindByIdResponse) Descriptor

func (*FindByIdResponse) Descriptor() ([]byte, []int)

func (*FindByIdResponse) GetData

func (m *FindByIdResponse) GetData() isFindByIdResponse_Data

func (*FindByIdResponse) GetError

func (m *FindByIdResponse) GetError() *RpcError

func (*FindByIdResponse) GetJsonDocument

func (m *FindByIdResponse) GetJsonDocument() string

func (*FindByIdResponse) GetPayloadEncoding

func (m *FindByIdResponse) GetPayloadEncoding() PayloadEncoding

func (*FindByIdResponse) ProtoMessage

func (*FindByIdResponse) ProtoMessage()

func (*FindByIdResponse) Reset

func (m *FindByIdResponse) Reset()

func (*FindByIdResponse) String

func (m *FindByIdResponse) String() string

func (*FindByIdResponse) XXX_DiscardUnknown

func (m *FindByIdResponse) XXX_DiscardUnknown()

func (*FindByIdResponse) XXX_Marshal

func (m *FindByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FindByIdResponse) XXX_Merge

func (m *FindByIdResponse) XXX_Merge(src proto.Message)

func (*FindByIdResponse) XXX_OneofFuncs

func (*FindByIdResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*FindByIdResponse) XXX_Size

func (m *FindByIdResponse) XXX_Size() int

func (*FindByIdResponse) XXX_Unmarshal

func (m *FindByIdResponse) XXX_Unmarshal(b []byte) error

type FindByIdResponse_JsonDocument

type FindByIdResponse_JsonDocument struct {
    JsonDocument string `protobuf:"bytes,30,opt,name=json_document,json=jsonDocument,proto3,oneof"`
}

type FindOptions

type FindOptions struct {
    IncludeQueryPlan bool
    ResultAsDocument bool
}

type FindRequest

type FindRequest struct {
    TablePath        string          `protobuf:"bytes,1,opt,name=table_path,json=tablePath,proto3" json:"table_path,omitempty"`
    PayloadEncoding  PayloadEncoding `protobuf:"varint,2,opt,name=payload_encoding,json=payloadEncoding,proto3,enum=com.mapr.data.db.PayloadEncoding" json:"payload_encoding,omitempty"`
    IncludeQueryPlan bool            `protobuf:"varint,3,opt,name=include_query_plan,json=includeQueryPlan,proto3" json:"include_query_plan,omitempty"`
    // Types that are valid to be assigned to Data:
    //	*FindRequest_JsonQuery
    Data                 isFindRequest_Data `protobuf_oneof:"data"`
    XXX_NoUnkeyedLiteral struct{}           `json:"-"`
    XXX_unrecognized     []byte             `json:"-"`
    XXX_sizecache        int32              `json:"-"`
}

func (*FindRequest) Descriptor

func (*FindRequest) Descriptor() ([]byte, []int)

func (*FindRequest) GetData

func (m *FindRequest) GetData() isFindRequest_Data

func (*FindRequest) GetIncludeQueryPlan

func (m *FindRequest) GetIncludeQueryPlan() bool

func (*FindRequest) GetJsonQuery

func (m *FindRequest) GetJsonQuery() string

func (*FindRequest) GetPayloadEncoding

func (m *FindRequest) GetPayloadEncoding() PayloadEncoding

func (*FindRequest) GetTablePath

func (m *FindRequest) GetTablePath() string

func (*FindRequest) ProtoMessage

func (*FindRequest) ProtoMessage()

func (*FindRequest) Reset

func (m *FindRequest) Reset()

func (*FindRequest) String

func (m *FindRequest) String() string

func (*FindRequest) XXX_DiscardUnknown

func (m *FindRequest) XXX_DiscardUnknown()

func (*FindRequest) XXX_Marshal

func (m *FindRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FindRequest) XXX_Merge

func (m *FindRequest) XXX_Merge(src proto.Message)

func (*FindRequest) XXX_OneofFuncs

func (*FindRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*FindRequest) XXX_Size

func (m *FindRequest) XXX_Size() int

func (*FindRequest) XXX_Unmarshal

func (m *FindRequest) XXX_Unmarshal(b []byte) error

type FindRequest_JsonQuery

type FindRequest_JsonQuery struct {
    JsonQuery string `protobuf:"bytes,4,opt,name=json_query,json=jsonQuery,proto3,oneof"`
}

type FindResponse

* Results of Find() RPCs are streamed to the clients, with each FindResponse containing one OJAI document. If the `include_query_plan` in FindRequest was set to true, the first FindResponse will contain the query plan instead of OJAI Document

type FindResponse struct {
    Error           *RpcError       `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
    PayloadEncoding PayloadEncoding `protobuf:"varint,2,opt,name=payload_encoding,json=payloadEncoding,proto3,enum=com.mapr.data.db.PayloadEncoding" json:"payload_encoding,omitempty"`
    //*
    // Indicates the type of this response
    Type FindResponseType `protobuf:"varint,3,opt,name=type,proto3,enum=com.mapr.data.db.FindResponseType" json:"type,omitempty"`
    // Types that are valid to be assigned to Data:
    //	*FindResponse_JsonResponse
    Data                 isFindResponse_Data `protobuf_oneof:"data"`
    XXX_NoUnkeyedLiteral struct{}            `json:"-"`
    XXX_unrecognized     []byte              `json:"-"`
    XXX_sizecache        int32               `json:"-"`
}

func (*FindResponse) Descriptor

func (*FindResponse) Descriptor() ([]byte, []int)

func (*FindResponse) GetData

func (m *FindResponse) GetData() isFindResponse_Data

func (*FindResponse) GetError

func (m *FindResponse) GetError() *RpcError

func (*FindResponse) GetJsonResponse

func (m *FindResponse) GetJsonResponse() string

func (*FindResponse) GetPayloadEncoding

func (m *FindResponse) GetPayloadEncoding() PayloadEncoding

func (*FindResponse) GetType

func (m *FindResponse) GetType() FindResponseType

func (*FindResponse) ProtoMessage

func (*FindResponse) ProtoMessage()

func (*FindResponse) Reset

func (m *FindResponse) Reset()

func (*FindResponse) String

func (m *FindResponse) String() string

func (*FindResponse) XXX_DiscardUnknown

func (m *FindResponse) XXX_DiscardUnknown()

func (*FindResponse) XXX_Marshal

func (m *FindResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FindResponse) XXX_Merge

func (m *FindResponse) XXX_Merge(src proto.Message)

func (*FindResponse) XXX_OneofFuncs

func (*FindResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*FindResponse) XXX_Size

func (m *FindResponse) XXX_Size() int

func (*FindResponse) XXX_Unmarshal

func (m *FindResponse) XXX_Unmarshal(b []byte) error

type FindResponseType

type FindResponseType int32
const (
    //*
    // Invalid, unknown type
    FindResponseType_UNKNOWN_TYPE FindResponseType = 0
    //*
    // Indicates that the current response contains a QueryResult Document
    FindResponseType_RESULT_DOCUMENT FindResponseType = 1
    //*
    // Indicates that the current response contains a Query plan
    FindResponseType_QUERY_PLAN FindResponseType = 2
)

func (FindResponseType) EnumDescriptor

func (FindResponseType) EnumDescriptor() ([]byte, []int)

func (FindResponseType) String

func (x FindResponseType) String() string

type FindResponse_JsonResponse

type FindResponse_JsonResponse struct {
    JsonResponse string `protobuf:"bytes,30,opt,name=json_response,json=jsonResponse,proto3,oneof"`
}

type InsertMode

type InsertMode int32
const (
    //*
    // Invalid, unknown mode
    InsertMode_UNKNOWN_MODE InsertMode = 0
    //*
    // Insert this document WHETHER OR NOT a document with the same _id exist in the store
    InsertMode_INSERT_OR_REPLACE InsertMode = 1
    //*
    // Insert this document ONLY IF another document with the same _id DOES NOT exist in the store
    InsertMode_INSERT InsertMode = 2
    //*
    // Insert this document ONLY IF a document with the same _id EXISTS in the store
    InsertMode_REPLACE InsertMode = 3
)

func (InsertMode) EnumDescriptor

func (InsertMode) EnumDescriptor() ([]byte, []int)

func (InsertMode) String

func (x InsertMode) String() string

type InsertOrReplaceRequest

type InsertOrReplaceRequest struct {
    TablePath       string          `protobuf:"bytes,1,opt,name=table_path,json=tablePath,proto3" json:"table_path,omitempty"`
    InsertMode      InsertMode      `protobuf:"varint,2,opt,name=insert_mode,json=insertMode,proto3,enum=com.mapr.data.db.InsertMode" json:"insert_mode,omitempty"`
    PayloadEncoding PayloadEncoding `protobuf:"varint,3,opt,name=payload_encoding,json=payloadEncoding,proto3,enum=com.mapr.data.db.PayloadEncoding" json:"payload_encoding,omitempty"`
    // Types that are valid to be assigned to Condition:
    //	*InsertOrReplaceRequest_JsonCondition
    Condition isInsertOrReplaceRequest_Condition `protobuf_oneof:"condition"`
    // Types that are valid to be assigned to Data:
    //	*InsertOrReplaceRequest_JsonDocument
    Data                 isInsertOrReplaceRequest_Data `protobuf_oneof:"data"`
    XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
    XXX_unrecognized     []byte                        `json:"-"`
    XXX_sizecache        int32                         `json:"-"`
}

func (*InsertOrReplaceRequest) Descriptor

func (*InsertOrReplaceRequest) Descriptor() ([]byte, []int)

func (*InsertOrReplaceRequest) GetCondition

func (m *InsertOrReplaceRequest) GetCondition() isInsertOrReplaceRequest_Condition

func (*InsertOrReplaceRequest) GetData

func (m *InsertOrReplaceRequest) GetData() isInsertOrReplaceRequest_Data

func (*InsertOrReplaceRequest) GetInsertMode

func (m *InsertOrReplaceRequest) GetInsertMode() InsertMode

func (*InsertOrReplaceRequest) GetJsonCondition

func (m *InsertOrReplaceRequest) GetJsonCondition() string

func (*InsertOrReplaceRequest) GetJsonDocument

func (m *InsertOrReplaceRequest) GetJsonDocument() string

func (*InsertOrReplaceRequest) GetPayloadEncoding

func (m *InsertOrReplaceRequest) GetPayloadEncoding() PayloadEncoding

func (*InsertOrReplaceRequest) GetTablePath

func (m *InsertOrReplaceRequest) GetTablePath() string

func (*InsertOrReplaceRequest) ProtoMessage

func (*InsertOrReplaceRequest) ProtoMessage()

func (*InsertOrReplaceRequest) Reset

func (m *InsertOrReplaceRequest) Reset()

func (*InsertOrReplaceRequest) String

func (m *InsertOrReplaceRequest) String() string

func (*InsertOrReplaceRequest) XXX_DiscardUnknown

func (m *InsertOrReplaceRequest) XXX_DiscardUnknown()

func (*InsertOrReplaceRequest) XXX_Marshal

func (m *InsertOrReplaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InsertOrReplaceRequest) XXX_Merge

func (m *InsertOrReplaceRequest) XXX_Merge(src proto.Message)

func (*InsertOrReplaceRequest) XXX_OneofFuncs

func (*InsertOrReplaceRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*InsertOrReplaceRequest) XXX_Size

func (m *InsertOrReplaceRequest) XXX_Size() int

func (*InsertOrReplaceRequest) XXX_Unmarshal

func (m *InsertOrReplaceRequest) XXX_Unmarshal(b []byte) error

type InsertOrReplaceRequest_JsonCondition

type InsertOrReplaceRequest_JsonCondition struct {
    JsonCondition string `protobuf:"bytes,4,opt,name=json_condition,json=jsonCondition,proto3,oneof"`
}

type InsertOrReplaceRequest_JsonDocument

type InsertOrReplaceRequest_JsonDocument struct {
    JsonDocument string `protobuf:"bytes,30,opt,name=json_document,json=jsonDocument,proto3,oneof"`
}

type InsertOrReplaceResponse

type InsertOrReplaceResponse struct {
    Error                *RpcError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

func (*InsertOrReplaceResponse) Descriptor

func (*InsertOrReplaceResponse) Descriptor() ([]byte, []int)

func (*InsertOrReplaceResponse) GetError

func (m *InsertOrReplaceResponse) GetError() *RpcError

func (*InsertOrReplaceResponse) ProtoMessage

func (*InsertOrReplaceResponse) ProtoMessage()

func (*InsertOrReplaceResponse) Reset

func (m *InsertOrReplaceResponse) Reset()

func (*InsertOrReplaceResponse) String

func (m *InsertOrReplaceResponse) String() string

func (*InsertOrReplaceResponse) XXX_DiscardUnknown

func (m *InsertOrReplaceResponse) XXX_DiscardUnknown()

func (*InsertOrReplaceResponse) XXX_Marshal

func (m *InsertOrReplaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InsertOrReplaceResponse) XXX_Merge

func (m *InsertOrReplaceResponse) XXX_Merge(src proto.Message)

func (*InsertOrReplaceResponse) XXX_Size

func (m *InsertOrReplaceResponse) XXX_Size() int

func (*InsertOrReplaceResponse) XXX_Unmarshal

func (m *InsertOrReplaceResponse) XXX_Unmarshal(b []byte) error

type MapOrStructCondition

structure that is used in gRPC requests instead of Map or Condition representation

type MapOrStructCondition struct {
    MapCondition    map[string]interface{}
    StructCondition *Condition
    // contains filtered or unexported fields
}

func MoscFromMap

func MoscFromMap(condition map[string]interface{}) *MapOrStructCondition

Creates BapOrStructCondition struct from map[string]interface{}

func MoscFromStruct

func MoscFromStruct(condition *Condition) *MapOrStructCondition

Creates BapOrStructCondition struct from Condition

type MapOrStructMutation

structure that is used in gRPC requests instead of Map or DocumentMutation representation

type MapOrStructMutation struct {
    IsMap          bool
    MapMutation    map[string]interface{}
    StructMutation *DocumentMutation
}

func MosmFromMap

func MosmFromMap(mutation map[string]interface{}) *MapOrStructMutation

func MosmFromStruct

func MosmFromStruct(mutation *DocumentMutation) *MapOrStructMutation

type MapRDbServerClient

MapRDbServerClient is the client API for MapRDbServer service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type MapRDbServerClient interface {
    // Ping RPC
    Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
    // Admin RPCs
    CreateTable(ctx context.Context, in *CreateTableRequest, opts ...grpc.CallOption) (*CreateTableResponse, error)
    DeleteTable(ctx context.Context, in *DeleteTableRequest, opts ...grpc.CallOption) (*DeleteTableResponse, error)
    TableExists(ctx context.Context, in *TableExistsRequest, opts ...grpc.CallOption) (*TableExistsResponse, error)
    // CRUD RPCs
    InsertOrReplace(ctx context.Context, in *InsertOrReplaceRequest, opts ...grpc.CallOption) (*InsertOrReplaceResponse, error)
    FindById(ctx context.Context, in *FindByIdRequest, opts ...grpc.CallOption) (*FindByIdResponse, error)
    Find(ctx context.Context, in *FindRequest, opts ...grpc.CallOption) (MapRDbServer_FindClient, error)
    Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
    Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
}

func NewMapRDbServerClient

func NewMapRDbServerClient(cc *grpc.ClientConn) MapRDbServerClient

type MapRDbServerServer

MapRDbServerServer is the server API for MapRDbServer service.

type MapRDbServerServer interface {
    // Ping RPC
    Ping(context.Context, *PingRequest) (*PingResponse, error)
    // Admin RPCs
    CreateTable(context.Context, *CreateTableRequest) (*CreateTableResponse, error)
    DeleteTable(context.Context, *DeleteTableRequest) (*DeleteTableResponse, error)
    TableExists(context.Context, *TableExistsRequest) (*TableExistsResponse, error)
    // CRUD RPCs
    InsertOrReplace(context.Context, *InsertOrReplaceRequest) (*InsertOrReplaceResponse, error)
    FindById(context.Context, *FindByIdRequest) (*FindByIdResponse, error)
    Find(*FindRequest, MapRDbServer_FindServer) error
    Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
    Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
}

type MapRDbServer_FindClient

type MapRDbServer_FindClient interface {
    Recv() (*FindResponse, error)
    grpc.ClientStream
}

type MapRDbServer_FindServer

type MapRDbServer_FindServer interface {
    Send(*FindResponse) error
    grpc.ServerStream
}

type MutationOp

type MutationOp int
const (
    None MutationOp = iota
    SET
    SET_OR_REPLACE
    DELETE
    APPEND
    INCREMENT
    DECREMENT
    MERGE
)

type MutationOperations

Type for DocumentMutation functional options

type MutationOperations func(documentMutation *DocumentMutation) (*DocumentMutation, error)

func AppendSlice

func AppendSlice(fieldPath string, value []interface{}) MutationOperations

Appends the given value to an existing value at the given path

func AppendString

func AppendString(fieldPath, value string) MutationOperations

Appends the given value to an existing value at the given path

func DecrementFloat64

func DecrementFloat64(fieldPath string, value float64) MutationOperations

Atomically decrement the existing value at given the fieldPath by the given value.

func DecrementFloat64ByOne

func DecrementFloat64ByOne(fieldPath string) MutationOperations

Atomically decrement the existing value at given the fieldPath by the given value.

func DecrementInt

func DecrementInt(fieldPath string, value int) MutationOperations

Atomically decrement the existing value at given the fieldPath by the given value.

func DecrementIntByOne

func DecrementIntByOne(fieldPath string) MutationOperations

Atomically decrement the existing value at given the fieldPath by the given value.

func Delete

func Delete(fieldPath string) MutationOperations

func IncrementFloat64

func IncrementFloat64(fieldPath string, value float64) MutationOperations

Atomically increment the existing value at given the fieldPath by the given value.

func IncrementFloat64ByOne

func IncrementFloat64ByOne(fieldPath string) MutationOperations

Atomically increment the existing value at given the fieldPath by the given value.

func IncrementInt

func IncrementInt(fieldPath string, value int) MutationOperations

Atomically increment the existing value at given the fieldPath by the given value.

func IncrementIntByOne

func IncrementIntByOne(fieldPath string) MutationOperations

Atomically increment the existing value at given the fieldPath by the given value.

func MergeDocument

func MergeDocument(fieldPath string, value *Document) MutationOperations

Merges the existing MAP at the given fieldPath.

func MergeMap

func MergeMap(fieldPath string, value map[string]interface{}) MutationOperations

Merges the existing MAP at the given fieldPath.

func Set

func Set(fieldPath string, value interface{}) MutationOperations

Sets the field at the given fieldPath to given value fieldPath: path of the field that needs to be updated. the new value to set at the path.

func SetOrReplace

func SetOrReplace(fieldPath string, value interface{}) MutationOperations

Sets or replaces the field at the given fieldPath to value fieldPath in the document that needs to be updated. value: the new value to set or replace at the given path.

type ODate

OJAI Date day representation

type ODate struct {
    // contains filtered or unexported fields
}

func MakeODate

func MakeODate(year, month, dayOfMonth int) *ODate

MakeDate creates and returns ODate from year, month and day of month.

func MakeODateFromDate

func MakeODateFromDate(date *time.Time) *ODate

MakeODateFromDate creates and returns ODate from time.Time.

func MakeODateFromString

func MakeODateFromString(date string) (*ODate, error)

MakeODateFromString creates and returns date from string in RFC3339FullDate format. example : "2015-11-11"

func MakeODateFromTimestampInt

func MakeODateFromTimestampInt(timestamp int64) *ODate

MakeODateFromTimestampInt creates and returns date from Unix timestamp in int64 format

func MakeODateFromTimestampString

func MakeODateFromTimestampString(timestamp string) *ODate

MakeODateFromTimestampString creates and returns date from Unix timestamp in string format

func (*ODate) GetDate

func (date *ODate) GetDate() time.Time

GetDate returns time.Time of the ODate

func (*ODate) GetDay

func (date *ODate) GetDay() int

GetDay returns day of the ODate

func (*ODate) GetMonth

func (date *ODate) GetMonth() int

GetMonth returns month of the ODate

func (*ODate) GetYear

func (date *ODate) GetYear() int

GetYear returns year of the ODate

func (*ODate) MarshalJSON

func (date *ODate) MarshalJSON() ([]byte, error)

Marshaller implementation for ODate

func (*ODate) String

func (date *ODate) String() string

Stringer interface implementation

type OTime

OJAI time representation

type OTime struct {
    // contains filtered or unexported fields
}

func MakeOTime

func MakeOTime(hourOfDay, minutes, seconds int) *OTime

func MakeOTimeFromDate

func MakeOTimeFromDate(date *time.Time) *OTime

func MakeOTimeFromString

func MakeOTimeFromString(date string) (*OTime, error)

Make OTime from string and layout format

func MakeOTimeFromStringRFC3339

func MakeOTimeFromStringRFC3339(date string) (*OTime, error)

Make OTime from string in RFC3339 format. example : "2015-11-11T10:30:24.354Z"

func MakeOTimeFromTimestampInt

func MakeOTimeFromTimestampInt(timestamp int64) *OTime

Make OTime from Unix timestamp in int64 format

func MakeOTimeFromTimestampString

func MakeOTimeFromTimestampString(timestamp string) (*OTime, error)

Make OTime from Unix timestamp in string format

func MakeOTimeWithNsec

func MakeOTimeWithNsec(hourOfDay, minutes, seconds, nsec int) *OTime

func (*OTime) GetHour

func (time *OTime) GetHour() int

GetHour returns time hour of the OTime

func (*OTime) GetMinute

func (time *OTime) GetMinute() int

GetMinute returns time minute of the OTime

func (*OTime) GetNanosecond

func (time *OTime) GetNanosecond() int

GetNanosecond returns nanosecond of the OTime

func (*OTime) GetSecond

func (time *OTime) GetSecond() int

GetSecond returns second of the OTime

func (*OTime) GetTime

func (time *OTime) GetTime() *time.Time

GetTime returns time.Time of the OTime

func (*OTime) GetTimeString

func (time *OTime) GetTimeString() string

GetTimeString returns time as string

func (*OTime) MarshalJSON

func (time *OTime) MarshalJSON() ([]byte, error)

Marshaller implementation for OTime

func (*OTime) String

func (time *OTime) String() string

Stringer interface implementation

type OTimestamp

type OTimestamp struct {
    // contains filtered or unexported fields
}

func MakeOTimestamp

func MakeOTimestamp(years, months, days, hours, minutes, seconds, millis int) *OTimestamp

Make OTimestamp from years, months, days, hours, minutes, seconds and millis

func MakeOTimestampFromDate

func MakeOTimestampFromDate(date time.Time) *OTimestamp

Make OTimestamp from time.Time

func MakeOTimestampFromString

func MakeOTimestampFromString(str string) *OTimestamp

Make OTimestamp from RFC3339 string representation

func MakeOTimestampFromUnixTimestamp

func MakeOTimestampFromUnixTimestamp(sec, nsec int) *OTimestamp

Make OTimestamp from Unix timestamp

func (*OTimestamp) DateTime

func (timestamp *OTimestamp) DateTime() time.Time

Returns time.Time of OTimestamp

func (*OTimestamp) Days

func (timestamp *OTimestamp) Days() int

Returns Days from OTimestamp

func (*OTimestamp) Hours

func (timestamp *OTimestamp) Hours() int

Returns Hours from OTimestamp

func (*OTimestamp) MarshalJSON

func (timestamp *OTimestamp) MarshalJSON() ([]byte, error)

Marshaller implementation for OTimestamp

func (*OTimestamp) Millis

func (timestamp *OTimestamp) Millis() int

Returns Millis from OTimestamp

func (*OTimestamp) Minutes

func (timestamp *OTimestamp) Minutes() int

Returns Minutes from OTimestamp

func (*OTimestamp) Months

func (timestamp *OTimestamp) Months() int

Returns Months from OTimestamp

func (*OTimestamp) String

func (timestamp *OTimestamp) String() string

Stringer interface implementation

func (*OTimestamp) Years

func (timestamp *OTimestamp) Years() int

Returns Years from OTimestamp

type Operation

Query operation type

type Operation int

Query operations constants

const (
    SELECT Operation = iota
    WHERE
    ORDER_BY
    OFFSET
    LIMIT
)

type Order

type Order int

Constants which indicate order of response

const (
    ASC Order = iota
    DESC
)

type PayloadEncoding

* ENUM indicating the encoding scheme of the OJAI objects in RPC request/response. Currently only JSON encoding is supported.

type PayloadEncoding int32
const (
    //*
    // Invalid, unknown encoding
    PayloadEncoding_UNKNOWN_ENCODING PayloadEncoding = 0
    //*
    // Payload is encoded as JSON string
    PayloadEncoding_JSON_ENCODING PayloadEncoding = 1
)

func (PayloadEncoding) EnumDescriptor

func (PayloadEncoding) EnumDescriptor() ([]byte, []int)

func (PayloadEncoding) String

func (x PayloadEncoding) String() string

type PingRequest

type PingRequest struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*PingRequest) Descriptor

func (*PingRequest) Descriptor() ([]byte, []int)

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) Reset

func (m *PingRequest) Reset()

func (*PingRequest) String

func (m *PingRequest) String() string

func (*PingRequest) XXX_DiscardUnknown

func (m *PingRequest) XXX_DiscardUnknown()

func (*PingRequest) XXX_Marshal

func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PingRequest) XXX_Merge

func (m *PingRequest) XXX_Merge(src proto.Message)

func (*PingRequest) XXX_Size

func (m *PingRequest) XXX_Size() int

func (*PingRequest) XXX_Unmarshal

func (m *PingRequest) XXX_Unmarshal(b []byte) error

type PingResponse

type PingResponse struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*PingResponse) Descriptor

func (*PingResponse) Descriptor() ([]byte, []int)

func (*PingResponse) ProtoMessage

func (*PingResponse) ProtoMessage()

func (*PingResponse) Reset

func (m *PingResponse) Reset()

func (*PingResponse) String

func (m *PingResponse) String() string

func (*PingResponse) XXX_DiscardUnknown

func (m *PingResponse) XXX_DiscardUnknown()

func (*PingResponse) XXX_Marshal

func (m *PingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PingResponse) XXX_Merge

func (m *PingResponse) XXX_Merge(src proto.Message)

func (*PingResponse) XXX_Size

func (m *PingResponse) XXX_Size() int

func (*PingResponse) XXX_Unmarshal

func (m *PingResponse) XXX_Unmarshal(b []byte) error

type Query

Query structure which lets users build an OJAI Query that can be executed on an OJAI DocumentStore.

type Query struct {
    // contains filtered or unexported fields
}

func MakeQuery

func MakeQuery(operations ...QueryOptions) (*Query, error)

MakeQuery creates empty Query struct

func (*Query) AsMap

func (query *Query) AsMap() map[string]interface{}

Returns query's map

func (*Query) Build

func (query *Query) Build()

Build builds the Query.

func (*Query) CleanLimit

func (query *Query) CleanLimit() *Query

CleanLimit removes limit from query content if it exists

func (*Query) CleanOffset

func (query *Query) CleanOffset() *Query

CleanOffset removes offset from query content if it exists

func (*Query) CleanOrderBy

func (query *Query) CleanOrderBy() *Query

CleanSelect removes orderBy from query content if it exists

func (*Query) CleanQuery

func (query *Query) CleanQuery() *Query

CleanQuery cleans entire query content

func (*Query) CleanSelect

func (query *Query) CleanSelect() *Query

CleanSelect removes select argument from query content if it exists

func (*Query) IsBuild

func (query *Query) IsBuild() bool

IsBuild checks is query built and ready to send

type QueryOptions

type QueryOptions func(query *Query) (*Query, error)

func Limit

func Limit(limit int) QueryOptions

Limit restricts the maximum number of documents returned from this query to the specified value. Negative values are not permitted.

func Offset

func Offset(offset int) QueryOptions

Offset adds index which specifies number of Documents to skip before returning any result. Negative values are not permitted. Multiple invocation will overwrite the previous value.

func OrderBy

func OrderBy(order Order, fieldPaths ...interface{}) QueryOptions

OrderBy sets the sort ordering of the returned Documents to the order of specified field path.

func Select

func Select(fields ...interface{}) QueryOptions

Select adds the list of field paths to the list of projected fields. If not specified, the entire Document will be returned.

func WhereCondition

func WhereCondition(where *Condition) QueryOptions

WhereCondition sets the filtering condition for the query.

func WhereMap

func WhereMap(where map[string]interface{}) QueryOptions

WhereMap sets the filtering condition for the query.

type QueryResult

Result of Find RPC request

type QueryResult struct {
    // contains filtered or unexported fields
}

func MakeQueryResult

func MakeQueryResult(responseStream MapRDbServer_FindClient, findOptions *FindOptions) (*QueryResult, error)

MakeQueryResult creates and returns new QueryResult for each Find gRPC request responseStream gRPC response stream from server findOptions options which were passed in Find request

func (*QueryResult) DocumentList

func (queryResult *QueryResult) DocumentList() []interface{}

DocumentList method returns slice of document which can be represent as map[string]interface{} or Document instances

func (*QueryResult) QueryPlan

func (queryResult *QueryResult) QueryPlan() string

QueryPlan method returns the query plan if the corresponding option was set in QueryOptions

type RpcError

* Protobuf message that encapsulates RPC operation error, if any. Each RPC response should include RpcError message, with `NO_ERROR` indicating success

type RpcError struct {
    //*
    // Error code for the RPC. `NO_ERROR` indicates RPC completed successfully
    ErrCode ErrorCode `protobuf:"varint,1,opt,name=err_code,json=errCode,proto3,enum=com.mapr.data.db.ErrorCode" json:"err_code,omitempty"`
    //*
    // NULL if `err` is `NO_ERROR`
    ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
    //*
    // NULL if `err` is `NO_ERROR`
    JavaStackTrace       string   `protobuf:"bytes,3,opt,name=java_stack_trace,json=javaStackTrace,proto3" json:"java_stack_trace,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*RpcError) Descriptor

func (*RpcError) Descriptor() ([]byte, []int)

func (*RpcError) GetErrCode

func (m *RpcError) GetErrCode() ErrorCode

func (*RpcError) GetErrorMessage

func (m *RpcError) GetErrorMessage() string

func (*RpcError) GetJavaStackTrace

func (m *RpcError) GetJavaStackTrace() string

func (*RpcError) ProtoMessage

func (*RpcError) ProtoMessage()

func (*RpcError) Reset

func (m *RpcError) Reset()

func (*RpcError) String

func (m *RpcError) String() string

func (*RpcError) XXX_DiscardUnknown

func (m *RpcError) XXX_DiscardUnknown()

func (*RpcError) XXX_Marshal

func (m *RpcError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RpcError) XXX_Merge

func (m *RpcError) XXX_Merge(src proto.Message)

func (*RpcError) XXX_Size

func (m *RpcError) XXX_Size() int

func (*RpcError) XXX_Unmarshal

func (m *RpcError) XXX_Unmarshal(b []byte) error

type TableExistsRequest

type TableExistsRequest struct {
    TablePath            string   `protobuf:"bytes,1,opt,name=table_path,json=tablePath,proto3" json:"table_path,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*TableExistsRequest) Descriptor

func (*TableExistsRequest) Descriptor() ([]byte, []int)

func (*TableExistsRequest) GetTablePath

func (m *TableExistsRequest) GetTablePath() string

func (*TableExistsRequest) ProtoMessage

func (*TableExistsRequest) ProtoMessage()

func (*TableExistsRequest) Reset

func (m *TableExistsRequest) Reset()

func (*TableExistsRequest) String

func (m *TableExistsRequest) String() string

func (*TableExistsRequest) XXX_DiscardUnknown

func (m *TableExistsRequest) XXX_DiscardUnknown()

func (*TableExistsRequest) XXX_Marshal

func (m *TableExistsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TableExistsRequest) XXX_Merge

func (m *TableExistsRequest) XXX_Merge(src proto.Message)

func (*TableExistsRequest) XXX_Size

func (m *TableExistsRequest) XXX_Size() int

func (*TableExistsRequest) XXX_Unmarshal

func (m *TableExistsRequest) XXX_Unmarshal(b []byte) error

type TableExistsResponse

type TableExistsResponse struct {
    //*
    // `NO_ERROR` - if the table exists
    // `TABLE_NOT_FOUND` - if the table does not exist
    Error                *RpcError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

func (*TableExistsResponse) Descriptor

func (*TableExistsResponse) Descriptor() ([]byte, []int)

func (*TableExistsResponse) GetError

func (m *TableExistsResponse) GetError() *RpcError

func (*TableExistsResponse) ProtoMessage

func (*TableExistsResponse) ProtoMessage()

func (*TableExistsResponse) Reset

func (m *TableExistsResponse) Reset()

func (*TableExistsResponse) String

func (m *TableExistsResponse) String() string

func (*TableExistsResponse) XXX_DiscardUnknown

func (m *TableExistsResponse) XXX_DiscardUnknown()

func (*TableExistsResponse) XXX_Marshal

func (m *TableExistsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TableExistsResponse) XXX_Merge

func (m *TableExistsResponse) XXX_Merge(src proto.Message)

func (*TableExistsResponse) XXX_Size

func (m *TableExistsResponse) XXX_Size() int

func (*TableExistsResponse) XXX_Unmarshal

func (m *TableExistsResponse) XXX_Unmarshal(b []byte) error

type UpdateRequest

type UpdateRequest struct {
    TablePath       string          `protobuf:"bytes,1,opt,name=table_path,json=tablePath,proto3" json:"table_path,omitempty"`
    PayloadEncoding PayloadEncoding `protobuf:"varint,2,opt,name=payload_encoding,json=payloadEncoding,proto3,enum=com.mapr.data.db.PayloadEncoding" json:"payload_encoding,omitempty"`
    // Types that are valid to be assigned to Document:
    //	*UpdateRequest_JsonDocument
    Document isUpdateRequest_Document `protobuf_oneof:"document"`
    // Types that are valid to be assigned to Condition:
    //	*UpdateRequest_JsonCondition
    Condition isUpdateRequest_Condition `protobuf_oneof:"condition"`
    // Types that are valid to be assigned to Mutation:
    //	*UpdateRequest_JsonMutation
    Mutation             isUpdateRequest_Mutation `protobuf_oneof:"mutation"`
    XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
    XXX_unrecognized     []byte                   `json:"-"`
    XXX_sizecache        int32                    `json:"-"`
}

func (*UpdateRequest) Descriptor

func (*UpdateRequest) Descriptor() ([]byte, []int)

func (*UpdateRequest) GetCondition

func (m *UpdateRequest) GetCondition() isUpdateRequest_Condition

func (*UpdateRequest) GetDocument

func (m *UpdateRequest) GetDocument() isUpdateRequest_Document

func (*UpdateRequest) GetJsonCondition

func (m *UpdateRequest) GetJsonCondition() string

func (*UpdateRequest) GetJsonDocument

func (m *UpdateRequest) GetJsonDocument() string

func (*UpdateRequest) GetJsonMutation

func (m *UpdateRequest) GetJsonMutation() string

func (*UpdateRequest) GetMutation

func (m *UpdateRequest) GetMutation() isUpdateRequest_Mutation

func (*UpdateRequest) GetPayloadEncoding

func (m *UpdateRequest) GetPayloadEncoding() PayloadEncoding

func (*UpdateRequest) GetTablePath

func (m *UpdateRequest) GetTablePath() string

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) Reset

func (m *UpdateRequest) Reset()

func (*UpdateRequest) String

func (m *UpdateRequest) String() string

func (*UpdateRequest) XXX_DiscardUnknown

func (m *UpdateRequest) XXX_DiscardUnknown()

func (*UpdateRequest) XXX_Marshal

func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateRequest) XXX_Merge

func (m *UpdateRequest) XXX_Merge(src proto.Message)

func (*UpdateRequest) XXX_OneofFuncs

func (*UpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*UpdateRequest) XXX_Size

func (m *UpdateRequest) XXX_Size() int

func (*UpdateRequest) XXX_Unmarshal

func (m *UpdateRequest) XXX_Unmarshal(b []byte) error

type UpdateRequest_JsonCondition

type UpdateRequest_JsonCondition struct {
    JsonCondition string `protobuf:"bytes,4,opt,name=json_condition,json=jsonCondition,proto3,oneof"`
}

type UpdateRequest_JsonDocument

type UpdateRequest_JsonDocument struct {
    JsonDocument string `protobuf:"bytes,3,opt,name=json_document,json=jsonDocument,proto3,oneof"`
}

type UpdateRequest_JsonMutation

type UpdateRequest_JsonMutation struct {
    JsonMutation string `protobuf:"bytes,30,opt,name=json_mutation,json=jsonMutation,proto3,oneof"`
}

type UpdateResponse

type UpdateResponse struct {
    //*
    // `NO_ERROR` - if a document was updated successfully
    // `DOCUMENT_NOT_FOUND` - if a document with specified `_id` does not exist or the specified condition
    //                        evaluated to 'false'.
    Error                *RpcError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

func (*UpdateResponse) Descriptor

func (*UpdateResponse) Descriptor() ([]byte, []int)

func (*UpdateResponse) GetError

func (m *UpdateResponse) GetError() *RpcError

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) Reset

func (m *UpdateResponse) Reset()

func (*UpdateResponse) String

func (m *UpdateResponse) String() string

func (*UpdateResponse) XXX_DiscardUnknown

func (m *UpdateResponse) XXX_DiscardUnknown()

func (*UpdateResponse) XXX_Marshal

func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateResponse) XXX_Merge

func (m *UpdateResponse) XXX_Merge(src proto.Message)

func (*UpdateResponse) XXX_Size

func (m *UpdateResponse) XXX_Size() int

func (*UpdateResponse) XXX_Unmarshal

func (m *UpdateResponse) XXX_Unmarshal(b []byte) error

Subdirectories

Name Synopsis
..
doc