Liking cljdoc? Tell your friends :D

deercreeklabs.lancaster


array-schemaclj/s

(array-schema items-schema)

Inputs: [items-schema :- LancasterSchema] Returns: LancasterSchema

Creates a Lancaster schema object representing an Avro array with the given items schema.

Inputs: [items-schema :- LancasterSchema]
Returns: LancasterSchema

Creates a Lancaster schema object representing an Avro array
 with the given items schema.
raw docstring

boolean-schemaclj/s

Lancaster schema object representing an Avro boolean.

Lancaster schema object representing an Avro boolean.
raw docstring

bytes-schemaclj/s

Lancaster schema object representing an Avro bytes.

Lancaster schema object representing an Avro bytes.
raw docstring

dataclj/s

(data wrapped-data)

Inputs: [wrapped-data :- schemas/WrappedData] Returns: s/Any

Returns the data portion of wrapped data.

Inputs: [wrapped-data :- schemas/WrappedData]
Returns: s/Any

Returns the data portion of wrapped data.
raw docstring

def-array-schemaclj/smacro

(def-array-schema clj-name items-schema)

Defines a var whose value is a Lancaster array schema object

Defines a var whose value is a Lancaster array schema object
raw docstring

def-enum-schemaclj/s≠macro

clj
(def-enum-schema clj-name & symbol-keywords)
cljs
(def-enum-schema &form &env clj-name & symbol-keywords)

Defines a var whose value is a Lancaster enum schema object

Defines a var whose value is a Lancaster enum schema object
raw docstring

def-fixed-schemaclj/smacro

(def-fixed-schema clj-name size)

Defines a var whose value is a Lancaster fixed schema object

Defines a var whose value is a Lancaster fixed schema object
raw docstring

def-flex-map-schemaclj/smacro

(def-flex-map-schema clj-name keys-schema values-schema)

Defines a var whose value is a Lancaster flex-map schema object

Defines a var whose value is a Lancaster flex-map schema object
raw docstring

def-map-schemaclj/smacro

(def-map-schema clj-name values-schema)

Defines a var whose value is a Lancaster map schema object

Defines a var whose value is a Lancaster map schema object
raw docstring

def-maybe-schemaclj/smacro

(def-maybe-schema clj-name schema)

Defines a var whose value is a Lancaster union schema whose members are l/null-schema and the given schema. Makes a schema nillable.

Defines a var whose value is a Lancaster union schema whose members
are l/null-schema and the given schema. Makes a schema nillable.
raw docstring

def-merged-record-schemaclj/s≠macro

clj
(def-merged-record-schema clj-name & record-schemas)
cljs
(def-merged-record-schema &form &env clj-name & record-schemas)

Defines a var whose value is a Lancaster record schema which contains all the fields of all record schemas passed in.

Defines a var whose value is a Lancaster record schema which contains all
the fields of all record schemas passed in.
raw docstring

def-record-schemaclj/s≠macro

clj
(def-record-schema clj-name & fields)
cljs
(def-record-schema &form &env clj-name & fields)

Defines a var whose value is a Lancaster record schema object

Defines a var whose value is a Lancaster record schema object
raw docstring

def-union-schemaclj/s≠macro

clj
(def-union-schema clj-name & member-schemas)
cljs
(def-union-schema &form &env clj-name & member-schemas)

Defines a var whose value is a Lancaster union schema object

Defines a var whose value is a Lancaster union schema object
raw docstring

default-dataclj/s

(default-data schema)

Inputs: [schema :- LancasterSchema] Returns: s/Any

Creates default data that conforms to the given Lancaster schema.

Inputs: [schema :- LancasterSchema]
Returns: s/Any

Creates default data that conforms to the given Lancaster schema.
raw docstring

deserializeclj/s

(deserialize reader-schema writer-schema ba)

Inputs: [reader-schema :- LancasterSchema writer-schema :- LancasterSchema ba :- ba/ByteArray] Returns: s/Any

Deserializes Avro-encoded data from a byte array, using the given reader and writer schemas.

Inputs: [reader-schema :- LancasterSchema writer-schema :- LancasterSchema ba :- ba/ByteArray]
Returns: s/Any

Deserializes Avro-encoded data from a byte array, using the given reader and
 writer schemas.
raw docstring

deserialize-sameclj/s

(deserialize-same schema ba)

Inputs: [schema :- LancasterSchema ba :- ba/ByteArray] Returns: s/Any

Deserializes Avro-encoded data from a byte array, using the given schema as both the reader and writer schema. Note that this is not recommended, since the original writer's schema should always be used to deserialize. The writer's schema (in Parsing Canonical Form) should always be stored or transmitted with encoded data.

Inputs: [schema :- LancasterSchema ba :- ba/ByteArray]
Returns: s/Any

Deserializes Avro-encoded data from a byte array, using the given schema
 as both the reader and writer schema. Note that this is not recommended,
 since the original writer's schema should always be used to deserialize.
 The writer's schema (in Parsing Canonical Form) should always be stored
 or transmitted with encoded data.
raw docstring

double-schemaclj/s

Lancaster schema object representing an Avro double.

Lancaster schema object representing an Avro double.
raw docstring

ednclj/s

(edn schema)

Inputs: [schema :- LancasterSchema] Returns: s/Any

Returns an EDN representation of the given Lancaster schema.

Inputs: [schema :- LancasterSchema]
Returns: s/Any

Returns an EDN representation of the given Lancaster schema.
raw docstring

enum-schemaclj/s

(enum-schema name-kw symbol-keywords)

Inputs: [name-kw :- s/Keyword symbol-keywords :- [s/Keyword]] Returns: LancasterSchema

Creates a Lancaster schema object representing an Avro enum with the given name and symbol keywords. For a more concise way to declare an enum schema, see def-enum-schema.

Inputs: [name-kw :- s/Keyword symbol-keywords :- [s/Keyword]]
Returns: LancasterSchema

Creates a Lancaster schema object representing an Avro enum
 with the given name and symbol keywords. For a more
 concise way to declare an enum schema, see def-enum-schema.
raw docstring

fingerprint64clj/s

(fingerprint64 schema)

Inputs: [schema :- LancasterSchema] Returns: Long

Returns the 64-bit Rabin fingerprint of the Parsing Canonical Form of the given Lancaster schema.

Inputs: [schema :- LancasterSchema]
Returns: Long

Returns the 64-bit Rabin fingerprint of the Parsing Canonical Form
 of the given Lancaster schema.
raw docstring

fixed-schemaclj/s

(fixed-schema name-kw size)

Inputs: [name-kw :- s/Keyword size :- s/Int] Returns: LancasterSchema

Creates a Lancaster schema object representing an Avro fixed with the given name and size. For a more concise way to declare a fixed schema, see def-fixed-schema.

Inputs: [name-kw :- s/Keyword size :- s/Int]
Returns: LancasterSchema

Creates a Lancaster schema object representing an Avro fixed
 with the given name and size. For a more
 concise way to declare a fixed schema, see def-fixed-schema.
raw docstring

flex-map-schemaclj/s

(flex-map-schema name-kw keys-schema values-schema)

Inputs: [name-kw :- s/Keyword keys-schema :- LancasterSchema values-schema :- LancasterSchema] Returns: LancasterSchema

Creates a Lancaster schema object representing a map of keys to values, with the keys and values being described by the given schemas. Differs from map-schema, which only allows string keys.

Inputs: [name-kw :- s/Keyword keys-schema :- LancasterSchema values-schema :- LancasterSchema]
Returns: LancasterSchema

Creates a Lancaster schema object representing a map of keys
 to values, with the keys and values being described by the
 given schemas. Differs from map-schema, which only allows
 string keys.
raw docstring

float-schemaclj/s

Lancaster schema object representing an Avro float.

Lancaster schema object representing an Avro float.
raw docstring

int-schemaclj/s

Lancaster schema object representing an Avro int.

Lancaster schema object representing an Avro int.
raw docstring

jsonclj/s

(json schema)

Inputs: [schema :- LancasterSchema] Returns: s/Str

Returns an Avro-compliant JSON representation of the given Lancaster schema.

Inputs: [schema :- LancasterSchema]
Returns: s/Str

Returns an Avro-compliant JSON representation of the given Lancaster schema.
raw docstring

json->schemaclj/s

(json->schema json)

Inputs: [json :- s/Str] Returns: LancasterSchema

Creates a Lancaster schema object from an Avro schema in JSON format.

Inputs: [json :- s/Str]
Returns: LancasterSchema

Creates a Lancaster schema object from an Avro schema in JSON format.
raw docstring

Longcljs


long-schemaclj/s

Lancaster schema object representing an Avro long.

Lancaster schema object representing an Avro long.
raw docstring

map-schemaclj/s

(map-schema values-schema)

Inputs: [values-schema :- LancasterSchema] Returns: LancasterSchema

Creates a Lancaster schema object representing an Avro map with the given values schema.

Inputs: [values-schema :- LancasterSchema]
Returns: LancasterSchema

Creates a Lancaster schema object representing an Avro map
 with the given values schema.
raw docstring

maybeclj/s

(maybe schema)

Inputs: [schema :- LancasterSchemaOrNameKW] Returns: LancasterSchema

Creates a Lancaster union schema whose members are l/null-schema and the given schema. Makes a schema nillable. If the given schema is a union, returns a schema with l/null-schema in the first postion.

Inputs: [schema :- LancasterSchemaOrNameKW]
Returns: LancasterSchema

Creates a Lancaster union schema whose members are l/null-schema
 and the given schema. Makes a schema nillable. If the given schema
 is a union, returns a schema with l/null-schema in the first postion.
raw docstring

merged-record-schemaclj/s

(merged-record-schema name-kw schemas)

Inputs: [name-kw :- s/Keyword schemas :- [LancasterSchema]] Returns: LancasterSchema

Creates a Lancaster record schema which contains all the fields of all record schemas passed in.

Inputs: [name-kw :- s/Keyword schemas :- [LancasterSchema]]
Returns: LancasterSchema

Creates a Lancaster record schema which contains all the fields
 of all record schemas passed in.
raw docstring

null-schemaclj/s

Lancaster schema object representing an Avro null.

Lancaster schema object representing an Avro null.
raw docstring

pcfclj/s

(pcf schema)

Inputs: [schema :- LancasterSchema] Returns: s/Str

Returns a JSON string containing the Avro Parsing Canonical Form of the given Lancaster schema.

Inputs: [schema :- LancasterSchema]
Returns: s/Str

Returns a JSON string containing the Avro Parsing Canonical Form of
the given Lancaster schema.
raw docstring

plumatic-schemaclj/s

(plumatic-schema schema)

Inputs: [schema :- LancasterSchema] Returns: s/Any

Returns a Plumatic schema for the given Lancaster schema.

Inputs: [schema :- LancasterSchema]
Returns: s/Any

Returns a Plumatic schema for the given Lancaster schema.
raw docstring

record-schemaclj/s

(record-schema name-kw fields)

Inputs: [name-kw :- s/Keyword fields :- [schemas/RecordFieldDef]] Returns: LancasterSchema

Creates a Lancaster schema object representing an Avro record with the given name keyword and field definitions. For a more concise way to declare a record schema, see def-record-schema.

Inputs: [name-kw :- s/Keyword fields :- [schemas/RecordFieldDef]]
Returns: LancasterSchema

Creates a Lancaster schema object representing an Avro record
 with the given name keyword and field definitions. For a more
 concise way to declare a record schema, see def-record-schema.
raw docstring

schema-nameclj/s

(schema-name wrapped-data)

Inputs: [wrapped-data :- schemas/WrappedData] Returns: s/Keyword

Returns the schema-name portion of wrapped data.

Inputs: [wrapped-data :- schemas/WrappedData]
Returns: s/Keyword

Returns the schema-name portion of wrapped data.
raw docstring

schema?clj/s

(schema? arg)

Inputs: [arg :- s/Any] Returns: s/Bool

Returns a boolean indicating whether or not the argument is a Lancaster schema object.

Inputs: [arg :- s/Any]
Returns: s/Bool

Returns a boolean indicating whether or not the argument is a
 Lancaster schema object.
raw docstring

serializeclj/s

(serialize writer-schema data)

Inputs: [writer-schema :- LancasterSchema data :- s/Any] Returns: ba/ByteArray

Serializes data to a byte array, using the given Lancaster schema.

Inputs: [writer-schema :- LancasterSchema data :- s/Any]
Returns: ba/ByteArray

Serializes data to a byte array, using the given Lancaster schema.
raw docstring

string-schemaclj/s

Lancaster schema object representing an Avro string.

Lancaster schema object representing an Avro string.
raw docstring

union-schemaclj/s

(union-schema member-schemas)

Inputs: [member-schemas :- [LancasterSchemaOrNameKW]] Returns: LancasterSchema

Creates a Lancaster schema object representing an Avro union with the given member schemas.

Inputs: [member-schemas :- [LancasterSchemaOrNameKW]]
Returns: LancasterSchema

Creates a Lancaster schema object representing an Avro union
 with the given member schemas.
raw docstring

wrapclj/s

(wrap data-schema data)

Inputs: [data-schema :- LancasterSchema data :- s/Any] Returns: schemas/WrappedData

Wraps data for use in an ambiguous union.

Inputs: [data-schema :- LancasterSchema data :- s/Any]
Returns: schemas/WrappedData

Wraps data for use in an ambiguous union.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close