public class MockIndexMetadata extends Object implements IndexMetadata
Constructor and Description |
---|
MockIndexMetadata() |
Modifier and Type | Method and Description |
---|---|
AnnotatedFields |
annotatedFields() |
boolean |
contentViewable()
Is the content freely viewable by all users, or is it restricted?
|
String |
description()
Get a description of the index, if specified
|
String |
displayName()
Get the display name for the index.
|
String |
documentFormat()
What format(s) is/are the documents in?
This is in the form of a format identifier as understood
by the DocumentFormats class (either an abbreviation or a
(qualified) class name).
|
IndexMetadata |
freeze() |
String |
indexBlackLabBuildTime()
When was the BlackLab.jar used for indexing built?
|
String |
indexBlackLabVersion()
When was the BlackLab.jar used for indexing built?
|
String |
indexFormat()
What version of the index format is this?
|
boolean |
isFrozen() |
boolean |
isNewIndex()
Is this a new, empty index?
An empty index is one that doesn't have a main contents field yet,
or has a main contents field but no indexed tokens yet.
|
MetadataFields |
metadataFields() |
TextDirection |
textDirection()
What's the text direction of this corpus?
|
String |
timeCreated()
When was this index created?
|
String |
timeModified()
When was this index last modified?
|
long |
tokenCount()
How many tokens are in the index?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
annotatedField, mainAnnotatedField, metadataField, subannotationsStoredWithParent
ensureNotFrozen
public AnnotatedFields annotatedFields()
annotatedFields
in interface IndexMetadata
public MetadataFields metadataFields()
metadataFields
in interface IndexMetadata
public String displayName()
IndexMetadata
displayName
in interface IndexMetadata
public String description()
IndexMetadata
description
in interface IndexMetadata
public boolean contentViewable()
IndexMetadata
contentViewable
in interface IndexMetadata
public TextDirection textDirection()
IndexMetadata
textDirection
in interface IndexMetadata
public String documentFormat()
IndexMetadata
documentFormat
in interface IndexMetadata
public String indexFormat()
IndexMetadata
indexFormat
in interface IndexMetadata
public String timeCreated()
IndexMetadata
timeCreated
in interface IndexMetadata
public String timeModified()
IndexMetadata
timeModified
in interface IndexMetadata
public String indexBlackLabBuildTime()
IndexMetadata
indexBlackLabBuildTime
in interface IndexMetadata
public String indexBlackLabVersion()
IndexMetadata
indexBlackLabVersion
in interface IndexMetadata
public long tokenCount()
IndexMetadata
tokenCount
in interface IndexMetadata
public boolean isNewIndex()
IndexMetadata
isNewIndex
in interface IndexMetadata
public IndexMetadata freeze()
freeze
in interface Freezable<IndexMetadata>
public boolean isFrozen()
isFrozen
in interface Freezable<IndexMetadata>
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.