byte[][]
of binary field values
+ * @return a BytesRef[]
of binary field values
*/
public final BytesRef[] getBinaryValues(String name) {
final Listbyte[]
containing the binary field value or null
+ * @return a BytesRef
containing the binary field value or null
*/
public final BytesRef getBinaryValue(String name) {
IteratorFieldable[]
array
+ * @return a Field[]
array
*/
public Field[] getFields(String name) {
ListList[Field]
+ * @return an immutable List<Field>
*/
public final ListThis method supports construction of a StoredDocument from a + * {@link StoredFieldVisitor}. This method cannot + * be used to change the content of an existing index! In order to achieve this, + * a document has to be deleted from an index and a new changed version of that + * document has to be added.
+ */ public final void add(StorableField field) { fields.add(field); } + /** + * Returns an array of {@link StorableField}s with the given name. + * This method returns an empty array when there are no + * matching fields. It never returns null. + * + * @param name the name of the field + * @return aStorableField[]
array
+ */
public StorableField[] getFields(String name) {
ListList[StorableField]
+ * @return an immutable List<StorableField>
*/
public final Listbyte[][]
of binary field values
+ * @return a BytesRef[]
of binary field values
*/
public final BytesRef[] getBinaryValues(String name) {
final Listbyte[]
containing the binary field value or null
+ * @return a BytesRef
containing the binary field value or null
*/
public final BytesRef getBinaryValue(String name) {
for (StorableField field : fields) {