---
name: "Lucy::Plan::BlobType"
section: "3pm"
platform: "linux"
package: "liblucy-perl"
version: "0.3.3-7+b1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Lucy::Plan::BlobType"
---

# Lucy::Plan::BlobType(3pm)

Default behaviors for binary fields.

## NAME

Lucy::Plan::BlobType - Default behaviors for binary fields.

## SYNOPSIS

```
    my $string_type = Lucy::Plan::StringType->new;
    my $blob_type   = Lucy::Plan::BlobType->new( stored => 1 );
    my $schema      = Lucy::Plan::Schema->new;
    $schema->spec_field( name => 'id',   type => $string_type );
    $schema->spec_field( name => 'jpeg', type => $blob_type );
```

## DESCRIPTION

BlobType is an implementation of FieldType tuned for use with fields containing binary data, which cannot be indexed or searched -- only stored.

## CONSTRUCTORS

### new( *\[labeled params\]* )

```
    my $blob_type = Lucy::Plan::BlobType->new(
        stored => 1,  # default: false
    );
```

- •

  **stored** - boolean indicating whether the field should be stored.

## INHERITANCE

Lucy::Plan::BlobType isa Lucy::Plan::FieldType isa Lucy::Object::Obj.
