}
else if ( field instanceof SerializableField ) {
SerializableField safeField = ( SerializableField ) field;
Field luceneField;
if ( field instanceof SerializableBinaryField ) {
SerializableBinaryField reallySafeField = ( SerializableBinaryField ) field;
hydrator.addFieldWithBinaryData(
reallySafeField.getName(),
reallySafeField.getValue(),
reallySafeField.getOffset(),
reallySafeField.getLength(),
safeField.getBoost(),
safeField.isOmitNorms(),
safeField.isOmitTermFreqAndPositions()
);
}
else if ( field instanceof SerializableStringField ) {
SerializableStringField reallySafeField = ( SerializableStringField ) field;
hydrator.addFieldWithStringData(
reallySafeField.getName(),
reallySafeField.getValue(),
reallySafeField.getStore(),
reallySafeField.getIndex(),
reallySafeField.getTermVector(),
safeField.getBoost(),
safeField.isOmitNorms(),
safeField.isOmitTermFreqAndPositions()
);
}
else if ( field instanceof SerializableTokenStreamField ) {
SerializableTokenStreamField reallySafeField = ( SerializableTokenStreamField ) field;
hydrator.addFieldWithTokenStreamData(
reallySafeField.getName(),
reallySafeField.getValue().getStream(),
reallySafeField.getTermVector(),
safeField.getBoost(),
safeField.isOmitNorms(),
safeField.isOmitTermFreqAndPositions()
);
}
else if ( field instanceof SerializableReaderField ) {
SerializableReaderField reallySafeField = ( SerializableReaderField ) field;
hydrator.addFieldWithSerializableReaderData(
reallySafeField.getName(),
reallySafeField.getValue(),
reallySafeField.getTermVector(),
safeField.getBoost(),
safeField.isOmitNorms(),
safeField.isOmitTermFreqAndPositions()
);
}